Skip to content

CVE-2023-45663 Disclosure of uninitialized memory in stbi__tga_load in stb_image

MediumCVSS 5.5 EPSS 0.66%
Published
Updated
Exploit status
No public exploit known

Description

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.

Affected products

ProductAffected versionsFixed in
debian/libstb(Debian:12) All versions No fix listed
debian/libstb(Debian:12) = 0.0~git20220908.8b5f1f3+ds-1 No fix listed
debian/libstb(Debian:12) = 0.0~git20230129.5736b15+ds-1 No fix listed
debian/libstb(Debian:12) = 0.0~git20230129.5736b15+ds-1.1 No fix listed
debian/libstb(Debian:12) = 0.0~git20230129.5736b15+ds-1.1~exp1 No fix listed
debian/libstb(Debian:12) = 0.0~git20230129.5736b15+ds-1.2 No fix listed
debian/libstb(Debian:12) = 0.0~git20240715.f7f20f39fe4f+ds-1 No fix listed
debian/libstb(Debian:12) = 0.0~git20241109.5c20573+ds-1 No fix listed
debian/libstb(Debian:12) = 0.0~git20250907.fede005+ds-1 No fix listed
debian/libstb(Debian:13) All versions No fix listed
debian/libstb(Debian:13) = 0.0~git20241109.5c20573+ds-1 No fix listed
debian/libstb(Debian:13) = 0.0~git20250907.fede005+ds-1 No fix listed
debian/libstb(Debian:14) All versions No fix listed
debian/libstb(Debian:14) = 0.0~git20241109.5c20573+ds-1 No fix listed
debian/libstb(Debian:14) = 0.0~git20250907.fede005+ds-1 No fix listed
nothings stb = <= 2.28 No fix listed
nothings stb_image <= 2.28 No fix listed
ubuntu/libstb(Ubuntu:22.04) All versions No fix listed
alpine/stb(Alpine:v3.19) < 0_git20231012-r0 0_git20231012-r0
alpine/stb(Alpine:v3.20) < 0_git20231012-r0 0_git20231012-r0
alpine/stb(Alpine:v3.21) < 0_git20231012-r0 0_git20231012-r0
alpine/stb(Alpine:v3.22) < 0_git20231012-r0 0_git20231012-r0
alpine/stb(Alpine:v3.23) < 0_git20231012-r0 0_git20231012-r0
alpine/stb(Alpine:v3.24) < 0_git20231012-r0 0_git20231012-r0
ubuntu/libstb(Ubuntu:24.04) All versions No fix listed
Show 3 more
ProductAffected versionsFixed in
nothings stb image.h = 2.28 No fix listed
ubuntu/libstb(Ubuntu:26.04) All versions No fix listed
ubuntu/libstb(Ubuntu:26.10) All versions No fix listed

References