GHSA-4vjr-crvh-383h @napi-rs/image affected by libwebp CVE
A heap buffer overflow in libwebp allows remote attackers to execute arbitrary code via a crafted WebP image processed by the @napi-rs/image library.
- 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-4vjr-crvh-383h?
GHSA-4vjr-crvh-383h is a memory corruption vulnerability in @napi-rs/image, published on 27 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
Impact
Heap buffer overflow in libwebp allows a remote attacker to perform an out of bounds memory write via a crafted webp image.
References
Which versions are affected by GHSA-4vjr-crvh-383h?
2 open source packages ship an affected version, including @napi-rs/image.
| Package | Affected | Fixed in |
|---|---|---|
@napi-rs/image npm | All versions | 1.7.0 |
@napi-rs/image npm | All versions | 1.7.0 |
How do I fix GHSA-4vjr-crvh-383h?
Upgrade @napi-rs/image to 1.7.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-4vjr-crvh-383h being exploited?
There is no known exploitation of GHSA-4vjr-crvh-383h in the wild and no public exploit code.