CVE-2026-56390

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.
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 maneja incorrectamente las rutas de salida definidas por la gramática. Las directivas de gramática como %output y %header permiten especificar rutas de archivo, las cuales son aceptadas sin restricción y anulan las opciones de salida proporcionadas por el llamador. Al procesar gramática proporcionada por el atacante, este comportamiento permite dirigir los archivos generados a ubicaciones arbitrarias con permisos de escritura en el sistema de archivos, sobrescribiendo potencialmente archivos existentes accesibles para el proceso de Bison. Los mantenedores de este proyecto fueron notificados sobre esta vulnerabilidad y corrigieron el problema en el commit 8d101c19d4d9aaedf83a448c925513742d4efcf0. Sin embargo, no proporcionaron un 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-56390

Mitre link : CVE-2026-56390

CVE.ORG link : CVE-2026-56390


JSON object : View

Products Affected

gnu

  • bison
CWE
CWE-73

External Control of File Name or Path