CVE-2026-56389
High · 8.6CVSS
8.6
EPSS
0.2%
Published
Jul 29, 2026
CISA due date
—
Cloudanix analysis
A common parser generator tool can be tricked into running attacker-chosen programs when it processes certain input files, putting systems at risk of unauthorized code execution.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw allows an attacker to specify an arbitrary executable via the %define tool.xsltproc directive in a Bison grammar file, which is then passed directly to execvp() during HTML report generation with bison --html.
Why it matters to the business
Attackers could run malicious code on systems that process untrusted grammar files with Bison, potentially leading to unauthorized access or system compromise, especially in build or development environments; 89 days have passed since disclosure with low but stable exploit probability.
How an attack unfolds
An attacker crafts a malicious grammar file with %define tool.xsltproc pointing to their executable, then tricks a user into running bison --html on it, executing the arbitrary program with Bison's privileges.
How to fix it
Update GNU Bison to a build incorporating commit 3169c1e7a2c6acc4c59dfcf8b089896d6881925b or later; avoid processing untrusted grammars with the --html flag until patched.
How to confirm the fix worked
Verify Bison version includes the referenced commit; test by attempting to build HTML output from a grammar that sets tool.xsltproc and confirm no arbitrary execution occurs.
Typical attack path
- Craft malicious Bison grammar file overriding tool.xsltproc
- Distribute the grammar to target
- Victim runs 'bison --html' on the grammar
- Arbitrary command executes via execvp
How to detect it
Inspect process creation logs and command lines for bison invocations using the --html flag; monitor for unexpected child processes or exec calls originating from the Bison binary when handling grammar files.
- bison --html
- %define tool.xsltproc
- execvp.*bison
What your security team should do
- Apply patched Bison build across all affected systems without delay
- Restrict bison --html usage to trusted grammar sources only
- Audit development and CI pipelines for untrusted grammar file handling
The record
GNU Bison allows for an execution of an arbitrary program during HTML report generation due to improper handling of grammar-defined configuration variables. A grammar file can override the executable used for the XML‑to‑HTML transformation step via %define tool.xsltproc, which is accepted without restriction and passed directly to execvp(). When running bison --html on a attacker-provided grammar, this behavior allows execution of an arbitrary program with the privileges of the Bison process. Maintainers of this project were notified about this vulnerability, and fixed the issue in commit 3169c1e7a2c6acc4c59dfcf8b089896d6881925b. However, they did not provide vulnerable version range. Version 3.8.2 was tested and confirmed as vulnerable, other versions were not tested but might also be vulnerable.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-116651 Tanium addressed an unauthorized code execution vulnerability in Threat Response. CWE-78
- CVE-2026-116650 Tanium addressed an unauthorized code execution vulnerability in Threat Response. CWE-78
- CVE-2026-118865 An authenticated OS command injection vulnerability exists in the Offline Download… CWE-78
- CVE-2026-121621 A command injection vulnerability was found in Argo CD Image Updater, where a proxy URL… CWE-78
- CVE-2026-54161 Network UPS Tools is a collection of programs which provide a common interface for… CWE-78
- CVE-2026-121548 Jarun nnn through 5.3 contains an OS command injection vulnerability in plugins/togglex… CWE-78
- CVE-2026-121429 AzuraCast through 0.23.8 contains a command injection vulnerability that allows station… CWE-78
- CVE-2026-119742 Nagios XI before 2026R2 contains an OS command injection vulnerability in the MIB upload… CWE-78