CVE-2023-1999
Use after free in libwebp
Reported by google · Published June 20, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| thunderbird | Amazon Linux | 102.10.0-1.amzn2.0.1 |
| libwebp | conan.io | 1.3.1 |
| libwebp | Amazon Linux | 1.2.4-1.amzn2023.0.4 |
| libwebp-devel | Amazon Linux | 1.2.4-1.amzn2023.0.4 |
| libwebp-tools | Amazon Linux | 1.2.4-1.amzn2023.0.4 |
| libwebp | chromium.googlesource.com | 1.3.1, 1.3.0-8-ga486d800 |
| firefox-esr | Alpine | 102.10.0-r0 |
| libwebp-java | Amazon Linux | 1.2.4-1.amzn2023.0.4 |
| libwebp | Alpine | 1.3.0-r3, 1.3.0-r2, 1.2.4-r2, 1.2.3-r1, 1.2.2-r1 |
| libwebp | webmproject | 1.3.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Chromium | libwebp | 0.4.2, 0.4.2 |
| Chromium | libwebp | 0.4.2, 0.4.2 |
Timeline
- Apr 14, 2023 CVE Published
- Jun 21, 2023 EPSS Score (30 in total, the first dated here)
- Apr 28, 2025 PoC Published
- Mar 17, 2026 Security Advisory (13 in total, the first dated here)
- May 21, 2026 Coalition ESS Score
- Nov 22, 2026 Distribution Patch (9 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-1999
vulnetix vdb fixes CVE-2023-1999
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-1999/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart