8.8

CVE-2023-45664: nothings stb Double Free

CVSS: 8.8v3.1HighModified
AliasesUBUNTU-CVE-2023-45664DEBIAN-CVE-2023-45664
Published 20-10-2023Last modified 13-02-2025

Vulnerability summary

CVE-2023-45664 is a high (CVSS 8.8) Double Free vulnerability in nothings stb. EPSS estimates a 0.87% chance of exploitation in the next 30 days, higher than 57.9% of scored vulnerabilities.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
0.87%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 20-10-2023
    PublishedVulnerability first disclosed.
  2. 13-02-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.87%

Chance of exploitation in the next 30 days

Percentile

58%

Versus all other CVEs

30-day change

0.00 pp

From 0.87% on 18-09-2026

18-09-202618-10-2026
EPSS score
0.87%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Nothings2 products
Debian1 product
  • libstbAll versions (No fix recorded)
Ubuntu1 product
  • libstbAll versions (No fix recorded)

3 vendors · 4 products

References

8 links