CVE-2026-56389
published medium CVSS 4.0 · 6.8Arbitrary Command Execution in GNU Bison
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GNU | — | Bison3.8.2 · Other versions: unknown | Affected | Not stated | CERT-PL |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | jammy | bison | Advisory build | 2:3.8.2+dfsg-1ubuntu0.22.04.1 | USN-8777-1 |
| Ubuntu | noble | bison | Advisory build | 2:3.8.2+dfsg-1ubuntu0.24.04.1 | USN-8777-1 |
| Ubuntu | resolute | bison | Advisory build | 2:3.8.2+dfsg-1ubuntu0.26.04.1 | USN-8777-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- CERT-PL · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GNU | Bison | 3.8.2 (affected · semver)Default: unknown | CERT-PL · cna |
Weaknesses
1- CWE-78 CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
3Provider assertions
2CERT-PL · cna
Arbitrary Command Execution in GNU Bison
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cd50459fd4babb360efe158a98501bc34795c1499efa9d824e564b4e3fa7ffba
- Ingested
- 23 Sep 2026, 09:21:21 UTC
- Source record
- Official CVE record