CVE-2023-1999 Use after free in libwebp
A use-after-free vulnerability in libwebp allows attackers to cause a double free, potentially leading to code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-1999?
CVE-2023-1999 is a medium-severity use after free vulnerability in Chromium libwebp, published on 20 Jun 2023. Any signed-in user can exploit it over the network, with no action from the victim.
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.
Which versions are affected by CVE-2023-1999?
It affects 1 product.
Linux distribution packages (40)
libwebp AlmaLinux:8 | All versions | 1.0.0-8.el8_7 |
libwebp-devel AlmaLinux:8 | All versions | 1.0.0-8.el8_7 |
libwebp AlmaLinux:9 | All versions | 1.2.0-6.el9_1 |
libwebp-devel AlmaLinux:9 | All versions | 1.2.0-6.el9_1 |
libwebp Red Hat:enterprise_linux:7::client | All versions | 0:0.3.0-11.el7 |
libwebp-debuginfo Red Hat:enterprise_linux:7::client | All versions | 0:0.3.0-11.el7 |
libwebp-devel Red Hat:enterprise_linux:7::client | All versions | 0:0.3.0-11.el7 |
libwebp-java Red Hat:enterprise_linux:7::client | All versions | 0:0.3.0-11.el7 |
libwebp-tools Red Hat:enterprise_linux:7::client | All versions | 0:0.3.0-11.el7 |
libwebp-debuginfo Red Hat:enterprise_linux:7::computenode | All versions | 0:0.3.0-11.el7 |
libwebp-devel Red Hat:enterprise_linux:7::computenode | All versions | 0:0.3.0-11.el7 |
libwebp-java Red Hat:enterprise_linux:7::computenode | All versions | 0:0.3.0-11.el7 |
libwebp-tools Red Hat:enterprise_linux:7::computenode | All versions | 0:0.3.0-11.el7 |
libwebp Red Hat:enterprise_linux:7::server | All versions | 0:0.3.0-11.el7 |
libwebp-debuginfo Red Hat:enterprise_linux:7::server | All versions | 0:0.3.0-11.el7 |
libwebp-devel Red Hat:enterprise_linux:7::server | All versions | 0:0.3.0-11.el7 |
libwebp-java Red Hat:enterprise_linux:7::server | All versions | 0:0.3.0-11.el7 |
libwebp-tools Red Hat:enterprise_linux:7::server | All versions | 0:0.3.0-11.el7 |
libwebp Red Hat:enterprise_linux:7::workstation | All versions | 0:0.3.0-11.el7 |
libwebp-debuginfo Red Hat:enterprise_linux:7::workstation | All versions | 0:0.3.0-11.el7 |
libwebp-devel Red Hat:enterprise_linux:7::workstation | All versions | 0:0.3.0-11.el7 |
libwebp-java Red Hat:enterprise_linux:7::workstation | All versions | 0:0.3.0-11.el7 |
libwebp-tools Red Hat:enterprise_linux:7::workstation | All versions | 0:0.3.0-11.el7 |
libwebp Red Hat:enterprise_linux:8::appstream | All versions | 0:1.0.0-8.el8_7 |
libwebp-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:1.0.0-8.el8_7 |
libwebp-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:1.0.0-8.el8_7 |
libwebp-devel Red Hat:enterprise_linux:8::appstream | All versions | 0:1.0.0-8.el8_7 |
libwebp-java-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:1.0.0-8.el8_7 |
libwebp-tools-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:1.0.0-8.el8_7 |
libwebp Red Hat:enterprise_linux:9::appstream | All versions | 0:1.2.0-6.el9_1 |
libwebp-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:1.2.0-6.el9_1 |
libwebp-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:1.2.0-6.el9_1 |
libwebp-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:1.2.0-6.el9_1 |
libwebp-java-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:1.2.0-6.el9_1 |
libwebp-tools-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:1.2.0-6.el9_1 |
libwebp Red Hat:rhel_aus:8.2::appstream | All versions | 0:1.0.0-7.el8_2 |
libwebp-debuginfo Red Hat:rhel_aus:8.2::appstream | All versions | 0:1.0.0-7.el8_2 |
libwebp-debugsource Red Hat:rhel_aus:8.2::appstream | All versions | 0:1.0.0-7.el8_2 |
libwebp-devel Red Hat:rhel_aus:8.2::appstream | All versions | 0:1.0.0-7.el8_2 |
libwebp-java-debuginfo Red Hat:rhel_aus:8.2::appstream | All versions | 0:1.0.0-7.el8_2 |
Products include Webmproject Libwebp.
How do I fix CVE-2023-1999?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2023-1999 being exploited?
There is no known exploitation of CVE-2023-1999 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Chromium libwebp
Sources
Also known as ALPINE-CVE-2023-1999, ALSA-2023:2076, ALSA-2023:2078, AZL-27181, CLSA-2023-1697135462, CLSA-2023-1697136085 and 25 more.