Live threats

All CVEs / Nothings

CVE-2023-45662Nothings Stb Image.h

High 8.1 No auth needed

Priority
64
CVSS 3.1
8.1
EPSS
1.0%
probability of exploitation in 30 days · percentile 63
Auth required
No
Published
Oct 21, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-125
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Stb Image.h.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
nothingsstb_image.h2.28

Official sources

References

Links published by the sources. Open them with care.