Out-of-bounds Read in Nothings Stb
CVE-2023-45662
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.
Vulnerability class: Buffer Overflow
EPSS: 0.007 (49.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L.
Affected products
- Nothings Stb — versions <= 2.28
- Nothings Stb_image.h — versions 2.28
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
- security-advisories@github.com (Third Party Advisory, x_refsource_MISC)
- security-advisories@github.com
- security-advisories@github.com
- security-advisories@github.com
Frequently asked questions
- What is CVE-2023-45662?
- CVE-2023-45662 is a medium-severity vulnerability in Nothings Stb, classified under Out-of-bounds Read. CVSS score: 6.5/10. Published 2023-10-21.
- How severe is CVE-2023-45662?
- Medium severity. CVSS v3 base score is 6.5 out of 10.
- Is CVE-2023-45662 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.