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

- Severity: Medium 6.8 (CVSS:4.0, scored by CERT-PL) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:L/SI:L/SA:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-07-29T09:39:52.243Z
- Modified: 2026-10-23T23:10:00.157Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CERT-PL

## Description

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.

(As written by CVE List.)

## Affected

- GNU Bison: 3.8.2

## Every score

- CERT-PL: CVSS:4.0 6.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:L/SI:L/SA:L`
- NVD: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://cert.pl/en/posts/2026/07/CVE-2026-56389> (third-party-advisory)
- <https://cgit.git.savannah.gnu.org/cgit/bison.git/> (product)
- <https://cgit.git.savannah.gnu.org/cgit/bison.git/commit/?id=3169c1e7a2c6acc4c59dfcf8b089896d6881925b> (patch)

## Sources

- CVE List: [CVE-2026-56389](https://www.cve.org/CVERecord?id=CVE-2026-56389), CVE Terms of Use, modified 2026-07-29
- NVD: [CVE-2026-56389](https://nvd.nist.gov/vuln/detail/CVE-2026-56389), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-56389 · Whole record: https://cve.day/CVE-2026-56389.json · Rebuilt by cve.day 2026-11-25T22:59:30.428Z
