{"id":"CVE-2021-33657","details":"There is a heap overflow problem in video/SDL_pixels.c in SDL (Simple DirectMedia Layer) 2.x to 2.0.18 versions. By crafting a malicious .BMP file, an attacker can cause the application using this library to crash, denial of service or Code execution.","modified":"2026-04-16T04:36:06.852017572Z","published":"2022-04-01T23:15:10.363Z","related":["SUSE-SU-2022:1218-1","SUSE-SU-2022:1273-1","SUSE-SU-2022:1312-1","SUSE-SU-2022:1313-1","SUSE-SU-2022:14943-1","openSUSE-SU-2024:11984-1","openSUSE-SU-2024:13582-1","openSUSE-SU-2025:15205-1","openSUSE-SU-2025:15206-1"],"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/02/msg00008.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202305-17"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202305-18"},{"type":"FIX","url":"https://github.com/libsdl-org/SDL/commit/8c91cf7dba5193f5ce12d06db1336515851c9ee9"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libsdl-org/sdl","events":[{"introduced":"1ad936eb29cf4506a7a103e8288d732f23e9c2b0"},{"last_affected":"2e9821423a237a1206e3c09020778faacfe430be"},{"fixed":"8c91cf7dba5193f5ce12d06db1336515851c9ee9"}],"database_specific":{"versions":[{"introduced":"2.0.0"},{"last_affected":"2.0.18"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-33657.json","vanir_signatures":[{"source":"https://github.com/libsdl-org/sdl/commit/8c91cf7dba5193f5ce12d06db1336515851c9ee9","digest":{"function_hash":"135559890956021690986487977211098728481","length":673},"signature_version":"v1","id":"CVE-2021-33657-493fc812","deprecated":false,"signature_type":"Function","target":{"function":"Map1to1","file":"src/video/SDL_pixels.c"}},{"deprecated":false,"source":"https://github.com/libsdl-org/sdl/commit/8c91cf7dba5193f5ce12d06db1336515851c9ee9","target":{"function":"Map1toN","file":"src/video/SDL_pixels.c"},"signature_version":"v1","id":"CVE-2021-33657-52cbc3ff","signature_type":"Function","digest":{"function_hash":"120029847142050598506380381411279339480","length":860}},{"signature_version":"v1","digest":{"line_hashes":["237541296599115013407641409675079124889","272085526378248488061226745576933115711","235132022122211645155266490537828432366","103230726993537480189666107780129338690","159352565534071501880625154615757691494","63061321940708442293120198552799010986","43469035986305709707052829820256164457","101640187021522532256005357573848813681"],"threshold":0.9},"signature_type":"Line","id":"CVE-2021-33657-795aa1c9","deprecated":false,"target":{"file":"src/video/SDL_pixels.c"},"source":"https://github.com/libsdl-org/sdl/commit/8c91cf7dba5193f5ce12d06db1336515851c9ee9"}],"vanir_signatures_modified":"2026-04-11T17:26:01Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}