HighFix available
sdl2_image — security advisory
An exploitable code execution vulnerability exists in the XCF image rendering functionality of Simple DirectMedia Layer 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.
- Products
- sdl2_image
- Affected versions
- Not specified
- Fixed versions
- 2.0.1-r2, 2.0.2-r1
- CVEs
- CVE-2018-3839
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 22:13 UTC · Revision 1
Source evidence
An exploitable code execution vulnerability exists in the XCF image rendering functionality of Simple DirectMedia Layer 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.
osv:ALPINE-CVE-2018-3839
sdl2_image
Fixed versions: 2.0.1-r2
sdl2_image
Fixed versions: 2.0.1-r2
sdl2_image
Fixed versions: 2.0.2-r1
Complete source record
{
"id": "272ba23ac9666af09a7954544a29c914d1e0eafb5e9f6f81e07b8d6a1f059686",
"url": "https://osv.dev/vulnerability/ALPINE-CVE-2018-3839",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALPINE-CVE-2018-3839",
"summary": "An exploitable code execution vulnerability exists in the XCF image rendering functionality of Simple DirectMedia Layer 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.",
"evidence": "osv:ALPINE-CVE-2018-3839",
"products": [
{
"name": {
"value": "sdl2_image",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.0.1-r2",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "sdl2_image",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.0.1-r2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "sdl2_image",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.0.2-r1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "ALPINE-CVE-2018-3839",
"aliases": [
"ALPINE-CVE-2018-3839"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.1-r2"
}
]
}
],
"package": {
"name": "sdl2_image",
"purl": "pkg:apk/alpine/sdl2_image?arch=source",
"ecosystem": "Alpine:v3.5"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-3839.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.1-r2"
}
]
}
],
"package": {
"name": "sdl2_image",
"purl": "pkg:apk/alpine/sdl2_image?arch=source",
"ecosystem": "Alpine:v3.6"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-3839.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.2-r1"
}
]
}
],
"package": {
"name": "sdl2_image",
"purl": "pkg:apk/alpine/sdl2_image?arch=source",
"ecosystem": "Alpine:v3.7"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-3839.json"
},
"ecosystem_specific": {}
}
],
"modified": "2026-10-23T17:24:03.077674670Z",
"provider": "osv",
"upstream": [
"CVE-2018-3839"
],
"references": [
"https://security.alpinelinux.org/vuln/CVE-2018-3839"
]
},
"related_cves": [
{
"value": "CVE-2018-3839",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 415941,
"published_at": "2018-04-10T21:29:00.343+00:00"
}