CVE-2023-45662CWE-125

Multi-byte read heap buffer overflow in stbi__vertical_flip in stb_image

Medium · published October 20, 2023

CVSS v3.1
6.5
EPSS
1%
Percentile
56.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.00807 · 56.4th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2023-10-20T23:26Z
EPSS history
Timeline
  • 20 OCT 23:26Z
    Multi-byte read heap buffer overflow in stbi__vertical_flip in stb_image
    cvelistv5