stb_image is a single file MIT licensed library for processing images. The stbi__getn function reads a specified number of bytes from context (typically a file) into the specified buffer. In case the file stream points to the end, it returns zero. There are two places where its return value is not checked: In the `stbi__hdr_load` function and in the `stbi__tga_load` function. The latter of the two is likely more exploitable as an attacker may also control the size of an uninitialized buffer.
Advisories
Source ID Title
EUVD EUVD EUVD-2023-49954 stb_image is a single file MIT licensed library for processing images. The stbi__getn function reads a specified number of bytes from context (typically a file) into the specified buffer. In case the file stream points to the end, it returns zero. There are two places where its return value is not checked: In the `stbi__hdr_load` function and in the `stbi__tga_load` function. The latter of the two is likely more exploitable as an attacker may also control the size of an uninitialized buffer.
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Thu, 13 Feb 2025 18:15:00 +0000

Type Values Removed Values Added
First Time appeared Nothings stb Image
CPEs cpe:2.3:a:nothings:stb_image:*:*:*:*:*:*:*:*
Vendors & Products Nothings stb Image
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-02-13T17:14:05.330Z

Reserved: 2023-10-10T14:36:40.860Z

Link: CVE-2023-45663

cve-icon Vulnrichment

Updated: 2024-08-02T20:21:16.922Z

cve-icon NVD

Status : Modified

Published: 2023-10-21T00:15:08.930

Modified: 2024-11-21T08:27:10.077

Link: CVE-2023-45663

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.