Multi-byte read heap buffer overflow in stbi__vertical_flip in stb_image
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA.
Summary
stb_image is a single file MIT licensed library for processing images. When `stbi_set_flip_vertically_on_load` is set to `TRUE` and `req_comp` is set to a number that doesn’t match the real number of components per pixel, the library attempts to flip the image vertically. A crafted image file can trigger `memcpy` out-of-bounds read because `bytes_per_pixel` used to calculate `bytes_per_row` doesn’t match the real image array dimensions.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2023-45662
References
Advisory 2
Other 3
- https://lists.fedoraproject.org/archives/list/[email protected]/message/UVQ7ONFH5GWLMXYEAJG32A3EUKUCEVCR/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/QVABVF4GEM6BYD5L4L64RCRSXUHY6LGN/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/NMXKOKPP4BKTNUTF5KSRDQAWOUILQZNO/
More nothings Stb Image.h vulnerabilities
- TI-2023-24466 Possible double-free or memory leak in stbi__load_gif_main in stb_image CVSS 3.1CRITICAL 9.8
- TI-2023-24465 Double-free in stbi__load_gif_main_outofmem in stb_image CVSS 3.1HIGH 8.8
- TI-2023-24467 Null pointer dereference because of an uninitialized variable in stb_image CVSS 3.1HIGH 7.5
- TI-2023-24462 Wild address read in stbi__gif_load_next in stb_image CVSS 3.1HIGH 7.1
- TI-2023-23171 Double Free vulnerability in Nothings Stb Image.h v.2.28 allows a remote attacker to… CVSS 3.1MEDIUM 6.5
- TI-2023-24464 Disclosure of uninitialized memory in stbi__tga_load in stb_image CVSS 3.1MEDIUM 5.5
Sources
- CVE-2023-45662 · CVE Program
- CVE-2023-45662 · NVD
- FIRST EPSS
- CVE-2023-45662 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences