{"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-04-11T17:12:25.320126Z","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":"0"},{"last_affected":"d8538e8ae946b32d99c6b2c57cbb327146e9cd9d"},{"fixed":"8986422c21fbd9a7bf6561cae65aae42077447e8"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"1.0.1"}]}}],"versions":["v0.5.2","v0.6.0","v0.7.0","v0.7.1","v0.9.0","v0.9.0-preview","v1.0.0","v1.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31254.json","vanir_signatures":[{"target":{"file":"src/isomedia/box_code_drm.c","function":"tenc_box_read"},"signature_type":"Function","id":"CVE-2021-31254-dfdec9a9","source":"https://github.com/gpac/gpac/commit/8986422c21fbd9a7bf6561cae65aae42077447e8","digest":{"function_hash":"4849708879882613840022375048679469026","length":773},"signature_version":"v1","deprecated":false},{"target":{"file":"src/isomedia/box_code_drm.c"},"signature_type":"Line","id":"CVE-2021-31254-f4b9a9b3","source":"https://github.com/gpac/gpac/commit/8986422c21fbd9a7bf6561cae65aae42077447e8","digest":{"line_hashes":["9954390780939663405509649729900886593","329965104858358940077373459695648792305","325748983408990306817580626227468735250","68100611574058582112789217219950522545","218938213027427872819405339186102037022","296214368139074869037793616046949433081"],"threshold":0.9},"signature_version":"v1","deprecated":false}],"vanir_signatures_modified":"2026-04-11T17:12:25Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}