CVE-2026-56389

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:gnu:bison:3.8.2:*:*:*:*:*:*:*

History

23 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (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.

Information

Published : 2026-07-29 11:16

Updated : 2026-10-23 23:10


NVD link : CVE-2026-56389

Mitre link : CVE-2026-56389

CVE.ORG link : CVE-2026-56389


JSON object : View

Products Affected

gnu

  • bison
CWE
CWE-78

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