GNU Bison Assertion Failure Vulnerability in obprintf.c via __obstack_vprintf_internal

Vulnerability

An assertion failure vulnerability has been identified in GNU Bison versions prior to 3.8.2. This vulnerability occurs in the function __obstack_vprintf_internal within the file obprintf.c. The issue arises when Bison processes specially crafted grammar files that contain malformed '$variable' references. This manipulation leads to a reachable assertion, causing the program to terminate abruptly with a SIGABRT signal. The vulnerability is local, and an exploit is publicly available.

Impact

Exploitation of this vulnerability causes a denial-of-service condition by crashing the Bison process. The assertion failure indicates a buffer management issue in Bison's grammar processing, which can be triggered by various input files, demonstrating the vulnerability's widespread impact.

Reproduction

The vulnerability can be reproduced by using Bison to process a grammar file that includes malformed '$variable' references. This can be done by executing Bison with the file as an argument. The expected outcome is an assertion failure message indicating that the Bison process has crashed and generated a core dump.

Added: Aug 8, 2025, 6:19 PM
Updated: Aug 8, 2025, 6:19 PM

Vulnerability Rating

Custom Algorithm
spread
7.8
impact
2.5
exploitability
6.0
remediation
0.0
relevance
0.3
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.