BreachSpiderVerified, not vibes

CVE-2023-45666 in Nothings Stb Image.H

Critical 9.8

stb_image is a single file MIT licensed library for processing images. It may look like `stbi__load_gif_main` doesn’t give guarantees about the content of output value `*delays` upon failure. Although it sets `*delays` to zero at the beginning, it doesn’t do it in case the image is not recognized as GIF and a call ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.19.8
EPSS1.3%
EPSS percentile71th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Nothings Stb Image.H 2.28

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

stb_image is a single file MIT licensed library for processing images. It may look like `stbi__load_gif_main` doesn’t give guarantees about the content of output value `*delays` upon failure. Although it sets `*delays` to zero at the beginning, it doesn’t do it in case the image is not recognized as GIF and a call to `stbi__load_gif_main_outofmem` only frees possibly allocated memory in `*delays` without resetting it to zero. Thus it would be fair to say the caller of `stbi__load_gif_main` is responsible to free the allocated memory in `*delays` only if `stbi__load_gif_main` returns a non null value. However at the same time the function may return null value, but fail to free the memory in `*delays` if internally `stbi__convert_format` is called and fails. Thus the issue may lead to a memory leak if the caller chooses to free `delays` only when `stbi__load_gif_main` didn’t fail or to a double-free if the `delays` is always freed

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2023-45666
BreachSpider IDBS-2023-GLOBAL-346911-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2023-10-21
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-415: CWE-415

Analysis AI-written, not human-reviewed

A vulnerability in the stb_image library could lead to uninitialized memory being accessed if a non-GIF image is processed by the `stbi__load_gif_main` function. This could potentially be exploited to leak sensitive information or cause a denial of service.

An attacker could craft a malicious image file that is not a GIF but is designed to trigger the vulnerability in the `stbi__load_gif_main` function. When this image is processed, the function may not properly initialize the `*delays` output value, leading to the exposure of uninitialized memory.

Questions

What is CVE-2023-45666?

A vulnerability in the stb_image library could lead to uninitialized memory being accessed if a non-GIF image is processed by the `stbi__load_gif_main` function. This could potentially be exploited to leak sensitive information or cause a denial of service.

What is the CVSS score for CVE-2023-45666?

CVE-2023-45666 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.3%.

Is CVE-2023-45666 actively exploited?

No confirmed active exploitation of CVE-2023-45666 as of 2026-09-25.

How do I remediate CVE-2023-45666?

Priority: IMMEDIATE.

What systems are affected by CVE-2023-45666?

CVE-2023-45666 affects Nothings Stb Image.H.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Nothings","product":"Stb Image.H","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.