CVE-2023-45661 Wild address read in stbi__gif_load_next in stb_image

Medium 6.5 Published Updated

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.

Sources

Also known as DEBIAN-CVE-2023-45661, UBUNTU-CVE-2023-45661.

Is CVE-2023-45661 in your software?

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

Check your SBOMs for free