Skip to main content

GNU Bison EUVDEUVD-2026-50276

| CVE-2026-56389 MEDIUM
OS Command Injection (CWE-78)
2026-07-29 CERT-PL GHSA-735p-4prj-f62v
6.8
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft grammar with malicious %define tool.xsltproc directive
  2. Delivery
    Deliver grammar to victim or CI pipeline
  3. Exploit
    Victim invokes bison --html on grammar file
  4. Execution
    Bison reads tool.xsltproc value without validation
  5. Persist
    Attacker-controlled path passed to execvp()
  6. Impact
    Arbitrary binary executes with Bison process privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires two concrete conditions: first, the victim must invoke Bison with the --html flag (bison --html <grammar_file>), which activates the XML-to-HTML transformation step; second, the grammar file processed must contain a %define tool.xsltproc <arbitrary_path> directive under attacker control. The attacker does not need any account or privileges on the target system - delivery of the malicious grammar file is sufficient. Exploitation is limited by the requirement for user or system interaction (a human or automated pipeline must explicitly invoke bison --html); simply possessing Bison is not exploitable. The attack is further limited to scenarios where untrusted grammar files are processed without review, such as automated build systems ingesting third-party grammars. The --html mode is not the default Bison invocation, reducing the exposed surface relative to general Bison usage.

Impact

The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:A, score 6.8 Medium) accurately reflects the attack profile: local file delivery with required user interaction (UI:A - someone must invoke bison --html on the grammar). The integrity impact is High (VI:H) because arbitrary code runs, while confidentiality impact is None and availability impact is Low. The PR:N metric is notable: an attacker needs no privileges on the target system - only the ability to supply a grammar file. In developer tooling and CI contexts, this is a realistic supply chain vector (e.g., a malicious grammar committed to a repository or distributed as a parser template). No CISA KEV listing and no public POC exist at time of analysis, which reduces urgency relative to the intrinsic impact. The EPSS score is not provided in the available data. Real-world risk is most elevated in automated build pipelines that invoke bison --html on third-party or community-sourced grammar files without sandboxing, as this removes the human-interaction barrier assumed in UI:A.

Exploit ScenarioDerived

An attacker submits a grammar file to an open-source project - or to a developer who processes community-contributed parsers - containing the directive %define tool.xsltproc /path/to/attacker/binary. When the project's CI pipeline or a maintainer locally runs bison --html contributed.y to generate parser documentation, Bison passes the attacker-specified path to execvp(), executing the arbitrary binary with the privileges of the Bison process. No public POC has been identified, but the technique is straightforward given the clear mechanism described in the vulnerability report.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 29, 2026

Arbitrary program execution in GNU Bison (confirmed in 3.8.2) is triggered when a developer or automated pipeline runs bison --html on an attacker-controlled grammar file. The %define tool.xsltproc directive - intended to specify the XSLT processor binary for HTML report generation - is accepted without any restriction and passed directly to execvp(), allowing complete substitution of the transformation executable. No public exploit code or active exploitation has been identified at time of analysis, but the attack surface is relevant to developer workstations, build servers, and CI/CD pipelines that process untrusted grammar files.

RemediationAI

The primary fix is to apply the upstream patch available at commit 3169c1e7a2c6acc4c59dfcf8b089896d6881925b from the GNU Bison repository (https://cgit.git.savannah.gnu.org/cgit/bison.git/commit/?id=3169c1e7a2c6acc4c59dfcf8b089896d6881925b). A formally tagged patched release version has not been confirmed in available data - monitor the upstream project and the CERT-PL advisory (https://cert.pl/en/posts/2026/07/CVE-2026-56389) for a versioned release. Until a patch is applied, the primary compensating control is to avoid invoking bison --html on grammar files from untrusted sources; this eliminates the attack path entirely since the vulnerability is exercised only during HTML report generation. In CI/CD pipelines, restrict the --html flag to grammar files from trusted, version-controlled internal sources and run Bison in a sandboxed environment (e.g., a container with no sensitive credentials or network access) to limit blast radius if exploitation occurs. Note that disabling HTML report generation may affect documentation workflows that depend on this output.

Affected VersionsENISA

Bison 3.8.2

Affected Packages

euvd bison no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

GNU Bison (CPE: cpe:2.3:a:gnu:bison:*:*:*:*:*:*:*:*) is a widely-used LALR/GLR parser generator that can produce HTML reports via the --html flag. This feature invokes an external XSLT processor (typically xsltproc) to transform an intermediate XML representation into HTML. Bison's grammar syntax supports %define directives, including tool.xsltproc, which allows grammar authors to override the executable used in this transformation step. The vulnerability (CWE-78: OS Command Injection) arises because this user-controlled value is passed without sanitization or allowlisting directly to execvp(), which executes arbitrary programs. The root cause is a trust boundary violation: grammar file content - potentially supplied by untrusted parties - is treated as trusted configuration that can influence process execution at the OS level.

Know when Bison gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CERT-PL) PRIMARY 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
vuln.today AI 6.1 MEDIUM

Local file delivery with required user interaction (UI:R); no attacker privileges needed (PR:N); integrity is fully compromised via arbitrary execution, confidentiality unaffected.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:L/SI:L/SA:L
SUSE 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Red Hat 5.5 MEDIUM

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
widely-used parser generator in developer and build toolchains
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise Module for Basesystem 15 SP7 Not-Affected
SUSE Linux Enterprise Module for Development Tools 15 SP7 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy