CVEfocus › CVE database › CVE-2023-1999

CVE-2023-1999Use after free in libwebp

CVSS 5.3 MediumEPSS 1.0% (higher than 62% of CVEs)Published 2023-06-20Updated 2025-02-13Assigner: Google

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.

CWE-416

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

49Fixed
2Fix pending
19Will not fix
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10thunderbirdFix pendingUBUNTU-CVE-2023-1999
Ubuntu 26.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 26.04thunderbirdWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
UBUNTU-CVE-2023-1999
Ubuntu 25.10firefoxNot affected
vulnerable_code_not_present
Ubuntu 25.10thunderbirdWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
UBUNTU-CVE-2023-1999
Ubuntu 24.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 24.04thunderbirdWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
UBUNTU-CVE-2023-1999
Ubuntu 22.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 22.04libwebpFixed1.2.2-2ubuntu0.22.04.1UBUNTU-CVE-2023-1999
Ubuntu 22.04mozjs78Will not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
UBUNTU-CVE-2023-1999
Ubuntu 22.04mozjs91Will not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
UBUNTU-CVE-2023-1999
Ubuntu 22.04thunderbirdWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
UBUNTU-CVE-2023-1999
Ubuntu 20.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 20.04libwebpFixed0.6.1-2ubuntu0.20.04.2UBUNTU-CVE-2023-1999
Ubuntu 20.04mozjs52Will not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
UBUNTU-CVE-2023-1999
Ubuntu 20.04mozjs68Will not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
UBUNTU-CVE-2023-1999
Ubuntu 20.04thunderbirdWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
Ubuntu 18.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 18.04libwebpFixed0.6.1-2ubuntu0.18.04.2UBUNTU-CVE-2023-1999
Ubuntu 18.04mozjs38Will not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
UBUNTU-CVE-2023-1999
Ubuntu 18.04mozjs52Will not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
UBUNTU-CVE-2023-1999
Ubuntu 18.04thunderbirdWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
Ubuntu 16.04firefoxWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
Ubuntu 16.04libwebpWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
0.4.4-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2023-1999
Ubuntu 16.04thunderbirdWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
Ubuntu 14.04firefoxWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
Ubuntu 14.04libwebpFix pendingUBUNTU-CVE-2023-1999
Ubuntu 14.04thunderbirdWill not fix
mozjs contains a copy of the SpiderMonkey JavaScript engine starting with Ubuntu 22.04, the firefox package is just a script that installs the Firefox snap
Debian 14firefox-esrFixed102.10.0esr-1DEBIAN-CVE-2023-1999
Debian 14libwebpFixed1.2.4-0.2DEBIAN-CVE-2023-1999
Debian 14thunderbirdFixed1:102.10.0-1DEBIAN-CVE-2023-1999
Debian 13firefox-esrFixed102.10.0esr-1DEBIAN-CVE-2023-1999
Debian 13libwebpFixed1.2.4-0.2DEBIAN-CVE-2023-1999
Debian 13thunderbirdFixed1:102.10.0-1DEBIAN-CVE-2023-1999
Debian 12firefox-esrFixed102.10.0esr-1DEBIAN-CVE-2023-1999
Debian 12libwebpFixed1.2.4-0.2DEBIAN-CVE-2023-1999
Debian 12thunderbirdFixed1:102.10.0-1DEBIAN-CVE-2023-1999
Red Hat Enterprise Linux 9firefoxFixed0:102.10.0-1.el9_1RHSA-2023:1786
Red Hat Enterprise Linux 9firefox-x11Fixed0:102.10.0-1.el9_1RHSA-2023:1786
Red Hat Enterprise Linux 9libwebpFixed0:1.2.0-6.el9_1RHSA-2023:2078
Red Hat Enterprise Linux 9libwebp-develFixed0:1.2.0-6.el9_1RHSA-2023:2078
Red Hat Enterprise Linux 9thunderbirdFixed0:102.10.0-2.el9_1RHSA-2023:1809
Red Hat Enterprise Linux 8firefoxFixed0:102.10.0-1.el8_7RHSA-2023:1787
Red Hat Enterprise Linux 8libwebpFixed0:1.0.0-8.el8_7RHSA-2023:2076
Red Hat Enterprise Linux 8libwebp-develFixed0:1.0.0-8.el8_7RHSA-2023:2076
Red Hat Enterprise Linux 8thunderbirdFixed0:102.10.0-2.el8_7RHSA-2023:1802
Red Hat Enterprise Linux 7firefoxFixed0:102.10.0-1.el7_9RHSA-2023:1791
Red Hat Enterprise Linux 7libwebpFixed0:0.3.0-11.el7RHSA-2023:2077
Red Hat Enterprise Linux 7libwebp-develFixed0:0.3.0-11.el7RHSA-2023:2077
Red Hat Enterprise Linux 7libwebp-javaFixed0:0.3.0-11.el7RHSA-2023:2077
Red Hat Enterprise Linux 7libwebp-toolsFixed0:0.3.0-11.el7RHSA-2023:2077
Red Hat Enterprise Linux 7thunderbirdFixed0:102.10.0-2.el7_9RHSA-2023:1806
Red Hat Enterprise Linux 6firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 6thunderbirdWill not fix
Out of support scope
AlmaLinux 9libwebpFixed1.2.0-6.el9_1ALSA-2023:2078
AlmaLinux 9libwebp-develFixed1.2.0-6.el9_1ALSA-2023:2078
AlmaLinux 8libwebpFixed1.0.0-8.el8_7ALSA-2023:2076
AlmaLinux 8libwebp-develFixed1.0.0-8.el8_7ALSA-2023:2076
Rocky Linux 9libwebpFixed0:1.2.0-6.el9_1RLSA-2023:2078
Rocky Linux 8libwebpFixed0:1.0.0-8.el8_7RLSA-2023:2076
Alpine Linux 3.24libwebpFixed1.3.0-r3ALPINE-CVE-2023-1999
Alpine Linux 3.23firefox-esrFixed102.10.0-r0ALPINE-CVE-2023-1999
Alpine Linux 3.23libwebpFixed1.3.0-r3ALPINE-CVE-2023-1999
Alpine Linux 3.22firefox-esrFixed102.10.0-r0ALPINE-CVE-2023-1999
Alpine Linux 3.22libwebpFixed1.3.0-r3ALPINE-CVE-2023-1999
Alpine Linux 3.21firefox-esrFixed102.10.0-r0ALPINE-CVE-2023-1999
Alpine Linux 3.21libwebpFixed1.3.0-r3ALPINE-CVE-2023-1999
Alpine Linux 3.20firefox-esrFixed102.10.0-r0ALPINE-CVE-2023-1999
Alpine Linux 3.20libwebpFixed1.3.0-r3ALPINE-CVE-2023-1999
Alpine Linux 3.19firefox-esrFixed102.10.0-r0ALPINE-CVE-2023-1999
Alpine Linux 3.19libwebpFixed1.3.0-r3ALPINE-CVE-2023-1999
Alpine Linux 3.18firefox-esrFixed102.10.0-r0ALPINE-CVE-2023-1999
Alpine Linux 3.18libwebpFixed1.3.0-r2ALPINE-CVE-2023-1999
Alpine Linux 3.17libwebpFixed1.2.4-r2ALPINE-CVE-2023-1999
Alpine Linux 3.16libwebpFixed1.2.3-r1ALPINE-CVE-2023-1999
Alpine Linux 3.15libwebpFixed1.2.2-r1ALPINE-CVE-2023-1999

What the vendor says

As published in the CVE record by Google, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.