gdk-pixbuf — security advisory
A flaw was found in gdk-pixbuf in versions before 2.42.0. An integer wraparound leading to an out of bounds write can occur when a crafted GIF image is loaded. An attacker may cause applications to crash or could potentially execute code on the victim system. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
- Products
- gdk-pixbuf
- Affected versions
- Not specified
- Fixed versions
- 2.40.0-r1, 2.40.0-r3
- CVEs
- CVE-2021-20240
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 22:02 UTC · Revision 1
Source evidence
A flaw was found in gdk-pixbuf in versions before 2.42.0. An integer wraparound leading to an out of bounds write can occur when a crafted GIF image is loaded. An attacker may cause applications to crash or could potentially execute code on the victim system. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
osv:ALPINE-CVE-2021-20240
gdk-pixbuf
Fixed versions: 2.40.0-r1
gdk-pixbuf
Fixed versions: 2.40.0-r3
Complete source record
{
"id": "360bd58fadece8870d49a500e4018d2a404b2f642a2883b36a6ff21146cc403e",
"url": "https://osv.dev/vulnerability/ALPINE-CVE-2021-20240",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALPINE-CVE-2021-20240",
"summary": "A flaw was found in gdk-pixbuf in versions before 2.42.0. An integer wraparound leading to an out of bounds write can occur when a crafted GIF image is loaded. An attacker may cause applications to crash or could potentially execute code on the victim system. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.",
"evidence": "osv:ALPINE-CVE-2021-20240",
"products": [
{
"name": {
"value": "gdk-pixbuf",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.40.0-r1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "gdk-pixbuf",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.40.0-r3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "ALPINE-CVE-2021-20240",
"aliases": [
"ALPINE-CVE-2021-20240"
],
"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.40.0-r1"
}
]
}
],
"package": {
"name": "gdk-pixbuf",
"purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
"ecosystem": "Alpine:v3.11"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20240.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.40.0-r3"
}
]
}
],
"package": {
"name": "gdk-pixbuf",
"purl": "pkg:apk/alpine/gdk-pixbuf?arch=source",
"ecosystem": "Alpine:v3.12"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20240.json"
},
"ecosystem_specific": {}
}
],
"modified": "2026-10-23T17:17:56.142379443Z",
"provider": "osv",
"upstream": [
"CVE-2021-20240"
],
"references": [
"https://security.alpinelinux.org/vuln/CVE-2021-20240"
]
},
"related_cves": [
{
"value": "CVE-2021-20240",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 415283,
"published_at": "2021-05-28T11:15:08.037+00:00"
}