Loading...
Skip to main content

CVE-2023-4863 (WebP 0-day) — libwebp: OOB write in electron — CVE...

HIGH

libwebp: OOB write in BuildHuffmanTable

Published September 12, 2023Updated September 10, 2026Source: osv

Summary

Heap buffer overflow in libwebp allow a remote attacker to perform an out of bounds memory write via a crafted HTML page.

Advisory Timeline

  • First published September 12, 2023 (1126 days ago).
  • Last revised September 10, 2026 — 1094 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update electron to 25.8.1 or later
npm install electron@25.8.1
Cargo
Update libwebp-sys2 to 0.1.8 or later
cargo update -p libwebp-sys2 --precise 0.1.8
npm
Update electron to 22.3.24 or later
npm install electron@22.3.24
npm
Update electron to 24.8.3 or later
npm install electron@24.8.3
NuGet
Update magick.net-q8-openmp-x64 to 13.3.0 or later
dotnet add package magick.net-q8-openmp-x64 --version 13.3.0
Go
Update github.com/chai2010/webp to 1.1.2-0.20250406010349-76805d5a8860 or later
go get github.com/chai2010/webp@v1.1.2-0.20250406010349-76805d5a8860
NuGet
Update SkiaSharp to 2.88.6 or later
dotnet add package SkiaSharp --version 2.88.6
NuGet
Update magick.net-q16-anycpu to 13.3.0 or later
dotnet add package magick.net-q16-anycpu --version 13.3.0
NuGet
Update magick.net-q16-x64 to 13.3.0 or later
dotnet add package magick.net-q16-x64 --version 13.3.0
NuGet
Update magick.net-q8-x64 to 13.3.0 or later
dotnet add package magick.net-q8-x64 --version 13.3.0
npm
Update electron to 27.0.0-beta.2 or later
npm install electron@27.0.0-beta.2
npm
Update electron to 26.2.1 or later
npm install electron@26.2.1
Go
Update github.com/chai2010/webp to 1.4.0 or later
go get github.com/chai2010/webp@v1.4.0
NuGet
Update magick.net-q16-hdri-anycpu to 13.3.0 or later
dotnet add package magick.net-q16-hdri-anycpu --version 13.3.0
Go
Update github.com/chai2010/webp to 0.0.0-20250406010349-76805d5a8860 or later
go get github.com/chai2010/webp@v0.0.0-20250406010349-76805d5a8860
Cargo
Update webp to 0.2.6 or later
cargo update -p webp --precise 0.2.6
NuGet
Update magick.net-q8-anycpu to 13.3.0 or later
dotnet add package magick.net-q8-anycpu --version 13.3.0
pip
Update pillow to 10.0.1 or later
pip install "pillow>=10.0.1"
Cargo
Update libwebp-sys to 0.9.3 or later
cargo update -p libwebp-sys --precise 0.9.3

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (19)

Affects 5 ecosystems: nuget (7), crates.io (3), go (1), npm (1), pypi (1).

PackageEcosystemAffectedFixed In
electron
npm
All versions25.8.1
libwebp-sys2
crates.io
All versions0.1.8
electron
npm
All versions22.3.24
electron
npm
All versions24.8.3
magick.net-q8-openmp-x64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+77 more)13.3.0
github.com/chai2010/webp
go
All versions1.1.2-0.20250406010349-76805d5a8860
SkiaSharp
nuget
2.80.0, 2.80.1, 2.80.2, 2.80.3 (+7 more)2.88.6
magick.net-q16-anycpu
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+180 more)13.3.0
magick.net-q16-x64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+196 more)13.3.0
magick.net-q8-x64
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+196 more)13.3.0
electron
npm
All versions27.0.0-beta.2
electron
npm
All versions26.2.1
github.com/chai2010/webp
go
All versions1.4.0
magick.net-q16-hdri-anycpu
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+177 more)13.3.0
github.com/chai2010/webp
go
All versions0.0.0-20250406010349-76805d5a8860
webp
crates.io
All versions0.2.6
magick.net-q8-anycpu
nuget
10.0.0, 10.1.0, 11.0.0, 11.1.0 (+180 more)13.3.0
pillow
pypi
1.0, 1.1, 1.2, 1.3 (+89 more)10.0.1
libwebp-sys
crates.io
All versions0.9.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-787
    Out-of-bounds WriteMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References

Frequently Asked Questions

What is CVE-2023-4863?
libwebp: OOB write in BuildHuffmanTable This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2023-4863?
CVE-2023-4863 affects electron, libwebp-sys2 and magick.net-q8-openmp-x64 (and 10 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-4863 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-j7hp-h8jx-5ppr
A-299477569
ASB-A-299477569
CVE-2023-5129
PYSEC-2026-1794
RUSTSEC-2023-0060
RUSTSEC-2023-0061

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies