CVE Catalog

CVE-2006-0459

High
Published: Translated: NVD NIST

Summary

In the Fast Lexical Analyzer Generator (flex) before version 2.5.33, the flex.skl file does not allocate enough memory for grammars containing REJECT statements or trailing context rules. This causes flex to generate code with a buffer overflow, potentially allowing attackers to execute arbitrary code.

Risk Assessment

The organization may be at risk of remote code execution if an attacker provides a specially crafted grammar to a vulnerable version of flex. This could lead to system compromise or data breach.

Recommendation

Immediately upgrade flex to version 2.5.33 or later. If an upgrade is not possible, avoid processing untrusted grammars that contain REJECT statements or trailing context rules.

Related vulnerabilities

Original NVD description (English source)

flex.skl in Will Estes and John Millaway Fast Lexical Analyzer Generator (flex) before 2.5.33 does not allocate enough memory for grammars containing (1) REJECT statements or (2) trailing context rules, which causes flex to generate code that contains a buffer overflow that might allow context-dependent attackers to execute arbitrary code.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS