# CVE-2016-6354

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 9% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2016-09-21 · Modified: 2024-08-06
- Aliases: ALPINE-CVE-2016-6354, MGASA-2016-0396, UBUNTU-CVE-2016-6354, DEBIAN-CVE-2016-6354, DSA-3653-1, DSA-3653-2
- Record: https://cvemate.com/vulnerability/CVE-2016-6354 · JSON: https://cvemate.com/vulnerability/CVE-2016-6354/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 9.117%, percentile 95.443%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine flex (Alpine Linux): \< 2.5.39-r1 \| \< 2.5.39-r3 \| \< 2.6.1-r0
- debian flex (Debian): \< 2.6.1-1 \| \< 2.5.39-8+deb8u1 \| \< 2.5.39-8+deb8u2
- ubuntu flex (Ubuntu): All versions (No fix recorded)
- debian debian\_linux: 8.0
- mageia flex (Mageia): \< 2.5.39-3.1.mga5
- westes flex: ≤ 2.6.0

## References

- <http://www.openwall.com/lists/oss-security/2016/07/18/8>
- <http://www.openwall.com/lists/oss-security/2016/07/26/12>
- <https://github.com/westes/flex/commit/a5cbe929ac3255d371e698f62dc256afe7006466>
- <http://www.debian.org/security/2016/dsa-3653>
- <https://security.gentoo.org/glsa/201701-31>
- <https://security.alpinelinux.org/vuln/CVE-2016-6354>
- <https://advisories.mageia.org/MGASA-2016-0396.html>
- <https://bugs.mageia.org/show_bug.cgi?id=19063>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/KZDEYNSCYVEMOKRO6EJOUZS7WM5WB43M/>
- <https://ubuntu.com/security/CVE-2016-6354>
- <http://seclists.org/oss-sec/2016/q3/97>
- <https://www.cve.org/CVERecord?id=CVE-2016-6354>
- <https://security-tracker.debian.org/tracker/CVE-2016-6354>

---

Data as of 2026-12-05T13:43:48.826Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
