{"id":"CVE-2019-12219","aliases":["ALPINE-CVE-2019-12219","BELL-CVE-2019-12219","DEBIAN-CVE-2019-12219","DLA-1861-1","DLA-1865-1","EUVD-2019-3864","GHSA-rh22-q4j2-m68r","MGASA-2019-0363","MGASA-2019-0364","UBUNTU-CVE-2019-12219","USN-4238-1"],"status":"published","title":"An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in...","description":"An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4. There is an invalid free error in the SDL function SDL_SetError_REAL at SDL_error.c.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02001,"percentile":0.80906,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-415"],"published":"2019-05-20T16:33:21Z","modified":"2026-09-21T07:01:46Z","fixes":[{"ecosystem":"Alpine:v3.10","package":"sdl2_image","fixed_in":["2.0.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.7","package":"sdl2_image","fixed_in":["2.0.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.8","package":"sdl2_image","fixed_in":["2.0.5-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.9","package":"sdl2_image","fixed_in":["2.0.5-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"libsdl2-image","fixed_in":["2.0.5+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libsdl2-image","fixed_in":["2.0.5+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libsdl2-image","fixed_in":["2.0.5+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"sdl-image1.2","fixed_in":["1.2.12-11"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"sdl-image1.2","fixed_in":["1.2.12-11"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"sdl-image1.2","fixed_in":["1.2.12-11"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"libsdl2-image","fixed_in":["2.0.0+dfsg-3+deb8u2build0.14.04.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"sdl-image1.2","fixed_in":["1.2.12-5+deb9u1ubuntu0.14.04.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"sdl-image1.2","fixed_in":["1.2.12-5+deb9u1ubuntu0.16.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"sdl-image1.2","fixed_in":["1.2.12-8ubuntu0.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.10","package":"sdl2_image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.7","package":"sdl2_image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.8","package":"sdl2_image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.5-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.9","package":"sdl2_image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.5-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libsdl2-image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.5+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libsdl2-image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.5+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libsdl2-image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.5+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"sdl-image1.2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.12-11"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"sdl-image1.2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.12-11"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"sdl-image1.2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.12-11"}]}]},{"source":"osv","ecosystem":"Debian:8","package":"libsdl2-image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0+dfsg-3+deb8u2"}]}],"versions":["2.0.0+dfsg-3","2.0.0+dfsg-3+deb8u1"],"bundled":11},{"source":"osv","ecosystem":"Debian:8","package":"sdl-image1.2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.12-5+deb8u2"}]}],"versions":["1.2.12-5","1.2.12-5+deb8u1"],"bundled":11},{"source":"osv","ecosystem":"Mageia:7","package":"SDL_image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.12-12.1.mga7"}]}],"bundled":13},{"source":"osv","ecosystem":"Mageia:7","package":"sdl2_image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.5-1.mga7"}]}],"bundled":13},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"libsdl2-image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0+dfsg-3+deb8u2build0.14.04.1~esm1"}]}],"versions":["2.0.0+dfsg-2","2.0.0+dfsg-3","2.0.0+dfsg-3build2","2.0.0+dfsg-3+deb8u1build0.14.04.1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"sdl-image1.2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.12-5+deb9u1ubuntu0.14.04.1~esm1"}]}],"versions":["1.2.12-4ubuntu1","1.2.12-5","1.2.12-5build2","1.2.12-5+deb9u1build0.14.04.1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"sdl-image1.2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.12-5+deb9u1ubuntu0.16.04.1"}]}],"versions":["1.2.12-5build2","1.2.12-5+deb9u1build0.16.04.1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libsdl2-image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0+dfsg-3build2","2.0.1+dfsg-1","2.0.1+dfsg-2","2.0.1+dfsg-2+deb9u1build0.16.04.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"sdl-image1.2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.12-8ubuntu0.1"}]}],"versions":["1.2.12-6","1.2.12-7","1.2.12-8"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libsdl2-image","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.1+dfsg-3","2.0.1+dfsg-4","2.0.2+dfsg1-1","2.0.3+dfsg1-1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"sdl-image1.2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.12-5+deb9u1ubuntu0.16.04.1"}]}],"versions":["1.2.12-5build2","1.2.12-5+deb9u1build0.16.04.1"],"bundled":12},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"sdl-image1.2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.12-8ubuntu0.1"}]}],"versions":["1.2.12-6","1.2.12-7","1.2.12-8"],"bundled":12}],"products":[{"vendor":"libsdl","product":"sdl2_image"},{"vendor":"libsdl","product":"simple_directmedia_layer"}],"references":[{"url":"https://bugzilla.libsdl.org/show_bug.cgi?id=4625","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Vendor Advisory","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/07/msg00021.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/07/msg00026.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WJ2VRD57UOBT72JUC2DIFHEFCH4N64SW/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://usn.ubuntu.com/4238-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GY6FDFPYUJ7YPY3XB5U75VJHBSVRVIKO/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12219"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GY6FDFPYUJ7YPY3XB5U75VJHBSVRVIKO"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WJ2VRD57UOBT72JUC2DIFHEFCH4N64SW"},{"url":"https://usn.ubuntu.com/4238-1"},{"url":"https://github.com/advisories/GHSA-rh22-q4j2-m68r"},{"url":"https://security.alpinelinux.org/vuln/CVE-2019-12219","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2019-12219","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-12219","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2019-0363.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=25766","tags":["report"]},{"url":"https://lists.opensuse.org/opensuse-updates/2019-09/msg00031.html","tags":["web"]},{"url":"https://advisories.mageia.org/MGASA-2019-0364.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=25767","tags":["report"]},{"url":"https://lists.opensuse.org/opensuse-updates/2019-09/msg00027.html","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2019-12219","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4238-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-12219","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-3977","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-5051","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-5052","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-7635","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-12216","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-12217","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-12218","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-12220","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-12221","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-12222","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-13616","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2019-12219","description":"An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4. There is an invalid free error in the SDL function SDL_SetError_REAL at SDL_error.c.","status":"published","published":"2019-05-20T16:33:21Z","modified":"2024-08-04T23:17:39.688Z","updated_at":"2026-11-02T14:20:23.697579Z"}],"euvd":[{"id":"EUVD-2019-3864","description":"An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4. There is an invalid free error in the SDL function SDL_SetError_REAL at SDL_error.c.","status":"published","published":"2019-05-20T16:33:21Z","modified":"2024-08-04T23:17:39Z","updated_at":"2026-11-03T02:40:46.416719Z"}],"ghsa":[{"id":"GHSA-rh22-q4j2-m68r","title":"An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in...","description":"An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4. There is an invalid free error in the SDL function SDL_SetError_REAL at SDL_error.c.","status":"published","published":"2022-05-24T16:46:07Z","modified":"2024-04-04T00:42:49Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T14:55:51.119563Z"}],"nvd":[{"id":"CVE-2019-12219","description":"An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4. There is an invalid free error in the SDL function SDL_SetError_REAL at SDL_error.c.","status":"published","published":"2019-05-20T17:29:17.47Z","modified":"2026-06-17T02:14:16.183Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T14:05:13.880207Z"}],"osv":[{"id":"ALPINE-CVE-2019-12219","description":"An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4. There is an invalid free error in the SDL function SDL_SetError_REAL at SDL_error.c.","status":"published","published":"2019-05-20T17:29:17.47Z","modified":"2026-09-21T06:17:52.462795994Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:27:47.663013Z"},{"id":"BELL-CVE-2019-12219","title":"CVE-2019-12219 does not affect BellSoft software","status":"withdrawn","published":"2019-05-20T17:29:00Z","modified":"2026-01-26T09:49:57.430743Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:28:15.340685Z"},{"id":"CVE-2019-12219","description":"An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4. There is an invalid free error in the SDL function SDL_SetError_REAL at SDL_error.c.","status":"published","published":"2019-05-20T17:29:17.47Z","modified":"2026-04-16T04:40:55.982487948Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:10.718934Z"},{"id":"DEBIAN-CVE-2019-12219","description":"An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4. There is an invalid free error in the SDL function SDL_SetError_REAL at SDL_error.c.","status":"published","published":"2019-05-20T17:29:17.47Z","modified":"2026-09-21T07:01:46.508302643Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:31.467893Z"},{"id":"UBUNTU-CVE-2019-12219","description":"An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4. There is an invalid free error in the SDL function SDL_SetError_REAL at SDL_error.c.","status":"published","published":"2019-05-20T17:29:00Z","modified":"2026-04-22T12:08:41.62331Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:19.202697Z"},{"id":"DLA-1861-1","title":"libsdl2-image - security update","status":"published","published":"2019-07-22T00:00:00Z","modified":"2026-03-09T01:18:26.915964Z","updated_at":"2026-11-02T15:46:09.777694Z"},{"id":"DLA-1865-1","title":"sdl-image1.2 - security update","status":"published","published":"2019-07-27T00:00:00Z","modified":"2026-03-09T01:21:46.079457Z","updated_at":"2026-11-02T15:46:09.777694Z"},{"id":"MGASA-2019-0363","title":"Updated SDL_image packages fix security vulnerabilities","description":"The updated packages fix security vulnerabilities:\n\nAn exploitable code execution vulnerability exists in the XCF image\nrendering functionality of SDL2_image-2.0.3. A specially crafted XCF\nimage can cause a heap overflow, resulting in code execution. An attacker\ncan display a specially crafted image to trigger this vulnerability.\n(CVE-2018-3977)\n\nAn exploitable integer overflow vulnerability exists when loading a PCX\nfile in SDL2_image 2.0.4. A specially crafted file can cause an integer\noverflow, resulting in too little memory being allocated, which can lead\nto a buffer overflow and potential code execution. (CVE-2019-5052)\n\nAn exploitable code execution vulnerability exists in the XCF image\nrendering functionality of SDL2_image 2.0.4. A specially crafted XCF image\ncan cause a heap overflow, resulting in code execution. (CVE-2019-5058)\n\nAn exploitable code execution vulnerability exists in the XPM image\nrendering functionality of SDL2_image 2.0.4. A specially crafted XPM image\ncan cause an integer overflow, allocating too small of a buffer. This\nbuffer can then be written out of bounds resulting in a heap overflow,\nultimately ending in code execution. (CVE-2019-5059)\n\nAn exploitable code execution vulnerability exists in the XPM image\nrendering function of SDL2_image 2.0.4. A specially crafted XPM image can\ncause an integer overflow in the colorhash function, allocating too small\nof a buffer. This buffer can then be written out of bounds, resulting in a\nheap overflow, ultimately ending in code execution. (CVE-2019-5060)\n\nSDL (Simple DirectMedia Layer) through 1.2.15 and 2.x through 2.0.9 has a\nheap-based buffer over-read in Blit1to4 in video/SDL_blit_1.c\n(CVE-2019-7635).\n\nAn issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL)\n2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4.\nThere is a NULL pointer dereference in the SDL stdio_read function in\nfile/SDL_rwops.c. (CVE-2019-12217)\n\nAn issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL)\n2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4.\nThere is a NULL pointer dereference in the SDL2_image function\nIMG_LoadPCX_RW at IMG_pcx.c. (CVE-2019-12218)\n\nAn issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL)\n2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4.\nThere is an invalid free error in the SDL function SDL_SetError_REAL\nat SDL_error.c. (CVE-2019-12219)\n\nAn issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL)\n2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4.\nThere is an out-of-bounds read in the SDL function SDL_FreePalette_REAL\nat video/SDL_pixels.c. (CVE-2019-12220)\n\nAn issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL)\n2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4.\nThere is a SEGV in the SDL function SDL_free_REAL at stdlib/SDL_malloc.c.\n(CVE-2019-12221)\n\nAn issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL)\n2.0.9. There is an out-of-bounds read in the function SDL_InvalidateMap\nat video/SDL_pixels.c. (CVE-2019-12222)\n\nSDL (Simple DirectMedia Layer) through 1.2.15 and 2.x through 2.0.9 has\na heap-based buffer over-read in BlitNtoN in video/SDL_blit_N.c when\ncalled from SDL_SoftBlit in video/SDL_blit.c. (CVE-2019-13616)\n","status":"published","published":"2019-12-06T14:15:42Z","modified":"2026-04-16T04:43:16.504296531Z","updated_at":"2026-11-02T15:49:41.151324Z"},{"id":"MGASA-2019-0364","title":"Updated sdl2_image packages fix security vulnerabilities","description":"Updated sdl2_image packages fix security vulnerabilities:\n\nAn exploitable heap-based buffer overflow vulnerability exists when loading\na PCX file in SDL2_image, version 2.0.4. A missing error handler can lead\nto a buffer overflow and potential code execution. An attacker can provide\na specially crafted image file to trigger this vulnerability.\n(CVE-2019-5051)\n\nAn exploitable integer overflow vulnerability exists when loading a PCX\nfile in SDL2_image 2.0.4. A specially crafted file can cause an integer\noverflow, resulting in too little memory being allocated, which can lead\nto a buffer overflow and potential code execution. (CVE-2019-5052)\n\nAn exploitable code execution vulnerability exists in the PCX image\nrendering functionality of SDL2_image 2.0.4. A specially crafted PCX image\ncan cause a heap overflow, resulting in code execution. An attacker can\ndisplay a specially crafted image to trigger this vulnerability.\n(CVE-2019-5057)\n\nAn exploitable code execution vulnerability exists in the XCF image\nrendering functionality of SDL2_image 2.0.4. A specially crafted XCF\nimage can cause a heap overflow, resulting in code execution. \n(CVE-2019-5058)\n\nAn exploitable code execution vulnerability exists in the XPM image\nrendering functionality of SDL2_image 2.0.4. A specially crafted XPM image\ncan cause an integer overflow, allocating too small of a buffer. This\nbuffer can then be written out of bounds resulting in a heap overflow,\nultimately ending in code execution. (CVE-2019-5059)\n\nAn exploitable code execution vulnerability exists in the XPM image\nrendering function of SDL2_image 2.0.4. A specially crafted XPM image\ncan cause an integer overflow in the colorhash function, allocating too\nsmall of a buffer. This buffer can then be written out of bounds,\nresulting in a heap overflow, ultimately ending in code execution.\n(CVE-2019-5060)\n\nAn issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL)\n2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4.\nThere is a NULL pointer dereference in the SDL stdio_read function in\nfile/SDL_rwops.c. (CVE-2019-12217)\n\nAn issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL)\n2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4.\nThere is a NULL pointer dereference in the SDL2_image function\nIMG_LoadPCX_RW at IMG_pcx.c. (CVE-2019-12218)\n\nAn issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL)\n2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4.\nThere is an invalid free error in the SDL function SDL_SetError_REAL at\nSDL_error.c. (CVE-2019-12219)\n\nAn issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL)\n2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4.\nThere is an out-of-bounds read in the SDL function SDL_FreePalette_REAL\nat video/SDL_pixels.c. (CVE-2019-12220)\n\nAn issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL)\n2.0.9 when used in conjunction with libSDL2_image.a in SDL2_image 2.0.4.\nThere is a SEGV in the SDL function SDL_free_REAL at stdlib/SDL_malloc.c.\n(CVE-2019-12221)\n\nAn issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL)\n2.0.9. There is an out-of-bounds read in the function SDL_InvalidateMap\nat video/SDL_pixels.c. (CVE-2019-12222)\n\nSDL (Simple DirectMedia Layer) through 1.2.15 and 2.x through 2.0.9 has\na heap-based buffer over-read in BlitNtoN in video/SDL_blit_N.c when\ncalled from SDL_SoftBlit in video/SDL_blit.c. (CVE-2019-13616)\n","status":"published","published":"2019-12-06T14:15:42Z","modified":"2026-04-16T04:42:38.017599953Z","updated_at":"2026-11-02T15:49:41.151324Z"},{"id":"USN-4238-1","title":"sdl-image1.2 vulnerabilities","description":"It was discovered that SDL_image incorrectly handled certain image files. An\nattacker could possibly use this issue to cause a denial of service or other\nunspecified impact.\n","status":"published","published":"2020-01-14T15:01:52Z","modified":"2026-04-27T15:48:45.87255876Z","updated_at":"2026-11-02T16:58:14.547547Z"}]}}
