Vulnerability · Published Jun 20, 2023 · Assigned by Google

CVE-2023-1999Use after free in libwebp

Medium 5.3

In plain English

A medium-severity use-after-free in libwebp from Chromium. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 61% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.0%top 38.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8libwebp1.0.0-8.el8_7ALSA-2023:2076
AlmaLinux:9libwebp1.2.0-6.el9_1ALSA-2023:2078
AlmaLinux:8libwebp-devel1.0.0-8.el8_7ALSA-2023:2076
AlmaLinux:9libwebp-devel1.2.0-6.el9_1ALSA-2023:2078
Alpine:v3.20firefox-esr102.10.0-r0ALPINE-CVE-2023-1999
Alpine:v3.21firefox-esr102.10.0-r0ALPINE-CVE-2023-1999
Alpine:v3.22firefox-esr102.10.0-r0ALPINE-CVE-2023-1999
Alpine:v3.23firefox-esr102.10.0-r0ALPINE-CVE-2023-1999
Alpine:v3.20libwebp1.3.0-r3ALPINE-CVE-2023-1999
Alpine:v3.21libwebp1.3.0-r3ALPINE-CVE-2023-1999
Alpine:v3.22libwebp1.3.0-r3ALPINE-CVE-2023-1999
Alpine:v3.23libwebp1.3.0-r3ALPINE-CVE-2023-1999
Alpine:v3.24libwebp1.3.0-r3ALPINE-CVE-2023-1999
Debian:12firefox-esr102.10.0esr-1DEBIAN-CVE-2023-1999
Debian:13firefox-esr102.10.0esr-1DEBIAN-CVE-2023-1999
Debian:14firefox-esr102.10.0esr-1DEBIAN-CVE-2023-1999
Debian:12libwebp1.2.4-0.2DEBIAN-CVE-2023-1999
Debian:13libwebp1.2.4-0.2DEBIAN-CVE-2023-1999
Debian:14libwebp1.2.4-0.2DEBIAN-CVE-2023-1999
Debian:12thunderbird1:102.10.0-1DEBIAN-CVE-2023-1999
Debian:13thunderbird1:102.10.0-1DEBIAN-CVE-2023-1999
Debian:14thunderbird1:102.10.0-1DEBIAN-CVE-2023-1999
Rocky Linux:8libwebp0:1.0.0-8.el8_7RLSA-2023:2076
Rocky Linux:9libwebp0:1.2.0-6.el9_1RLSA-2023:2078
Rocky Linux:9libwebp0:1.2.0-6.el9_1.0.1RLSA-2023:2078
Ubuntu:22.04:LTSlibwebp1.2.2-2ubuntu0.22.04.1USN-6078-1
Ubuntu:22.04:LTSlibwebp1.2.2-2ubuntu0.22.04.1UBUNTU-CVE-2023-1999
Ubuntu:22.04:LTSmozjs78no fix listedUBUNTU-CVE-2023-1999
Ubuntu:22.04:LTSmozjs91no fix listedUBUNTU-CVE-2023-1999
Ubuntu:22.04:LTSthunderbirdno fix listedUBUNTU-CVE-2023-1999
Ubuntu:24.04:LTSthunderbirdno fix listedUBUNTU-CVE-2023-1999
Ubuntu:25.10thunderbirdno fix listedUBUNTU-CVE-2023-1999
Ubuntu:26.04:LTSthunderbirdno fix listedUBUNTU-CVE-2023-1999
Ubuntu:26.10thunderbirdno fix listedUBUNTU-CVE-2023-1999

Affected products (as reported)

VendorProductVersions
Chromium libwebp 0.4.2 – before 1.3.10.4.2 – before 1.3.0-8-ga486d800

Weakness: CWE-416 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

References