CVE-2023-45667: nothings stb NULL Pointer Dereference
Vulnerability summary
CVE-2023-45667 is a high (CVSS 7.5) NULL Pointer Dereference vulnerability in nothings stb. EPSS estimates a 1.14% chance of exploitation in the next 30 days, higher than 66% 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. If `stbi__load_gif_main` in `stbi_load_gif_from_memory` fails it returns a null pointer and may keep the `z` variable uninitialized. In case the caller also sets the flip vertically flag, it continues and calls `stbi__vertical_flip_slices` with the null pointer result value and the uninitialized `z` value. This may result in a program crash.
CVSS metrics
4 scores · 4 sources · 1 version- CVE.orgCNA5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.14%
Chance of exploitation in the next 30 days
Percentile
66%
Versus all other CVEs
30-day change
0.00 pp
From 1.14% 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
9 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