libwebp — security advisory
There exists a use after free/double free in libwebp. An attacker can use the ApplyFiltersAndEncode() function and loop through to free best.bw and assign best = trial pointer. The second loop will then return 0 because of an Out of memory error in VP8 encoder, the pointer is still assigned to trial and the AddressSanitizer will attempt a double free.
- Products
- libwebp
- Affected versions
- Not specified
- Fixed versions
- 1.2.2-r1, 1.2.3-r1, 1.2.4-r2, 1.3.0-r2, 1.3.0-r3
- CVEs
- CVE-2023-1999
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 14:55 UTC · Revision 1
Source evidence
There exists a use after free/double free in libwebp. An attacker can use the ApplyFiltersAndEncode() function and loop through to free best.bw and assign best = trial pointer. The second loop will then return 0 because of an Out of memory error in VP8 encoder, the pointer is still assigned to trial and the AddressSanitizer will attempt a double free.
osv:ALPINE-CVE-2023-1999
libwebp
Fixed versions: 1.2.2-r1
libwebp
Fixed versions: 1.2.3-r1
libwebp
Fixed versions: 1.2.4-r2
libwebp
Fixed versions: 1.3.0-r2
libwebp
Fixed versions: 1.3.0-r3
libwebp
Fixed versions: 1.3.0-r3
libwebp
Fixed versions: 1.3.0-r3
libwebp
Fixed versions: 1.3.0-r3
libwebp
Fixed versions: 1.3.0-r3
libwebp
Fixed versions: 1.3.0-r3
Complete source record
{
"id": "8844e586c9ae88af6a8bfbd32d5af675423e284307e517aae3236b60911b2386",
"url": "https://osv.dev/vulnerability/ALPINE-CVE-2023-1999",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALPINE-CVE-2023-1999",
"summary": "There exists a use after free/double free in libwebp. An attacker can use the ApplyFiltersAndEncode() function and loop through to free best.bw and assign best = trial pointer. The second loop will then return 0 because of an Out of memory error in VP8 encoder, the pointer is still assigned to trial and the AddressSanitizer will attempt a double free.",
"evidence": "osv:ALPINE-CVE-2023-1999",
"products": [
{
"name": {
"value": "libwebp",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.2.2-r1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libwebp",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.2.3-r1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libwebp",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.2.4-r2",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libwebp",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.0-r2",
"evidence": "/affected/3/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libwebp",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.0-r3",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libwebp",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.0-r3",
"evidence": "/affected/5/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libwebp",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.0-r3",
"evidence": "/affected/6/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libwebp",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.0-r3",
"evidence": "/affected/7/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libwebp",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.0-r3",
"evidence": "/affected/8/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libwebp",
"evidence": "/affected/9/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.0-r3",
"evidence": "/affected/9/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "ALPINE-CVE-2023-1999",
"aliases": [
"ALPINE-CVE-2023-1999"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.4.2"
},
{
"fixed": "1.2.2-r1"
}
]
}
],
"package": {
"name": "libwebp",
"purl": "pkg:apk/alpine/libwebp?arch=source",
"ecosystem": "Alpine:v3.15"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.4.2"
},
{
"fixed": "1.2.3-r1"
}
]
}
],
"package": {
"name": "libwebp",
"purl": "pkg:apk/alpine/libwebp?arch=source",
"ecosystem": "Alpine:v3.16"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.4.2"
},
{
"fixed": "1.2.4-r2"
}
]
}
],
"package": {
"name": "libwebp",
"purl": "pkg:apk/alpine/libwebp?arch=source",
"ecosystem": "Alpine:v3.17"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.4.2"
},
{
"fixed": "1.3.0-r2"
}
]
}
],
"package": {
"name": "libwebp",
"purl": "pkg:apk/alpine/libwebp?arch=source",
"ecosystem": "Alpine:v3.18"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.4.2"
},
{
"fixed": "1.3.0-r3"
}
]
}
],
"package": {
"name": "libwebp",
"purl": "pkg:apk/alpine/libwebp?arch=source",
"ecosystem": "Alpine:v3.19"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.4.2"
},
{
"fixed": "1.3.0-r3"
}
]
}
],
"package": {
"name": "libwebp",
"purl": "pkg:apk/alpine/libwebp?arch=source",
"ecosystem": "Alpine:v3.20"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.4.2"
},
{
"fixed": "1.3.0-r3"
}
]
}
],
"package": {
"name": "libwebp",
"purl": "pkg:apk/alpine/libwebp?arch=source",
"ecosystem": "Alpine:v3.21"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.4.2"
},
{
"fixed": "1.3.0-r3"
}
]
}
],
"package": {
"name": "libwebp",
"purl": "pkg:apk/alpine/libwebp?arch=source",
"ecosystem": "Alpine:v3.22"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.4.2"
},
{
"fixed": "1.3.0-r3"
}
]
}
],
"package": {
"name": "libwebp",
"purl": "pkg:apk/alpine/libwebp?arch=source",
"ecosystem": "Alpine:v3.23"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.4.2"
},
{
"fixed": "1.3.0-r3"
}
]
}
],
"package": {
"name": "libwebp",
"purl": "pkg:apk/alpine/libwebp?arch=source",
"ecosystem": "Alpine:v3.24"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-1999.json"
},
"ecosystem_specific": {}
}
],
"modified": "2026-10-26T17:17:58.605829640Z",
"provider": "osv",
"upstream": [
"CVE-2023-1999"
],
"references": [
"https://security.alpinelinux.org/vuln/CVE-2023-1999"
]
},
"related_cves": [
{
"value": "CVE-2023-1999",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 454366,
"published_at": "2023-06-20T12:15:09.6+00:00"
}