Vulnerabilities / CVE-2016-6354

critical

CVE-2016-6354

flex: buffer overflow in generated code (yy_get_next_buffer)

Published Modified CWE 119
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat5.9CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium).

Description

Heap-based buffer overflow in the yy_get_next_buffer function in Flex before 2.6.1 might allow context-dependent attackers to cause a denial of service or possibly execute arbitrary code via vectors involving num_to_read.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.2flex2.5.39-r1
alpine 3.3flex2.5.39-r3
alpine 3.4flex2.6.1-r0
debian 11flex2.6.1-1
debian 12flex2.6.1-1
debian 13flex2.6.1-1
debian 14flex2.6.1-1
debian 8flex2.5.39-8+deb8u2
echoflex2.6.1-1
Red Hatbogofilter, bogofilter-bogoupgrade, flex and 2 moreno fix listed
Show all 14 entries from 10 sources
SourcePackageFixed in
alpine 3.2flex2.5.39-r1
alpine 3.3flex2.5.39-r3
alpine 3.4flex2.6.1-r0
debian 11flex2.6.1-1
debian 12flex2.6.1-1
debian 13flex2.6.1-1
debian 14flex2.6.1-1
debian 8flex2.5.39-8+deb8u2
echoflex2.6.1-1
Red Hatbogofilterno fix listed
Red Hatbogofilter-bogoupgradeno fix listed
Red Hatflexno fix listed
Red Hatflex-develno fix listed
Red Hatflex-docno fix listed

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.