{"id":"CVE-2021-31254","details":"Buffer overflow in the tenc_box_read function in MP4Box in GPAC 1.0.1 allows attackers to cause a denial of service or execute arbitrary code via a crafted file, related invalid IV sizes.","modified":"2026-08-07T16:57:18.684517Z","published":"2021-04-19T19:15:18.077Z","references":[{"type":"FIX","url":"https://github.com/gpac/gpac/commit/8986422c21fbd9a7bf6561cae65aae42077447e8"},{"type":"EVIDENCE","url":"https://github.com/gpac/gpac/issues/1703"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gpac/gpac","events":[{"introduced":"d8538e8ae946b32d99c6b2c57cbb327146e9cd9d"},{"last_affected":"d8538e8ae946b32d99c6b2c57cbb327146e9cd9d"},{"fixed":"8986422c21fbd9a7bf6561cae65aae42077447e8"}],"database_specific":{"cpe":"cpe:2.3:a:gpac:gpac:1.0.1:*:*:*:*:*:*:*","extracted_events":[{"introduced":"1.0.1"},{"last_affected":"1.0.1"}],"source":["CPE_STRING","REFERENCES"]}}],"versions":["1.0.1","v1.0.1"],"database_specific":{"vanir_signatures_modified":"2026-08-07T16:57:18Z","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/gpac/gpac/commit/8986422c21fbd9a7bf6561cae65aae42077447e8","target":{"file":"src/isomedia/box_code_drm.c","function":"tenc_box_read"},"deprecated":false,"digest":{"function_hash":"4849708879882613840022375048679469026","length":773},"id":"CVE-2021-31254-dfdec9a9","signature_type":"Function"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/gpac/gpac/commit/8986422c21fbd9a7bf6561cae65aae42077447e8","target":{"file":"src/isomedia/box_code_drm.c"},"deprecated":false,"digest":{"line_hashes":["9954390780939663405509649729900886593","329965104858358940077373459695648792305","325748983408990306817580626227468735250","68100611574058582112789217219950522545","218938213027427872819405339186102037022","296214368139074869037793616046949433081"],"threshold":0.9},"id":"CVE-2021-31254-f4b9a9b3"}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31254.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}