CVE-2026-56389
JSON

6.8medium

Arbitrary Command Execution in GNU Bison

Severity
6.8medium CVSS:4.0 by CERT-PL
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
CERT-PL

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.

Affected

Product or packageVersionsReported by
GNU Bison3.8.2CVE List, NVD

All scores

CERT-PL6.8medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:L/SI:L/SA:L
NVD8.6high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

GNU Bison permite la ejecución de un programa arbitrario durante la generación de informes HTML debido a un manejo inadecuado de las variables de configuración definidas por la gramática. Un archivo de gramática puede anular el ejecutable utilizado para el paso de transformación de XML a HTML a través de %define tool.xsltproc, que se acepta sin restricciones y se pasa directamente a execvp(). Al ejecutar bison --html en una gramática proporcionada por un atacante, este comportamiento permite la ejecución de un programa arbitrario con los privilegios del proceso de Bison. Los mantenedores de este proyecto fueron notificados sobre esta vulnerabilidad y corrigieron el problema en el commit 3169c1e7a2c6acc4c59dfcf8b089896d6881925b. Sin embargo, no proporcionaron el rango de versiones vulnerables. La versión 3.8.2 fue probada y confirmada como vulnerable; otras versiones no fueron probadas, pero también podrían ser vulnerables.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-56389 changed 2026-07-29CVE Terms of Use
NVDCVE-2026-56389 changed 2026-10-23Public domain