# CVE-2023-4863: Google Chromium WebP Heap-Based Buffer Overflow

> Remote attackers can execute arbitrary code via crafted HTML pages exploiting a heap buffer overflow in the libwebp library.

- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Yes, since 13 Sep 2023 (CISA KEV)
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 12 Sep 2023
- **Updated:** 21 Oct 2025
- **Also known as:** A-299477569, ALPINE-CVE-2023-4863, ALSA-2023:5184, ALSA-2023:5200, ALSA-2023:5201, ALSA-2023:5214, ALSA-2023:5224, ALSA-2023:5309, AZL-29758, CLEANSTART-2024-ZN11059, CLSA-2024-1717678054, CVE-2023-5129, DEBIAN-CVE-2023-4863, DLA-3568-1, DLA-3569-1, DLA-3570-1, DSA-5496-1, DSA-5497-1, DSA-5497-2, DSA-5498-1, GHSA-j7hp-h8jx-5ppr, JLSEC-2026-441, MGASA-2023-0282, OESA-2023-1681, OESA-2023-1713, OESA-2023-1714, PYSEC-2023-181, PYSEC-2023-182, PYSEC-2023-183, PYSEC-2023-184, RHSA-2023:5222, RLSA-2023:5184, RLSA-2023:5309, ROOT-APP-PYPI-CVE-2023-4863, SUSE-SU-2023:3609-1, SUSE-SU-2023:3610-1, SUSE-SU-2023:3626-1, SUSE-SU-2023:3634-1, SUSE-SU-2023:3794-1, SUSE-SU-2023:3829-1, UBUNTU-CVE-2023-4863, USN-6367-1, USN-6369-1, USN-6369-2, openSUSE-SU-2023:0246-1, openSUSE-SU-2023:0247-1, openSUSE-SU-2023:0278-1, openSUSE-SU-2024:13227-1, openSUSE-SU-2024:13228-1, openSUSE-SU-2024:13229-1, openSUSE-SU-2024:13231-1, openSUSE-SU-2024:13255-1, openSUSE-SU-2024:13265-1, openSUSE-SU-2024:13266-1, openSUSE-SU-2024:13271-1, openSUSE-SU-2024:13284-1, openSUSE-SU-2024:13338-1, openSUSE-SU-2024:13353-1, openSUSE-SU-2024:13595-1, openSUSE-SU-2026:10991-1, openSUSE-SU-2026:12010-1, openSUSE-SU-2026:12177-1

## What is CVE-2023-4863?

CVE-2023-4863 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 12 Sep 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Heap buffer overflow in libwebp in Google Chrome prior to 116.0.5845.187 and libwebp 1.3.2 allowed a remote attacker to perform an out of bounds memory write via a crafted HTML page. (Chromium security severity: Critical)

Weakness: CWE-787 (Out-of-bounds Write)

## Which versions are affected by CVE-2023-4863?

40 open source packages ship an affected version, including electron, github.com/chai2010/webp and SkiaSharp. It affects 12 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `electron` | npm | From 22.0.0 | 22.3.24 |
| `electron` | npm | From 22.0.0 | 22.3.24 |
| `electron` | npm | From 24.0.0 | 24.8.3 |
| `electron` | npm | From 24.0.0 | 24.8.3 |
| `electron` | npm | From 25.0.0 | 25.8.1 |
| `electron` | npm | From 25.0.0 | 25.8.1 |
| `electron` | npm | From 26.0.0 | 26.2.1 |
| `electron` | npm | From 26.0.0 | 26.2.1 |
| `github.com/chai2010/webp` | Go | All versions | 0.0.0-20250406010349-76805d5a8860 |
| `github.com/chai2010/webp` | Go | All versions | 0.0.0-20250406010349-76805d5a8860 |
| `github.com/chai2010/webp` | Go | From 0.0.0 | 1.1.2-0.20250406010349-76805d5a8860 |
| `github.com/chai2010/webp` | Go | From 0.0.0 | 1.1.2-0.20250406010349-76805d5a8860 |
| `github.com/chai2010/webp` | Go | From 1.1.2 | 1.4.0 |
| `github.com/chai2010/webp` | Go | From 1.1.2 | 1.4.0 |
| `SkiaSharp` | NuGet | From 2.0.0 | 2.88.6 |
| `SkiaSharp` | NuGet | From 2.0.0 | 2.88.6 |
| `magick.net-q16-anycpu` | NuGet | All versions | 13.3.0 |
| `magick.net-q16-anycpu` | NuGet | All versions | 13.3.0 |
| `magick.net-q16-hdri-anycpu` | NuGet | All versions | 13.3.0 |
| `magick.net-q16-hdri-anycpu` | NuGet | All versions | 13.3.0 |
| `magick.net-q16-x64` | NuGet | All versions | 13.3.0 |
| `magick.net-q16-x64` | NuGet | All versions | 13.3.0 |
| `magick.net-q8-anycpu` | NuGet | All versions | 13.3.0 |
| `magick.net-q8-anycpu` | NuGet | All versions | 13.3.0 |
| `magick.net-q8-openmp-x64` | NuGet | All versions | 13.3.0 |
| `magick.net-q8-openmp-x64` | NuGet | All versions | 13.3.0 |
| `magick.net-q8-x64` | NuGet | All versions | 13.3.0 |
| `magick.net-q8-x64` | NuGet | All versions | 13.3.0 |
| `Pillow` | PyPI | All versions | 10.0.1 |
| `opencv-contrib-python` | PyPI | All versions | 4.8.1.78 |
| `opencv-contrib-python-headless` | PyPI | All versions | 4.8.1.78 |
| `opencv-python` | PyPI | All versions | 4.8.1.78 |
| `opencv-python-headless` | PyPI | All versions | 4.8.1.78 |
| `pillow` | PyPI | All versions | 10.0.1 |
| `libwebp-sys` | crates.io | All versions | 0.9.3 |
| `libwebp-sys` | crates.io | All versions | 0.9.3 |
| `libwebp-sys2` | crates.io | All versions | 0.1.8 |
| `libwebp-sys2` | crates.io | All versions | 0.1.8 |
| `webp` | crates.io | All versions | 0.2.6 |
| `webp` | crates.io | All versions | 0.2.6 |

Products: Bandisoft Honeyview, Bentley Seequent Leapfrog, Debian Debian Linux, Fedoraproject Fedora, Google Chrome, Microsoft Edge Chromium, Microsoft Teams, Microsoft Webp Image Extension, Mozilla Firefox, Mozilla Thunderbird, Netapp Active Iq Unified Manager, Webmproject Libwebp.

## How do I fix CVE-2023-4863?

Upgrade electron to a fixed version for your release line: 22.3.24, 24.8.3, 25.8.1 or 26.2.1. US federal agencies must fix it by 4 Oct 2023.

## Is CVE-2023-4863 being exploited?

Yes. Attackers have exploited CVE-2023-4863 in the wild since at least 13 Sep 2023.

Public exploit code:

- https://github.com/mistymntncop/CVE-2023-4863 (github_poc): https://github.com/mistymntncop/CVE-2023-4863
- https://github.com/LiveOverflow/webp-CVE-2023-4863 (github_poc): https://github.com/LiveOverflow/webp-CVE-2023-4863
- This tool calculates tricky canonical huffman histogram for CVE-2023-4863. (github_poc): https://github.com/caoweiquan322/NotEnough
- A tool for finding vulnerable libwebp(CVE-2023-4863) (github_poc): https://github.com/murphysecurity/libwebp-checker
- https://github.com/bbaranoff/CVE-2023-4863 (github_poc): https://github.com/bbaranoff/CVE-2023-4863
- Find Electron Apps Vulnerable to CVE-2023-4863 / CVE-2023-5129 (github_poc): https://github.com/GTGalaxi/ElectronVulnerableVersion

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-4863 and fix it if it is affected.

What it is: CVE-2023-4863 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 12 Sep 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: Yes. Attackers have exploited CVE-2023-4863 in the wild since at least 13 Sep 2023.

Affected packages and fixed versions:
- electron (npm): affected from 22.0.0; fixed in 22.3.24
- electron (npm): affected from 22.0.0; fixed in 22.3.24
- electron (npm): affected from 24.0.0; fixed in 24.8.3
- electron (npm): affected from 24.0.0; fixed in 24.8.3
- electron (npm): affected from 25.0.0; fixed in 25.8.1
- electron (npm): affected from 25.0.0; fixed in 25.8.1
- electron (npm): affected from 26.0.0; fixed in 26.2.1
- electron (npm): affected from 26.0.0; fixed in 26.2.1
- github.com/chai2010/webp (Go): affected all versions; fixed in 0.0.0-20250406010349-76805d5a8860
- github.com/chai2010/webp (Go): affected all versions; fixed in 0.0.0-20250406010349-76805d5a8860
- github.com/chai2010/webp (Go): affected from 0.0.0; fixed in 1.1.2-0.20250406010349-76805d5a8860
- github.com/chai2010/webp (Go): affected from 0.0.0; fixed in 1.1.2-0.20250406010349-76805d5a8860

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-4863/ (Markdown: https://insights.sbomify.com/CVE-2023-4863/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-4863
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-4863
- OSV: https://osv.dev/vulnerability/CVE-2023-4863

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-4863/
Summaries are generated and may contain mistakes; the official description above is the record.
