# libwebp: OOB write in BuildHuffmanTable

Advisory record · `GHSA-j7hp-h8jx-5ppr`

- **Identifiers:** `GHSA-j7hp-h8jx-5ppr` · `A-299477569` · `ASB-A-299477569` · `CVE-2023-4863` · `CVE-2023-5129` · `PYSEC-2026-1794` · `RUSTSEC-2023-0060` · `RUSTSEC-2023-0061`
- **State:** Confirmed
- **Severity:** CVSS 8.8 High
- **Critical:** Yes: KEV, CVSS 7+ and EPSS
- **Weakness (CWE):** [CWE-787](https://cwe.mitre.org/data/definitions/787.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Published:** 12 Sept 2023
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 12 Sept 2023, 15:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- In CISA’s KEV catalogue since 13 Sept 2023: it is known to be exploited.
- CVSS score 8.8 (7.0 or more) and EPSS 1.00 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `libwebp-sys2` (crates.io): affected `<0.1.8`; fixed in `0.1.8`
- `libwebp-sys` (crates.io): affected `<0.9.3`; fixed in `0.9.3`
- `electron` (npm): affected `>=22.0.0, <22.3.24 || >=24.0.0, <24.8.3 || >=25.0.0, <25.8.1 || >=26.0.0, <26.2.1 || >=27.0.0-beta.1, <27.0.0-beta.2`; fixed in `22.3.24`, `24.8.3`, `25.8.1`, `26.2.1`, `27.0.0-beta.2`
- `SkiaSharp` (NuGet): affected `>=2.0.0, <2.88.6`; fixed in `2.88.6`
- `github.com/chai2010/webp` (Go): affected `>=1.1.2, <1.4.0 || <0.0.0-20250406010349-76805d5a8860 || >=0.0.0, <1.1.2-0.20250406010349-76805d5a8860`; fixed in `1.4.0`, `0.0.0-20250406010349-76805d5a8860`, `1.1.2-0.20250406010349-76805d5a8860`
- `pillow` (PyPI): affected `<10.0.1`; fixed in `10.0.1`
- `webp` (crates.io): affected `<0.2.6`; fixed in `0.2.6`
- `magick.net-q16-anycpu` (NuGet): affected `<13.3.0`; fixed in `13.3.0`
- `magick.net-q16-hdri-anycpu` (NuGet): affected `<13.3.0`; fixed in `13.3.0`
- `magick.net-q16-x64` (NuGet): affected `<13.3.0`; fixed in `13.3.0`
- `magick.net-q8-anycpu` (NuGet): affected `<13.3.0`; fixed in `13.3.0`
- `magick.net-q8-openmp-x64` (NuGet): affected `<13.3.0`; fixed in `13.3.0`
- `magick.net-q8-x64` (NuGet): affected `<13.3.0`; fixed in `13.3.0`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.8 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`, from GitHub Advisory Database

- **CISA KEV:** Listed since 13 Sept 2023: known to be exploited.
- **EPSS:** 1.00, the 99th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 12 Sept 2023. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-j7hp-h8jx-5ppr](https://github.com/advisories/GHSA-j7hp-h8jx-5ppr)
- [OSV: GHSA-j7hp-h8jx-5ppr](https://osv.dev/vulnerability/GHSA-j7hp-h8jx-5ppr)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-4863>
- <https://github.com/qnighy/libwebp-sys2-rs/pull/21>
- <https://github.com/python-pillow/Pillow/pull/7395>
- <https://github.com/jaredforth/webp/pull/30>
- <https://github.com/electron/electron/pull/39823>
- <https://github.com/electron/electron/pull/39825>
- <https://github.com/electron/electron/pull/39826>
- <https://github.com/electron/electron/pull/39827>
- <https://github.com/electron/electron/pull/39828>
- <https://github.com/webmproject/libwebp/commit/902bc9190331343b2017211debcec8d2ab87e17a>
- <https://github.com/qnighy/libwebp-sys2-rs/commit/4560c473a76ec8bd8c650f19ddf9d7a44f719f8b>
- <https://github.com/jaredforth/webp/commit/9d4c56e63abecc777df71c702503c3eaabd7dcbc>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-j7hp-h8jx-5ppr>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-j7hp-h8jx-5ppr/>. Everything for agents: <https://agentprime.io/llms.txt>.
