CVE-2018-3977
An exploitable code execution vulnerability exists in the XCF image rendering functionality of...
CVE-2018-3977 is a high vulnerability (CVSS 8.8) in Libsdl Sdl Image, published November 1, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.48%, the 89th percentile. Fixed in libsdl2-image 2.0.3+dfsg1-3.
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.
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
CVE List Score used
8.8
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.
- Record
CVE-2018-3977- 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
EUVDEUVD-2018-15763
8.8
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.
- Record
EUVD-2018-15763- 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-03
GitHub AdvisoriesGHSA-9532-gqc7-9wv7
8.8
An exploitable code execution vulnerability exists in the XCF image rendering functionality of...
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.
- Record
GHSA-9532-gqc7-9wv7- 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-787
- Updated
- 2026-11-02
NVD
8.8
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.
- Record
CVE-2018-3977- 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-787
- Updated
- 2026-11-02
OSV
8.8
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.
- Record
CVE-2018-3977- 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-2018-3977
8.8
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.
- Record
DEBIAN-CVE-2018-3977- 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 7 moreShow less
OSVUBUNTU-CVE-2018-3977
8.8
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.
- Record
UBUNTU-CVE-2018-3977- 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-2018-0454 No score
Updated sdl2/mingw-SDL2 packages fix security vulnerabilities
This update fixes various security vulnerabilities affecting the SDL2_image library, listed below. The fixes are provided in SDL2_image 2.0.4, which depends on SDL2 2.0.8 or later. As such, the SDL2 and SDL2_mixer libraries are also updated to their current stable releases, providing various bug fixes and features.
The security vulnerabilities fixed in this update are the following:
An exploitable code execution vulnerability exists in the ILBM image rendering functionality of SDL2_image-2.0.2. A specially crafted ILBM image can cause a heap overflow resulting in code execution. An attacker can display a specially crafted image to trigger this vulnerability. (TALOS-2017-0488, CVE-2017-12122)
An exploitable code execution vulnerability exists in the ILBM image rendering functionality of SDL2_image-2.0.2. A specially crafted ILBM image can cause a stack overflow resulting in code execution. An attacker can display a specially crafted image to trigger this vulnerability. (TALOS-2017-0489, CVE-2017-14440)
An exploitable code execution vulnerability exists in the ICO image rendering functionality of SDL2_image-2.0.2. A specially crafted ICO image can cause an integer overflow, cascading to a heap overflow resulting in code execution. An attacker can display a specially crafted image to trigger this vulnerability. (TALOS-2017-0490, CVE-2017-14441)
An exploitable code execution vulnerability exists in the BMP image rendering functionality of SDL2_image-2.0.2. A specially crafted BMP image can cause a stack overflow resulting in code execution. An attacker can display a specially crafted image to trigger this vulnerability. (TALOS-2017-0491, CVE-2017-14442)
An exploitable code execution vulnerability exists in the XCF image rendering functionality of SDL2_image-2.0.2. 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. (TALOS-2017-0497, CVE-2017-14448)
A double-Free vulnerability exists in the XCF image rendering functionality of SDL2_image-2.0.2. A specially crafted XCF image can cause a Double-Free situation to occur. An attacker can display a specially crafted image to trigger this vulnerability. (TALOS-2017-0498, CVE-2017-14449)
A buffer overflow vulnerability exists in the GIF image parsing functionality of SDL2_image-2.0.2. A specially crafted GIF image can lead to a buffer overflow on a global section. An attacker can display an image to trigger this vulnerability. (TALOS-2017-0499, CVE-2017-14450)
An exploitable information disclosure vulnerability exists in the PCX image rendering functionality of SDL2_image-2.0.2. A specially crafted PCX image can cause an out-of-bounds read on the heap, resulting in information disclosure. An attacker can display a specially crafted image to trigger this vulnerability. (TALOS-2018-0519, CVE-2018-3837)
An exploitable information vulnerability exists in the XCF image rendering functionality of SDL2_image-2.0.2. A specially crafted XCF image can cause an out-of-bounds read on the heap, resulting in information disclosure. An attacker can display a specially crafted image to trigger this vulnerability. (TALOS-2018-0520, CVE-2018-3838)
An exploitable code execution vulnerability exists in the XCF image rendering functionality of SDL2_image-2.0.2. A specially crafted XCF image can cause an out-of-bounds write on the heap, resulting in code execution. An attacker can display a specially crafted image to trigger this vulnerability. (TALOS-2018-0521, CVE-2018-3839)
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. (TALOS-2018-0645, CVE-2018-3977)
- Record
MGASA-2018-0454- 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
OSVopenSUSE-SU-2018:3906-1 No score
Security update for SDL2_image
This update for SDL2_image fixes the following issues:
Security issues fixed:
- CVE-2018-3839: Fixed an exploitable code execution vulnerability that existed in the XCF image rendering functionality of the Simple DirectMedia Layer (bsc#1089087).
- CVE-2018-3977: Fixed a possible code execution via creafted XCF image that could have caused a heap overflow (bsc#1114519).
This update was imported from the openSUSE:Leap:15.0:Update update project.
- Record
openSUSE-SU-2018:3906-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10608-1 No score
libSDL2_image-2_0-0-2.0.5-1.14 on GA media
These are all security issues fixed in the libSDL2_image-2_0-0-2.0.5-1.14 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10608-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:3861-1 No score
Security update for SDL_image
This update for SDL_image fixes the following issues:
Security issue fixed:
- CVE-2018-3977: Fixed a heap overflow issue (bsc#1114519).
- Record
SUSE-SU-2018:3861-1- 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 |
|---|---|---|
libsdl2-imageDebian:12 |
before 2.0.3+dfsg1-3 | 2.0.3+dfsg1-3 |
libsdl2-imageDebian:13 |
before 2.0.3+dfsg1-3 | 2.0.3+dfsg1-3 |
libsdl2-imageDebian:14 |
before 2.0.3+dfsg1-3 | 2.0.3+dfsg1-3 |
sdl-image1.2Debian:12 |
before 1.2.12-10 | 1.2.12-10 |
sdl-image1.2Debian:13 |
before 1.2.12-10 | 1.2.12-10 |
sdl-image1.2Debian:14 |
before 1.2.12-10 | 1.2.12-10 |
libsdl2-imageDebian:8 |
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 |
before 1.2.12-5+deb8u2, plus listed versions 1.2.12-51.2.12-5+deb8u1 |
1.2.12-5+deb8u2 |
sdl2Mageia:6 |
before 2.0.9-1.mga6 | 2.0.9-1.mga6 |
sdl2_imageMageia:6 |
before 2.0.4-1.mga6 | 2.0.4-1.mga6 |
Show 11 moreShow less
| Package | Affected | Fixed |
|---|---|---|
sdl2_mixerMageia:6 |
before 2.0.4-1.mga6 | 2.0.4-1.mga6 |
mingw-SDL2Mageia:6 |
before 2.0.9-1.mga6 | 2.0.9-1.mga6 |
mingw-SDL2_imageMageia:6 |
before 2.0.4-1.mga6 | 2.0.4-1.mga6 |
mingw-SDL2_mixerMageia:6 |
before 2.0.4-1.mga6 | 2.0.4-1.mga6 |
SDL_imageMageia:7 |
before 1.2.12-12.1.mga7 | 1.2.12-12.1.mga7 |
SDL_imageSUSE:Linux Enterprise Software Development Kit 11 SP4 |
before 1.2.6-84.46.1 | 1.2.6-84.46.1 |
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 |
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 |
SDL2_imageSUSE:Package Hub 15 |
before 2.0.4-bp150.3.3.1 | 2.0.4-bp150.3.3.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
security.gentoo.org/glsa/201903-17
lists.debian.org/debian-lts-announce/2019/07/msg00021.html
lists.debian.org/debian-lts-announce/2019/07/msg00026.html
usn.ubuntu.com/4238-1
talosintelligence.com/vulnerability_reports/TALOS-2018-0645
nvd.nist.gov/vuln/detail/CVE-2018-3977
Show 61 moreShow less
github.com/advisories/GHSA-9532-gqc7-9wv7
security-tracker.debian.org/tracker/CVE-2018-3977
advisories.mageia.org/MGASA-2018-0454.html
bugs.mageia.org/show_bug.cgi?id=22769
talosintelligence.com/vulnerability_reports/TALOS-2017-0488
talosintelligence.com/vulnerability_reports/TALOS-2017-0489
talosintelligence.com/vulnerability_reports/TALOS-2017-0490
talosintelligence.com/vulnerability_reports/TALOS-2017-0491
talosintelligence.com/vulnerability_reports/TALOS-2017-0497
talosintelligence.com/vulnerability_reports/TALOS-2017-0498
talosintelligence.com/vulnerability_reports/TALOS-2017-0499
talosintelligence.com/vulnerability_reports/TALOS-2018-0519
talosintelligence.com/vulnerability_reports/TALOS-2018-0520
talosintelligence.com/vulnerability_reports/TALOS-2018-0521
hg.libsdl.org/SDL/file/8feb5da6f2fb/WhatsNew.txt
libsdl.org/projects/SDL_image
libsdl.org/projects/SDL_mixer
advisories.mageia.org/MGASA-2019-0363.html
bugs.mageia.org/show_bug.cgi?id=25766
lists.opensuse.org/opensuse-updates/2019-09/msg00031.html
suse.com/support/update/announcement/2018/suse-su-20183861-1
bugzilla.suse.com/1114519
suse.com/security/cve/CVE-2018-3977
ubuntu.com/security/CVE-2018-3977
hg.libsdl.org/SDL_image/rev/170d7d32e4a8
ubuntu.com/security/notices/USN-4238-1
cve.org/CVERecord?id=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-12219
ubuntu.com/security/CVE-2019-12220
ubuntu.com/security/CVE-2019-12221
ubuntu.com/security/CVE-2019-12222
ubuntu.com/security/CVE-2019-13616
lists.opensuse.org/archives/list/[email protected]/thread/HQVNFPNLELYLGSLFGHD2PGATNGD5RZRD
bugzilla.suse.com/1089087
suse.com/security/cve/CVE-2018-3839
suse.com/security/cve/CVE-2017-12122
suse.com/security/cve/CVE-2017-14440
suse.com/security/cve/CVE-2017-14441
suse.com/security/cve/CVE-2017-14442
suse.com/security/cve/CVE-2017-14448
suse.com/security/cve/CVE-2017-14449
suse.com/security/cve/CVE-2017-14450
suse.com/security/cve/CVE-2017-2887
suse.com/security/cve/CVE-2019-12217
suse.com/security/cve/CVE-2019-12218
suse.com/security/cve/CVE-2019-12220
suse.com/security/cve/CVE-2019-12221
suse.com/security/cve/CVE-2019-12222
suse.com/security/cve/CVE-2019-13616
suse.com/security/cve/CVE-2019-5051
suse.com/security/cve/CVE-2019-5052
suse.com/security/cve/CVE-2019-5057
suse.com/security/cve/CVE-2019-5058
suse.com/security/cve/CVE-2019-5059
suse.com/security/cve/CVE-2019-5060