OSV-2020-1372 Index-out-of-bounds in stbi__build_huffman
An index-out-of-bounds error in the stb image library's JPEG decoder can cause a crash when processing malicious 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
- None listed
What is OSV-2020-1372?
OSV-2020-1372 is a memory corruption vulnerability in stb, published on 28 Jul 2020. 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
OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22584
Crash type: Index-out-of-bounds
Crash state:
stbi__build_huffman
stbi__process_marker
stbi__decode_jpeg_header
Which versions are affected by OSV-2020-1372?
1 open source package ship an affected version, including stb.
| Package | Affected | Fixed in |
|---|---|---|
stb OSS-Fuzz | All versions | None |
How do I fix OSV-2020-1372?
No fix has been published for OSV-2020-1372 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is OSV-2020-1372 being exploited?
There is no known exploitation of OSV-2020-1372 in the wild and no public exploit code.