Skip to main content

GNU Bison CVE-2026-56390

| EUVDEUVD-2026-50277 MEDIUM
External Control of File Name or Path (CWE-73)
2026-07-29 CERT-PL GHSA-3pcj-vqw8-47jm
4.6
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted grammar with malicious %output path
  2. Delivery
    CI/CD pipeline or developer invokes Bison
  3. Exploit
    Bison parses %output directive without restriction
  4. Execution
    Generated parser source written to attacker-specified filesystem path
  5. Impact
    Sensitive file overwritten with attacker-influenced content

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Exploitation requires that an attacker be able to supply a Bison grammar file containing malicious %output or %header directives to a system where GNU Bison will process it. The CVSS 4.0 vector's UI:A metric confirms that active user interaction - a person or automated process explicitly invoking Bison against the malicious grammar - is required; passive exploitation is not possible. The AV:L metric confirms local access is required: the grammar file must be present on, or accessible to, the local system where Bison executes. The write impact is limited to filesystem paths writable by the account running the Bison process - exploitation against sensitive system paths requires Bison to be run with elevated privileges. Non-default or misconfigured CI/CD pipelines that automatically process externally sourced grammar files without sandboxing represent the highest-risk deployment scenario. Exploitation is not possible unless Bison processes an attacker-controlled grammar file; environments where grammar inputs are entirely internally controlled are not exposed.

Impact

The CVSS 4.0 base score of 4.6 (Medium) accurately reflects the constrained exploitation conditions: local attack vector (AV:L) and required user interaction (UI:A) together mean this is not an opportunistic, remotely exploitable flaw. Real-world risk is concentrated in automated build and CI/CD environments that consume externally sourced or community-submitted grammar files without sandboxing. In such pipelines, 'user interaction' effectively resolves to automation, which lowers the practical barrier. Impact is bounded at low integrity on both the vulnerable and subsequent systems (VI:L, SI:L); there is no confidentiality or availability impact per the vector. No EPSS score was provided in the input data, and the CVE does not appear in the CISA KEV catalog - exploitation risk signals are therefore limited to the CVSS vector alone. The absence of a bounded version range from the maintainer introduces uncertainty: the full affected population is unknown. This is a meaningful risk for build infrastructure that processes third-party grammars but a low priority for environments where Bison is invoked only on internally controlled grammar files.

Exploit ScenarioDerived

An attacker submits a crafted Bison grammar file - for example, as a pull request to an open-source project or as a dependency in a build system - containing a directive such as '%output "/etc/cron.d/backdoor"' or '%header "~/.ssh/authorized_keys"'. When the CI/CD pipeline or a developer invokes Bison to regenerate the parser, Bison silently writes the generated C output to the attacker-specified path, overwriting the target file with parser-generator output. Depending on which file is overwritten and in which execution context, this could enable persistence, privilege escalation, or denial of service. No public proof-of-concept code has been identified at time of analysis.

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

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

Alert me

AnalysisAIv1 – Jul 29, 2026

GNU Bison's grammar directive processing exposes an arbitrary file write path via the %output and %header directives, which accept filesystem paths without restriction and silently override caller-supplied output options. Any environment that processes attacker-supplied Bison grammar files - including CI/CD build pipelines and developer workstations - is at risk of having generated parser files written to attacker-chosen locations, potentially overwriting sensitive files accessible to the Bison process. Version 3.8.2 is confirmed vulnerable; no public exploit code has been identified and this CVE does not appear in the CISA KEV catalog at time of analysis.

RemediationAI

Apply the upstream fix commit 8d101c19d4d9aaedf83a448c925513742d4efcf0 from the Bison Savannah repository (https://cgit.git.savannah.gnu.org/cgit/bison.git/commit/?id=8d101c19d4d9aaedf83a448c925513742d4efcf0). This is a source-level patch; a patched release version has not been confirmed - organizations should build from the patched commit or await a formal release. As an immediate compensating control, restrict Bison invocation to grammar files sourced exclusively from trusted, internally controlled repositories, and implement mandatory code review for any grammar changes before they enter build pipelines. For CI/CD environments, run Bison inside a sandboxed container or chroot with a minimal, read-only filesystem and a narrowly scoped writable output directory - this constrains any path traversal to the container boundary. Avoid running Bison as a privileged user, as the impact radius scales directly with the process's filesystem write permissions. See the CERT-PL advisory at https://cert.pl/en/posts/2026/07/CVE-2026-56389 for additional context.

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 is a general-purpose parser generator that transforms context-free grammars into C or C++ parsers. The vulnerability maps to CWE-73 (External Control of File Name or Path): the grammar language exposes %output and %header directives that specify where generated source and header files are written on disk. These directives are interpreted without path sanitization or restriction, and they override output paths provided by the invoking process through command-line options. Because Bison is commonly invoked during software build phases - often automatically - any grammar file sourced from an untrusted location becomes a vector for directing output to arbitrary writable paths. The affected CPE is cpe:2.3:a:gnu:bison:*:*:*:*:*:*:*:*, reflecting that the maintainer did not bound the vulnerable version range; only 3.8.2 was explicitly confirmed. Note: the 'Information Disclosure' tag on this CVE appears to be a miscategorization - the described primitive is an arbitrary local file write, not information disclosure.

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 4.6 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
vuln.today AI 3.3 LOW

Local vector because grammar must be processed on-machine; PR:N since crafting a malicious grammar requires no system privileges; UI:R because a user or pipeline must actively invoke Bison; integrity-only impact as the primitive is file overwrite with no confidentiality or availability consequence.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Red Hat 5.6 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
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% 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.1%
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

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

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

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