{"schemaVersion":3,"id":"CVE-2016-6354","aliases":["ALPINE-CVE-2016-6354","MGASA-2016-0396","UBUNTU-CVE-2016-6354","DEBIAN-CVE-2016-6354","DSA-3653-1","DSA-3653-2"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2016-09-21T14:00:00.000Z","modified":"2024-08-06T01:29:19.088Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true}]},"epss":{"probability":0.09117,"percentile":0.95271,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.3500000000000003,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.08767},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.06385,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.09117,"percentile":0.95271}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.06385,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.08767,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.09117,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.09117,"percentile":0.95271}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"alpine","product":"flex","name":"flex","label":"flex","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/flex","purlType":"apk","versions":[{"text":"< 2.5.39-r1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.5.39-r3","noFixRecorded":false,"fixedIn":null},{"text":"< 2.6.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.39-r1 | < 2.5.39-r3 | < 2.6.1-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"flex","name":"flex","label":"flex","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/flex","purlType":"deb","versions":[{"text":"< 2.6.1-1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.5.39-8+deb8u1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.5.39-8+deb8u2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.6.1-1 | < 2.5.39-8+deb8u1 | < 2.5.39-8+deb8u2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"flex","name":"flex","label":"flex","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/flex","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"mageia","product":"flex","name":"flex","label":"flex","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/flex","purlType":"rpm","versions":[{"text":"< 2.5.39-3.1.mga5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.39-3.1.mga5","eol":null,"hubHref":null},{"vendor":"westes","product":"flex","name":"flex","label":"flex","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 2.6.0","eol":null,"hubHref":"/vendor/westes/flex"}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"http://www.openwall.com/lists/oss-security/2016/07/18/8","label":"www.openwall.com/lists/oss-security/2016/07/18/8","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Release Notes","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2016/07/26/12","label":"www.openwall.com/lists/oss-security/2016/07/26/12","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Release Notes","Third Party Advisory"]},{"url":"https://github.com/westes/flex/commit/a5cbe929ac3255d371e698f62dc256afe7006466","label":"github.com/westes/flex/commit/a5cbe929ac3255d371e698f62dc256afe7006466","hostname":"github.com","tags":["X Refsource CONFIRM","Patch"]},{"url":"http://www.debian.org/security/2016/dsa-3653","label":"www.debian.org/security/2016/dsa-3653","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/201701-31","label":"security.gentoo.org/glsa/201701-31","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2016-6354","label":"security.alpinelinux.org/vuln/CVE-2016-6354","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2016-0396.html","label":"advisories.mageia.org/MGASA-2016-0396.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=19063","label":"bugs.mageia.org/show_bug.cgi?id=19063","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/KZDEYNSCYVEMOKRO6EJOUZS7WM5WB43M/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2016-6354","label":"ubuntu.com/security/CVE-2016-6354","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"http://seclists.org/oss-sec/2016/q3/97","label":"seclists.org/oss-sec/2016/q3/97","hostname":"seclists.org","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-6354","label":"www.cve.org/CVERecord?id=CVE-2016-6354","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-6354","label":"security-tracker.debian.org/tracker/CVE-2016-6354","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2016:2253-1","OPENSUSE-SU-2016:2254-1","OPENSUSE-SU-2024:10071-1","OPENSUSE-SU-2024:10230-1","OPENSUSE-SU-2024:14572-1","SUSE-SU-2016:2061-1","SUSE-SU-2016:2131-1","SUSE-SU-2016:2195-1","SUSE-SU-2016:2397-1","SUSE-SU-2017:1442-1"],"duplicates":[],"related":["OPENSUSE-SU-2016:2253-1","OPENSUSE-SU-2016:2254-1","OPENSUSE-SU-2024:10071-1","OPENSUSE-SU-2024:10230-1","OPENSUSE-SU-2024:14572-1","SUSE-SU-2016:2061-1","SUSE-SU-2016:2131-1","SUSE-SU-2016:2195-1","SUSE-SU-2016:2397-1","SUSE-SU-2017:1442-1"]},"timeline":[{"kind":"published","date":"2016-09-21T14:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T01:29:19.088Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T10:41:36.234Z","stale":false,"partial":false}}