GHSA-f9pm-4g9p-6vm3 Bundled libwebp in pywebp vulnerable

Not scored Published

A heap buffer overflow in the bundled libwebp allows remote attackers to execute arbitrary code via malicious WebP images.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-f9pm-4g9p-6vm3?

GHSA-f9pm-4g9p-6vm3 is a memory corruption vulnerability in webp, published on 6 Oct 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

Impact

pywebp versions before v0.3.0 bundled libwebp binaries in wheels that are vulnerable to CVE-2023-4863. The vulnerability was a heap buffer overflow which allowed a remote attacker to perform an out of bounds memory write.

Patches

The problem has been patched upstream in libwebp 1.3.2. pywebp was updated to bundle a patched version of libwebp in v0.3.0.

Workarounds

No known workarounds without upgrading.

References

Which versions are affected by GHSA-f9pm-4g9p-6vm3?

2 open source packages ship an affected version, including webp.

PackageAffectedFixed in
webp PyPIAll versions0.3.0
webp PyPIAll versions0.3.0

How do I fix GHSA-f9pm-4g9p-6vm3?

Upgrade webp to 0.3.0 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is GHSA-f9pm-4g9p-6vm3 being exploited?

There is no known exploitation of GHSA-f9pm-4g9p-6vm3 in the wild and no public exploit code.

Sources

Is GHSA-f9pm-4g9p-6vm3 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free