CVE-2019-12219
An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
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.
- Record
CVE-2019-12219- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-415
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2019-12219- Updated
- 2026-11-02
EUVDEUVD-2019-3864 No score
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.
- Record
EUVD-2019-3864- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-rh22-q4j2-m68r
8.8
An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9 when used in...
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.
- Record
GHSA-rh22-q4j2-m68r- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-415
- Updated
- 2026-11-02
OSVALPINE-CVE-2019-12219
8.8
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.
- Record
ALPINE-CVE-2019-12219- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2019-12219
8.8
CVE-2019-12219 does not affect BellSoft software
- Record
BELL-CVE-2019-12219- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSV
8.8
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.
- Record
CVE-2019-12219- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2019-12219
8.8
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.
- Record
DEBIAN-CVE-2019-12219- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2019-12219
8.8
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.
- Record
UBUNTU-CVE-2019-12219- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2019-0363 No score
Updated SDL_image packages fix security vulnerabilities
The updated packages fix security vulnerabilities:
An exploitable code execution vulnerability exists in the XCF image rendering functionality of SDL2_image-2.0.3. A specially crafted XCF image can cause a heap overflow, resulting in code execution. An attacker can display a specially crafted image to trigger this vulnerability. (CVE-2018-3977)
An exploitable integer overflow vulnerability exists when loading a PCX file in SDL2_image 2.0.4. A specially crafted file can cause an integer overflow, resulting in too little memory being allocated, which can lead to a buffer overflow and potential code execution. (CVE-2019-5052)
An exploitable code execution vulnerability exists in the XCF image rendering functionality of SDL2_image 2.0.4. A specially crafted XCF image can cause a heap overflow, resulting in code execution. (CVE-2019-5058)
An exploitable code execution vulnerability exists in the XPM image rendering functionality of SDL2_image 2.0.4. A specially crafted XPM image can cause an integer overflow, allocating too small of a buffer. This buffer can then be written out of bounds resulting in a heap overflow, ultimately ending in code execution. (CVE-2019-5059)
An exploitable code execution vulnerability exists in the XPM image rendering function of SDL2_image 2.0.4. A specially crafted XPM image can cause an integer overflow in the colorhash function, allocating too small of a buffer. This buffer can then be written out of bounds, resulting in a heap overflow, ultimately ending in code execution. (CVE-2019-5060)
SDL (Simple DirectMedia Layer) through 1.2.15 and 2.x through 2.0.9 has a heap-based buffer over-read in Blit1to4 in video/SDL_blit_1.c (CVE-2019-7635).
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 a NULL pointer dereference in the SDL stdio_read function in file/SDL_rwops.c. (CVE-2019-12217)
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 a NULL pointer dereference in the SDL2_image function IMG_LoadPCX_RW at IMG_pcx.c. (CVE-2019-12218)
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. (CVE-2019-12219)
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 out-of-bounds read in the SDL function SDL_FreePalette_REAL at video/SDL_pixels.c. (CVE-2019-12220)
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 a SEGV in the SDL function SDL_free_REAL at stdlib/SDL_malloc.c. (CVE-2019-12221)
An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9. There is an out-of-bounds read in the function SDL_InvalidateMap at video/SDL_pixels.c. (CVE-2019-12222)
SDL (Simple DirectMedia Layer) through 1.2.15 and 2.x through 2.0.9 has a heap-based buffer over-read in BlitNtoN in video/SDL_blit_N.c when called from SDL_SoftBlit in video/SDL_blit.c. (CVE-2019-13616)
- Record
MGASA-2019-0363- Updated
- 2026-11-02
OSVMGASA-2019-0364 No score
Updated sdl2_image packages fix security vulnerabilities
Updated sdl2_image packages fix security vulnerabilities:
An exploitable heap-based buffer overflow vulnerability exists when loading a PCX file in SDL2_image, version 2.0.4. A missing error handler can lead to a buffer overflow and potential code execution. An attacker can provide a specially crafted image file to trigger this vulnerability. (CVE-2019-5051)
An exploitable integer overflow vulnerability exists when loading a PCX file in SDL2_image 2.0.4. A specially crafted file can cause an integer overflow, resulting in too little memory being allocated, which can lead to a buffer overflow and potential code execution. (CVE-2019-5052)
An exploitable code execution vulnerability exists in the PCX image rendering functionality of SDL2_image 2.0.4. A specially crafted PCX image can cause a heap overflow, resulting in code execution. An attacker can display a specially crafted image to trigger this vulnerability. (CVE-2019-5057)
An exploitable code execution vulnerability exists in the XCF image rendering functionality of SDL2_image 2.0.4. A specially crafted XCF image can cause a heap overflow, resulting in code execution. (CVE-2019-5058)
An exploitable code execution vulnerability exists in the XPM image rendering functionality of SDL2_image 2.0.4. A specially crafted XPM image can cause an integer overflow, allocating too small of a buffer. This buffer can then be written out of bounds resulting in a heap overflow, ultimately ending in code execution. (CVE-2019-5059)
An exploitable code execution vulnerability exists in the XPM image rendering function of SDL2_image 2.0.4. A specially crafted XPM image can cause an integer overflow in the colorhash function, allocating too small of a buffer. This buffer can then be written out of bounds, resulting in a heap overflow, ultimately ending in code execution. (CVE-2019-5060)
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 a NULL pointer dereference in the SDL stdio_read function in file/SDL_rwops.c. (CVE-2019-12217)
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 a NULL pointer dereference in the SDL2_image function IMG_LoadPCX_RW at IMG_pcx.c. (CVE-2019-12218)
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. (CVE-2019-12219)
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 out-of-bounds read in the SDL function SDL_FreePalette_REAL at video/SDL_pixels.c. (CVE-2019-12220)
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 a SEGV in the SDL function SDL_free_REAL at stdlib/SDL_malloc.c. (CVE-2019-12221)
An issue was discovered in libSDL2.a in Simple DirectMedia Layer (SDL) 2.0.9. There is an out-of-bounds read in the function SDL_InvalidateMap at video/SDL_pixels.c. (CVE-2019-12222)
SDL (Simple DirectMedia Layer) through 1.2.15 and 2.x through 2.0.9 has a heap-based buffer over-read in BlitNtoN in video/SDL_blit_N.c when called from SDL_SoftBlit in video/SDL_blit.c. (CVE-2019-13616)
- Record
MGASA-2019-0364- Updated
- 2026-11-02
OSVUSN-4238-1 No score
sdl-image1.2 vulnerabilities
It was discovered that SDL_image incorrectly handled certain image files. An attacker could possibly use this issue to cause a denial of service or other unspecified impact.
- Record
USN-4238-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
sdl2_imageAlpine:v3.10 |
before 2.0.5-r0 | 2.0.5-r0 |
sdl2_imageAlpine:v3.7 |
before 2.0.5-r0 | 2.0.5-r0 |
sdl2_imageAlpine:v3.8 |
before 2.0.5-r0 | 2.0.5-r0 |
sdl2_imageAlpine:v3.9 |
before 2.0.5-r0 | 2.0.5-r0 |
libsdl2-imageDebian:12 |
before 2.0.5+dfsg1-1 | 2.0.5+dfsg1-1 |
libsdl2-imageDebian:13 |
before 2.0.5+dfsg1-1 | 2.0.5+dfsg1-1 |
libsdl2-imageDebian:14 |
before 2.0.5+dfsg1-1 | 2.0.5+dfsg1-1 |
sdl-image1.2Debian:12 |
before 1.2.12-11 | 1.2.12-11 |
sdl-image1.2Debian:13 |
before 1.2.12-11 | 1.2.12-11 |
sdl-image1.2Debian:14 |
before 1.2.12-11 | 1.2.12-11 |
Show 12 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libsdl2-imageDebian:8 From an advisory covering 11 CVEs |
before 2.0.0+dfsg-3+deb8u2, plus listed versions 2.0.0+dfsg-32.0.0+dfsg-3+deb8u1 |
2.0.0+dfsg-3+deb8u2 |
sdl-image1.2Debian:8 From an advisory covering 11 CVEs |
before 1.2.12-5+deb8u2, plus listed versions 1.2.12-51.2.12-5+deb8u1 |
1.2.12-5+deb8u2 |
SDL_imageMageia:7 From an advisory covering 13 CVEs |
before 1.2.12-12.1.mga7 | 1.2.12-12.1.mga7 |
sdl2_imageMageia:7 From an advisory covering 13 CVEs |
before 2.0.5-1.mga7 | 2.0.5-1.mga7 |
libsdl2-imageUbuntu:Pro:14.04:LTS |
before 2.0.0+dfsg-3+deb8u2build0.14.04.1~esm1, plus listed versions 2.0.0+dfsg-22.0.0+dfsg-32.0.0+dfsg-3build22.0.0+dfsg-3+deb8u1build0.14.04.1 |
2.0.0+dfsg-3+deb8u2build0.14.04.1~esm1 |
sdl-image1.2Ubuntu:Pro:14.04:LTS |
before 1.2.12-5+deb9u1ubuntu0.14.04.1~esm1, plus listed versions 1.2.12-4ubuntu11.2.12-51.2.12-5build21.2.12-5+deb9u1build0.14.04.1 |
1.2.12-5+deb9u1ubuntu0.14.04.1~esm1 |
sdl-image1.2Ubuntu:16.04:LTS |
before 1.2.12-5+deb9u1ubuntu0.16.04.1, plus listed versions 1.2.12-5build21.2.12-5+deb9u1build0.16.04.1 |
1.2.12-5+deb9u1ubuntu0.16.04.1 |
libsdl2-imageUbuntu:16.04:LTS |
All versions, plus listed versions 2.0.0+dfsg-3build22.0.1+dfsg-12.0.1+dfsg-22.0.1+dfsg-2+deb9u1build0.16.04.1 |
None known |
sdl-image1.2Ubuntu:18.04:LTS |
before 1.2.12-8ubuntu0.1, plus listed versions 1.2.12-61.2.12-71.2.12-8 |
1.2.12-8ubuntu0.1 |
libsdl2-imageUbuntu:18.04:LTS |
All versions, plus listed versions 2.0.1+dfsg-32.0.1+dfsg-42.0.2+dfsg1-12.0.3+dfsg1-1 |
None known |
sdl-image1.2Ubuntu:16.04:LTS From an advisory covering 12 CVEs |
before 1.2.12-5+deb9u1ubuntu0.16.04.1, plus listed versions 1.2.12-5build21.2.12-5+deb9u1build0.16.04.1 |
1.2.12-5+deb9u1ubuntu0.16.04.1 |
sdl-image1.2Ubuntu:18.04:LTS From an advisory covering 12 CVEs |
before 1.2.12-8ubuntu0.1, plus listed versions 1.2.12-61.2.12-71.2.12-8 |
1.2.12-8ubuntu0.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2019-12219 is a high vulnerability (CVSS 8.8) in Libsdl Simple Directmedia Layer, published May 20, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.00%, the 80th percentile. Fixed in sdl2_image 2.0.5-r0.
References
bugzilla.libsdl.org/show_bug.cgi?id=4625
lists.debian.org/debian-lts-announce/2019/07/msg00021.html
lists.debian.org/debian-lts-announce/2019/07/msg00026.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WJ2VRD57UOBT72JUC2DIFHEFCH4N64SW
usn.ubuntu.com/4238-1
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GY6FDFPYUJ7YPY3XB5U75VJHBSVRVIKO
Show 25 moreShow less
nvd.nist.gov/vuln/detail/CVE-2019-12219
github.com/advisories/GHSA-rh22-q4j2-m68r
security.alpinelinux.org/vuln/CVE-2019-12219
docs.bell-sw.com/security/cves/CVE-2019-12219
security-tracker.debian.org/tracker/CVE-2019-12219
advisories.mageia.org/MGASA-2019-0363.html
bugs.mageia.org/show_bug.cgi?id=25766
lists.opensuse.org/opensuse-updates/2019-09/msg00031.html
advisories.mageia.org/MGASA-2019-0364.html
bugs.mageia.org/show_bug.cgi?id=25767
lists.opensuse.org/opensuse-updates/2019-09/msg00027.html
ubuntu.com/security/CVE-2019-12219
ubuntu.com/security/notices/USN-4238-1
cve.org/CVERecord?id=CVE-2019-12219
ubuntu.com/security/CVE-2018-3977
ubuntu.com/security/CVE-2019-5051
ubuntu.com/security/CVE-2019-5052
ubuntu.com/security/CVE-2019-7635
ubuntu.com/security/CVE-2019-12216
ubuntu.com/security/CVE-2019-12217
ubuntu.com/security/CVE-2019-12218
ubuntu.com/security/CVE-2019-12220
ubuntu.com/security/CVE-2019-12221
ubuntu.com/security/CVE-2019-12222
ubuntu.com/security/CVE-2019-13616