Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.1
CVE-2023-45661: libstb image library can leak memory with malicious GIF
CVE-2023-45661 · published 3 years ago
Summary
The libstb image handling library used in Debian can be tricked by a specially crafted GIF file to read data from memory it shouldn't access. This could expose internal information about your system. Upgrade to the latest version of libstb or apply the vendor's security patch to stop the issue.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Debian:12 | debian | libstb | All versions |
| Debian:13 | debian | libstb | All versions |
| Debian:14 | debian | libstb | All versions |
| – | nothings | stb_image.h |
2.28 cpe:2.3:a:nothings:stb_image.h:2.28:*:*:*:*:*:*:* |
| Ubuntu:20.04:LTS | canonical | libstb | All versions |
Original advisory text
stb_image is a single file MIT licensed library for processing images. A crafted image file may trigger out of bounds memcpy read in `stbi__gif_load_next`. This happens because two_back points to a...
stb_image is a single file MIT licensed library for processing images. A crafted image file may trigger out of bounds memcpy read in `stbi__gif_load_next`. This happens because two_back points to a memory address lower than the start of the buffer out. This issue may be used to leak internal memory allocation information.
References
- https://security-tracker.debian.org/tracker/CVE-2023-45661 Vendor Advisory
- https://ubuntu.com/security/CVE-2023-45661 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2023-45661 Third Party Advisory
- https://lists.fedoraproject.org/archives/list/[email protected]...
- https://lists.fedoraproject.org/archives/list/[email protected]...
- https://lists.fedoraproject.org/archives/list/[email protected]...
- https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_... Third Party Advisory
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/st... Third Party Advisory
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/st... Third Party Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Severity
7.1
High
Type
CWE-125Out-of-bounds Read
Timeline
Published21 Oct 2023
Updated4 Nov 2026
First seen15 Sep 2026
Track software like this
Free during beta