CVE-2019-5058: SDL2_image - Buffer Overflow
- Cve: CVE-2019-5058
- Name: SDL2_image - Buffer Overflow
- Description: 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. An attacker can display a specially crafted image to trigger this vulnerability.
- Impact: Attackers can execute arbitrary code remotely by exploiting the heap overflow via crafted images.
- Remediation: Update to the latest version of SDL2_image that addresses this vulnerability.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker needs victim to open or display a malicious image
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.03616
- Epss percentile: 0.89788
- Assignee: [email protected]
- Published at: 2019-07-31T17:15:11Z
- Age in days: 2673
- Modified at: 2026-06-17T02:37:03Z
- References total: 5
- Products total: 3
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-5058
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-122 | Heap-based Buffer Overflow |
| CWE-787 | Out-of-bounds Write |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00012.html | Mailing List, Third Party Advisory |
| http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00014.html | Mailing List, Third Party Advisory |
| http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00029.html | Mailing List, Third Party Advisory |
| http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00030.html | Mailing List, Third Party Advisory |
| https://talosintelligence.com/vulnerability_reports/TALOS-2019-0842 | Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| opensuse:leap | = 15.1, = 15.0 | /v1/products/opensuse/leap |
| opensuse:backports_sle | = 15.0, = 15.0 sp1 | /v1/products/opensuse/backports_sle |
| libsdl:sdl2_image | = 2.0.4 | /v1/products/libsdl/sdl2_image |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts