CVE-2023-45661 Wild address read in stbi__gif_load_next in stb_image
A crafted GIF file triggers an out-of-bounds read in stb_image, allowing attackers to leak internal memory allocation information.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-45661?
CVE-2023-45661 is a medium-severity vulnerability in nothings stb, published on 20 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-125
Which versions are affected by CVE-2023-45661?
It affects 1 product.
Products include Nothings Stb Image.h.
How do I fix CVE-2023-45661?
Apply the vendor's patch.
Is CVE-2023-45661 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-45661 exists.
Other vulnerabilities in nothings stb
- CVE-2019-19777 Memory corruption in n/a
- CVE-2023-45664 Double-free in stbi__load_gif_main_outofmem in stb_image
- CVE-2023-45666 Possible double-free or memory leak in stbi__load_gif_main in stb_image
- CVE-2023-43281 Use after free in n/a
- CVE-2023-45662 Multi-byte read heap buffer overflow in stbi__vertical_flip in stb_image
Sources
Also known as DEBIAN-CVE-2023-45661, UBUNTU-CVE-2023-45661.