# CVE-2023-1999: Use after free in libwebp

- Severity: Medium 5.3 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Published: 2023-06-20T11:28:52.547Z
- Modified: 2026-06-17T05:29:14.063Z
- Weaknesses: CWE-415, CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Google

## Description

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.

(As written by CVE List.)

## Affected

- libwebp: from 0.4.2 before 1.3.1; from 0.4.2 before 1.3.0-8-ga486d800
- webmproject libwebp: from 0.4.2 before 1.3.1

## Every score

- Google: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://chromium.googlesource.com/webm/libwebp> (product)
- <https://security.gentoo.org/glsa/202309-05>

## Sources

- CVE List: [CVE-2023-1999](https://www.cve.org/CVERecord?id=CVE-2023-1999), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-1999](https://nvd.nist.gov/vuln/detail/CVE-2023-1999), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-1999 · Whole record: https://cve.day/CVE-2023-1999.json · Rebuilt by cve.day 2026-11-25T22:58:24.961Z
