CVE-2023-45662

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-45662
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-45662.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-45662
Downstream
Published
2023-10-20T23:26:11Z
Modified
2025-10-21T02:36:16Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L CVSS Calculator
Summary
Multi-byte read heap buffer overflow in stbi__vertical_flip in stb_image
Details

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.

References

Affected packages

Git /

Affected ranges

Database specific

unresolved_versions

[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "2.28"
            }
        ],
        "type": ""
    }
]