GLSA-200603-07 : flex: Potential insecure code generation

High Nessus Plugin ID 21045


The remote Gentoo host is missing one or more security-related patches.


The remote host is affected by the vulnerability described in GLSA-200603-07 (flex: Potential insecure code generation)

Chris Moore discovered a buffer overflow in a special class of lexicographical scanners generated by flex. Only scanners generated by grammars which use either REJECT, or rules with a 'variable trailing context' might be at risk.
Impact :

An attacker could feed malicious input to an application making use of an affected scanner and trigger the buffer overflow, potentially resulting in the execution of arbitrary code.
Workaround :

Avoid using vulnerable grammar in your flex scanners.


All flex users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=sys-devel/flex-2.5.33-r1'

See Also

Plugin Details

Severity: High

ID: 21045

File Name: gentoo_GLSA-200603-07.nasl

Version: $Revision: 1.13 $

Type: local

Published: 2006/03/13

Modified: 2016/04/28

Dependencies: 12634

Risk Information

Risk Factor: High


Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Temporal Vector: CVSS2#E:U/RL:OF/RC:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:flex, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Available: false

Exploit Ease: No known exploits are available

Patch Publication Date: 2006/03/10

Vulnerability Publication Date: 2006/02/22

Reference Information

CVE: CVE-2006-0459

OSVDB: 23440

GLSA: 200603-07

CWE: 119