# CVE-2026-56390: Arbitrary Output Location Change in GNU Bison

- Severity: Medium 4.6 (CVSS:4.0, scored by CERT-PL) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N`
- 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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-07-29T09:40:03.213Z
- Modified: 2026-10-23T23:10:00.157Z
- Weaknesses: CWE-73
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CERT-PL

## Description

GNU Bison improperly handles grammar‑defined output paths. Grammar directives such as %output and %header allow specifying file paths, which are accepted without restriction and override caller‑supplied output options. 
When processing attacker-supplied grammar, this behavior allows directing generated files to arbitrary writable locations on the filesystem, potentially overwriting existing files accessible to the Bison process.

Maintainers of this project were notified about this vulnerability, and fixed the issue in commit 8d101c19d4d9aaedf83a448c925513742d4efcf0. 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 4.6 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N`

## References

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

## Sources

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

---

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