CVE-2026-56389Arbitrary Command Execution in GNU Bison
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.
What to do
Fixed builds are available from Ubuntu: see the table below for the fixed version per release.
Debian, Red Hat 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.04 | bison | Fixed | 2:3.8.2+dfsg-1ubuntu0.26.04.1 | UBUNTU-CVE-2026-56389 |
| Ubuntu 24.04 | bison | Fixed | 2:3.8.2+dfsg-1ubuntu0.24.04.1 | UBUNTU-CVE-2026-56389 |
| Ubuntu 22.04 | bison | Fixed | 2:3.8.2+dfsg-1ubuntu0.22.04.1 | UBUNTU-CVE-2026-56389 |
| Debian 14 | bison | Fix pending | DEBIAN-CVE-2026-56389 | |
| Debian 13 | bison | Fix pending | DEBIAN-CVE-2026-56389 | |
| Debian 12 | bison | Fix pending | DEBIAN-CVE-2026-56389 | |
| 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:
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=3169c1e7a2c6acc4c59dfcf8b089896d6881925b
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.