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.
Published: 2026-07-29
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

GNU Bison can execute an arbitrary program when generating HTML reports because a grammar file may override the XML‑to‑HTML tool via %define tool.xsltproc. The parameter is accepted without validation and directly passed to execvp(), a classic example of CWE‑78, leading to potential remote or local command execution with the privileges of the Bison process.

Affected Systems

The vulnerability affects GNU Bison, with version 3.8.2 confirmed as vulnerable and other pre‑patch releases potentially affected. The issue was addressed in the commit 3169c1e7a2c6acc4c59dfcf8b089896d6881925b, but a precise version range is not documented.

Risk and Exploitability

The CVSS score is 6.8, indicating moderate severity, while the EPSS score is below 1 % and the vulnerability is not listed in CISA’s KEV catalog. Attackers can exploit the flaw by supplying a malicious grammar file and running bison --html; the unvalidated tool definition causes the program to execute arbitrary binaries with the Bison process’ rights. The risk is heightened in environments where Bison runs as root or with elevated privileges, but it remains limited to the scope of the Bison invocation. The description does not explicitly state that this can be leveraged remotely or locally; this inference is based on the use of execvp() and the fact that arbitrary binaries are invoked with the process’s privileges.

Generated by OpenCVE AI on August 3, 2026 at 13:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a Bison release that includes commit 3169c1e7a2c6acc4c59dfcf8b089896d6881925b or later.
  • If an upgrade is not immediately possible, run Bison under a least‑privileged user or otherwise restrict its execution environment so that shell commands cannot be elevated beyond the process’s rights.
  • Restrict or eliminate the use of the --html option and ensure that only trusted, authenticated users can provide grammar files to Bison.

Generated by OpenCVE AI on August 3, 2026 at 13:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 29 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 29 Jul 2026 11:45:00 +0000

Type Values Removed Values Added
First Time appeared Gnu
Gnu bison
Vendors & Products Gnu
Gnu bison

Wed, 29 Jul 2026 10:30:00 +0000

Type Values Removed Values Added
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.
Title Arbitrary Command Execution in GNU Bison
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 6.8, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: CERT-PL

Published:

Updated: 2026-07-29T12:21:04.442Z

Reserved: 2026-06-21T07:15:13.879Z

Link: CVE-2026-56389

cve-icon Vulnrichment

Updated: 2026-07-29T12:20:54.189Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-29T11:16:49.767

Modified: 2026-07-30T16:28:33.633

Link: CVE-2026-56389

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T13:30:04Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')