CVE-2019-5059
published 2019-07-31CVE-2019-5059: 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…
PriorityP348high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
3.62%
88.2th percentile
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. An attacker can display a specially crafted image to trigger this vulnerability.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | libsdl2-image | < libsdl2-image 2.0.5+dfsg1-1 (bookworm) | libsdl2-image 2.0.5+dfsg1-1 (bookworm) |
| debian | sdl-image1.2 | < libsdl2-image 2.0.5+dfsg1-1 (bookworm) | libsdl2-image 2.0.5+dfsg1-1 (bookworm) |
| libsdl | sdl2_image | — | — |
| opensuse | backports_sle | — | — |
| opensuse | leap | — | — |
| opensuse | leap | — | — |
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-g82w-w3fp-3m77: An exploitable code execution vulnerability exists in the XPM image rendering functionality of SDL2_image 2
ghsa_unreviewed·2022-05-24
CVE-2019-5059 [HIGH] CWE-787 GHSA-g82w-w3fp-3m77: An exploitable code execution vulnerability exists in the XPM image rendering functionality of SDL2_image 2
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. An attacker can display a specially crafted image to trigger this vulnerability.
OSV
CVE-2019-5059: An exploitable code execution vulnerability exists in the XPM image rendering functionality of SDL2_image 2
osv·2019-07-31·CVSS 8.8
CVE-2019-5059 [HIGH] CVE-2019-5059: An exploitable code execution vulnerability exists in the XPM image rendering functionality of SDL2_image 2
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. An attacker can display a specially crafted image to trigger this vulnerability.
Debian
CVE-2019-5059: libsdl2-image - An exploitable code execution vulnerability exists in the XPM image rendering fu...
vendor_debian·2019·CVSS 8.8
CVE-2019-5059 [HIGH] CVE-2019-5059: libsdl2-image - An exploitable code execution vulnerability exists in the XPM image rendering fu...
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. An attacker can display a specially crafted image to trigger this vulnerability.
Scope: local
bookworm: resolved (fixed in 2.0.5+dfsg1-1)
bullseye: resolved (fixed in 2.0.5+dfsg1-1)
forky: resolved (fixed in 2.0.5+dfsg1-1)
sid: resolved (fixed in 2.0.5+dfsg1-1)
trixie: resolved (fixed in 2.0.5+dfsg1-1)
No detection rules found.
No public exploits indexed.
Talos
Vulnerability Spotlight: Remote code execution vulnerabilities in Simple DirectMedia Layer
blogs_talos·2019-07-02·CVSS 8.8
[HIGH] Vulnerability Spotlight: Remote code execution vulnerabilities in Simple DirectMedia Layer
Marcin “Icewall” Noga of Cisco Talos discovered these vulnerabilities.
Simple DirectMedia Layer contains two vulnerabilities that could an attacker to remotely execute code on the victim’s machine. Both bugs are present in the SDL2_image library, which is used for loading images in different formats. There are vulnerabilities in the function responsible for loading PCX files. A specially crafted PCX file can lead to a heap buffer overflow and remote code execution in both cases.
In accordance with our coordinated disclosure policy, Cisco Talos worked with SDL to ensure that these issues are resolved and that an update is available for affected customers. (UPDATE: SDL released an additional update that fixes four additional vulnerabilities.)
### Vulnerability details
Simple DirectMedia
Talos
Vulnerability Spotlight: Remote code execution vulnerabilities in Simple DirectMedia Layer
blogs_talos·2019-07-02·CVSS 8.8
[HIGH] Vulnerability Spotlight: Remote code execution vulnerabilities in Simple DirectMedia Layer
## Vulnerability Spotlight: Remote code execution vulnerabilities in Simple DirectMedia Layer
Marcin “Icewall” Noga of Cisco Talos discovered these vulnerabilities. Simple DirectMedia Layer contains two vulnerabilities that could an attacker to remotely execute code on the victim’s machine. Both bugs are present in the SDL2_image library, which is used for loading images in different formats. There are vulnerabilities in the function responsible for loading PCX files. A specially crafted PCX file can lead to a heap buffer overflow and remote code execution in both cases. In accordance with our coordinated disclosure policy, Cisco Talos worked with SDL to ensure that these issues are resolved and that an update is available for affected customers. (UPDATE: SDL released an additional update
Bugzilla
CVE-2019-5059 SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow [fedora-all]
bugzilla·2019-08-09·CVSS 8.8
CVE-2019-5059 [HIGH] CVE-2019-5059 SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow [fedora-all]
CVE-2019-5059 SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: th
Bugzilla
CVE-2019-5059 SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow [epel-7]
bugzilla·2019-08-09·CVSS 8.8
CVE-2019-5059 [HIGH] CVE-2019-5059 SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow [epel-7]
CVE-2019-5059 SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow [epel-7]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-7.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discussion:
Use
Bugzilla
CVE-2019-5059 mingw-SDL2_image: SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow [fedora-all]
bugzilla·2019-08-09·CVSS 8.8
CVE-2019-5059 [HIGH] CVE-2019-5059 mingw-SDL2_image: SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow [fedora-all]
CVE-2019-5059 mingw-SDL2_image: SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit
Bugzilla
CVE-2019-5059 SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow
bugzilla·2019-08-09·CVSS 8.8
CVE-2019-5059 [HIGH] CVE-2019-5059 SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow
CVE-2019-5059 SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow
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. An attacker can display a specially crafted image to trigger this vulnerability
External References:
https://talosintelligence.com/vulnerability_reports/TALOS-2019-0843
Discussion:
Created SDL2_image tracking bugs for this issue:
Affects: epel-7 [bug 1739385]
Affects: fedora-all [bug 1739387]
Created mingw-SDL2_image tracking bugs for this issue:
Affects: epe
Bugzilla
CVE-2019-5059 mingw-SDL2_image: SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow [epel-all]
bugzilla·2019-08-09·CVSS 8.8
CVE-2019-5059 [HIGH] CVE-2019-5059 mingw-SDL2_image: SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow [epel-all]
CVE-2019-5059 mingw-SDL2_image: SDL2_image: an exploitable code execution in the XPM image rendering leads to integer overflow [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit mess
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00012.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-09/msg00014.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-09/msg00029.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-09/msg00030.htmlhttps://talosintelligence.com/vulnerability_reports/TALOS-2019-0843http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00012.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-09/msg00014.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-09/msg00029.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-09/msg00030.htmlhttps://talosintelligence.com/vulnerability_reports/TALOS-2019-0843
2019-07-31
Published