CVE-2023-45663: nothings stb Use of Uninitialized Resource
Vulnerability summary
CVE-2023-45663 is a medium (CVSS 5.5) Use of Uninitialized Resource vulnerability in nothings stb. EPSS estimates a 0.66% chance of exploitation in the next 30 days, higher than 50.4% of scored vulnerabilities.
Timeline
- 20-10-2023PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
Description
stb_image is a single file MIT licensed library for processing images. The stbi__getn function reads a specified number of bytes from context (typically a file) into the specified buffer. In case the file stream points to the end, it returns zero. There are two places where its return value is not checked: In the `stbi__hdr_load` function and in the `stbi__tga_load` function. The latter of the two is likely more exploitable as an attacker may also control the size of an uninitialized buffer.
CVSS metrics
4 scores · 4 sources · 1 version- CVE.orgCNA5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.66%
Chance of exploitation in the next 30 days
Percentile
50%
Versus all other CVEs
30-day change
0.00 pp
From 0.66% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Nothings2 products
- stb≤ 2.28
- stb_image.h2.28
Debian1 product
- libstbAll versions (No fix recorded)
Ubuntu1 product
- libstbAll versions (No fix recorded)
3 vendors · 4 products
References
10 links- securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/X Refsource CONFIRMREPORTThird Party Advisory
- github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.hX Refsource MISCREPORTThird Party Advisory
- github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.hX Refsource MISCREPORTThird Party Advisory
- github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.hX Refsource MISCREPORTThird Party Advisory