CVE-2023-45667: GHSL-2023-145_GHSL-2023-151/GHSL-2023-165_GHSL-2023-172: Several memory access violations in stb_image and stb_vorbis
stbimage is a single file MIT licensed library for processing images.
If stbiloadgifmain in stbiloadgiffrommemory fails it returns a null pointer and may keep the z variable uninitialized. In case the caller also sets the flip vertically flag, it continues and calls stbiverticalflipslices with the null pointer result value and the uninitialized z value. This may result in a program crash.
Other sources
stbimage.h and stbvorbis libraries contain several memory access violations of different severity.
— GitHub Security Lab
Affected Software
Event History
Frequently Asked Questions
What is CVE-2023-45667?
CVE-2023-45667 is a vulnerability in the stb_image library that allows a null pointer dereference due to an uninitialized variable.
What is the severity of CVE-2023-45667?
The severity of CVE-2023-45667 is high with a CVSS score of 7.5 (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).
How does CVE-2023-45667 impact the stb_image library?
CVE-2023-45667 impacts the stb_image library by allowing a null pointer dereference, which can lead to a crash or potentially allow an attacker to execute arbitrary code.
What is the affected version of the stb_image library?
The affected version of the stb_image library is 2.28.
How can I fix CVE-2023-45667?
To fix CVE-2023-45667, it is recommended to update to a patched version of the stb_image library.