BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2023-45664 in Nothings Stb Image.H

High 8.8

stb_image is a single file MIT licensed library for processing images. A crafted image file can trigger `stbi__load_gif_main_outofmem` attempt to double-free the out variable. This happens in `stbi__load_gif_main` because when the `layers * stride` value is zero the behavior is implementation defined, but common tha...

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

CVSS 3.18.8
EPSS1.2%
EPSS percentile68th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, 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. A crafted image file can trigger `stbi__load_gif_main_outofmem` attempt to double-free the out variable. This happens in `stbi__load_gif_main` because when the `layers * stride` value is zero the behavior is implementation defined, but common that realloc frees the old memory and returns null pointer. Since it attempts to double-free the memory a few lines below the first “free”, the issue can be potentially exploited only in a multi-threaded environment. In the worst case this may lead to code execution.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2023-45664
BreachSpider IDBS-2023-GLOBAL-199221-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/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 allows a crafted image file to trigger a double-free condition in the `stbi__load_gif_main_outofmem` function, potentially leading to arbitrary code execution.

An attacker can craft a malicious GIF image file that, when processed by the stb_image library, will cause a double-free error in the `stbi__load_gif_main` function. This occurs when the `layers * stride` value is zero, leading to undefined behavior where the memory is freed twice.

Questions

What is CVE-2023-45664?

A vulnerability in the stb_image library allows a crafted image file to trigger a double-free condition in the `stbi__load_gif_main_outofmem` function, potentially leading to arbitrary code execution.

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

CVE-2023-45664 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 1.2%.

Is CVE-2023-45664 actively exploited?

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

How do I remediate CVE-2023-45664?

Priority: IMMEDIATE.

What systems are affected by CVE-2023-45664?

CVE-2023-45664 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.