{"schemaVersion":3,"id":"CVE-2021-21840","aliases":["UBUNTU-CVE-2021-21840","DEBIAN-CVE-2021-21840"],"status":"published","duplicateOf":null,"title":null,"description":"An exploitable integer overflow vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content library v1.0.1. A specially crafted MPEG-4 input used to process an atom using the “saio” FOURCC code cause an integer overflow due to unchecked arithmetic resulting in a heap-based buffer overflow that causes memory corruption. An attacker can convince a user to open a video to trigger this vulnerability.","dates":{"published":"2021-08-25T18:21:34.000Z","modified":"2024-08-03T18:23:29.561Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"CVE.org","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01695,"percentile":0.76767,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.01695},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01695,"percentile":0.76767}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01695,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01695,"percentile":0.76767}]},"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":[{"id":"REF_F2BAED800F81C4D4","name":"Exploit Reference (talosintelligence.com)","source":"reference","url":"https://talosintelligence.com/vulnerability_reports/TALOS-2021-1297","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-680","name":"Integer Overflow to Buffer Overflow","description":"The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.","type":"weakness","status":"Draft","abstraction":"Compound","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/680.html"},{"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":"debian","product":"gpac","name":"gpac","label":"gpac","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/gpac","purlType":"deb","versions":[{"text":"< 1.0.1+dfsg1-4+deb11u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.1+dfsg1-4+deb11u1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"gpac","name":"gpac","label":"gpac","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/gpac","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":"10.0","noFixRecorded":false,"fixedIn":null},{"text":"11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0 | 11.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"gpac","product":"gpac","name":"gpac","label":"gpac","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.0.1","eol":null,"hubHref":"/vendor/gpac/gpac"}],"affectedCount":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://talosintelligence.com/vulnerability_reports/TALOS-2021-1297","label":"talosintelligence.com/vulnerability_reports/TALOS-2021-1297","hostname":"talosintelligence.com","tags":["X Refsource MISC","REPORT","Exploit","Third Party Advisory"]},{"url":"https://www.debian.org/security/2021/dsa-4966","label":"www.debian.org/security/2021/dsa-4966","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-21840","label":"ubuntu.com/security/CVE-2021-21840","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/gpac/gpac/commit/b515fd04f5f00f4a99df741042f1efb31ad56351","label":"github.com/gpac/gpac/commit/b515fd04f5f00f4a99df741042f1efb31ad56351","hostname":"github.com","tags":["REPORT"]},{"url":"https://github.com/gpac/gpac/issues/1814","label":"github.com/gpac/gpac/issues/1814","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21840","label":"www.cve.org/CVERecord?id=CVE-2021-21840","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-21840","label":"security-tracker.debian.org/tracker/CVE-2021-21840","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-4966-1","MGASA-2021-0431"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-08-25T18:21:34.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:23:29.561Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":46,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T13:28:21.634Z","stale":false,"partial":false}}