cve.bz

CVE-2026-56389 gnu bison: OS Command Injection

6.8 mediumEPSS 0.2%Fix available

Medium (6.8) in gnu bison. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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

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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 5th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-56389 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-56389?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-56389?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-56389 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-56389

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-56389](https://cve.bz/cve/badge/CVE-2026-56389.svg)](https://cve.bz/cve/CVE-2026-56389)

HTML:

<a href="https://cve.bz/cve/CVE-2026-56389"><img src="https://cve.bz/cve/badge/CVE-2026-56389.svg" alt="CVE-2026-56389"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:bison3.8.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14bisonno fix listedDEBIAN-CVE-2026-56389
Ubuntu22.04:LTSbison2:3.8.2+dfsg-1ubuntu0.22.04.1UBUNTU-CVE-2026-56389 USN-8777-1
Ubuntu24.04:LTSbison2:3.8.2+dfsg-1ubuntu0.24.04.1UBUNTU-CVE-2026-56389 USN-8777-1
Ubuntu26.04:LTSbison2:3.8.2+dfsg-1ubuntu0.26.04.1UBUNTU-CVE-2026-56389 USN-8777-1
Azure Linux3bison3.8.2-2AZL-94133

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This is a Moderate arbitrary code execution flaw in GNU Bison. The vulnerability arises when the `bison --html` command processes a specially crafted grammar file, enabling an attacker to define and execute an arbitrary program with the privileges of the Bison process. Exploitation requires user interaction to process a malicious grammar file, which limits the attack surface to scenarios where untrusted input is explicitly processed.

Red Hat's mitigation

To mitigate this vulnerability, avoid processing untrusted or unverified grammar files with the `bison --html` command. Restrict the use of `bison --html` to trusted input sources only. This operational control reduces the risk of arbitrary code execution by preventing the vulnerable code path from being triggered with malicious input.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10bisonFix deferred
Red Hat Enterprise Linux 6bisonOut of support scope
Red Hat Enterprise Linux 7bisonFix deferred
Red Hat Enterprise Linux 8bisonFix deferred
Red Hat Enterprise Linux 9bisonFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-56389.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON