CVE-2026-56390Arbitrary Output Location Change in GNU Bison
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.
What to do
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | bison | Fix pending | UBUNTU-CVE-2026-56390 | |
| Ubuntu 26.04 | bison | Under investigation | UBUNTU-CVE-2026-56390 | |
| Ubuntu 24.04 | bison | Under investigation | UBUNTU-CVE-2026-56390 | |
| Ubuntu 22.04 | bison | Under investigation | UBUNTU-CVE-2026-56390 | |
| Ubuntu 20.04 | bison | Fix pending | UBUNTU-CVE-2026-56390 | |
| Ubuntu 18.04 | bison | Fix pending | UBUNTU-CVE-2026-56390 | |
| Ubuntu 16.04 | bison | Fix pending | UBUNTU-CVE-2026-56390 | |
| Debian 14 | bison | Fix pending | DEBIAN-CVE-2026-56390 | |
| Debian 13 | bison | Fix pending | DEBIAN-CVE-2026-56390 | |
| Debian 12 | bison | Fix pending | DEBIAN-CVE-2026-56390 | |
| Red Hat Enterprise Linux 10 | bison | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | bison-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | bison-runtime | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | bison | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | bison-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | bison-runtime | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | bison | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | bison-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | bison-runtime | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | bison | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | bison-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | bison-runtime | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | bison | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | bison-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | bison-runtime | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by CERT-PL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GNU Bison: affected: 3.8.2
Vendor advisories:
- https://cgit.git.savannah.gnu.org/cgit/bison.git/ (patch)
- https://cgit.git.savannah.gnu.org/cgit/bison.git/commit/?id=8d101c19d4d9aaedf83a448c92551… (patch)
References
- https://cert.pl/en/posts/2026/07/CVE-2026-56389
- https://cgit.git.savannah.gnu.org/cgit/bison.git/
- https://cgit.git.savannah.gnu.org/cgit/bison.git/commit/?id=8d101c19d4d9aaedf83a448c925513742d4efcf0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.