CVE-2026-56389: Arbitrary Command Execution in GNU Bison

Published Jul 29, 2026
·
Updated

Arbitrary Command Execution in GNU Bison

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
GNU Bison=3.8.2
Microsoft azl3 bison 3.8.2-1<3.8.2-2
3.8.2-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.8.2-2
  2. Upgrade

    Upgrade GNU Bison to a version that resolves this vulnerability.

    Patch 3169c1e7a2c6acc4c59dfcf8b089896d6881925b

Event History

Jul 29, 2026
CVE Published
via MITRE·09:39 AM
Data Sourced
via MITRE·09:39 AM
DescriptionWeakness
Data Sourced
via NVD·11:16 AM
DescriptionSeverityWeakness
Aug 7, 2026
Data Sourced
via Microsoft·07:29 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:29 AM
Affected Software
Updated
via Microsoft·07:29 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-56389?

CVE-2026-56389 has a medium severity rating of 6.8 based on the CVSS metrics.

2

What does CVE-2026-56389 affect?

CVE-2026-56389 affects GNU Bison, allowing for arbitrary command execution during HTML report generation.

3

How do I fix CVE-2026-56389?

To fix CVE-2026-56389, update GNU Bison to a version where the vulnerability has been addressed.

4

What type of vulnerability is CVE-2026-56389 classified as?

CVE-2026-56389 is classified as an OS Command Injection vulnerability.

5

How does CVE-2026-56389 allow exploitation?

CVE-2026-56389 allows exploitation by improper handling of grammar-defined configuration variables that can override the executable used for XML-to-HTML transformation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203