
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-28041 affects stb_image.h version 2.27, specifically containing an integer overflow vulnerability in the function stbi__jpeg_decode_block_prog_dc. This vulnerability was discovered and disclosed in early 2022, with fixes being implemented and distributed throughout 2022 and 2023. The vulnerability affects various software packages that incorporate the stb_image.h library, including CuraEngine, USD, and other applications that use this header-only library for image processing (NVD, Debian Security).
The vulnerability stems from an integer overflow condition in the stbi__jpeg_decode_block_prog_dc function within stb_image.h. When processing certain JPEG images, the function can experience a signed integer overflow, which is undefined behavior in C/C++. The issue was identified through fuzz testing with UndefinedBehaviorSanitizer (UBSAN), which detected multiple instances where arithmetic operations could result in values that cannot be represented in the target integer type (GitHub Issue).
The exploitation of this vulnerability can lead to a Denial of Service (DoS) condition through unspecified vectors. When triggered, the integer overflow can cause the application to crash or behave unpredictably, potentially affecting the stability and availability of systems using the affected library (MITRE CVE).
The vulnerability has been fixed in subsequent releases of stb_image.h. The fix includes additional checks for integer overflow conditions and proper handling of arithmetic operations. Various distributions have released security updates, including Debian (DLA-3305-1) and Fedora. Users are advised to update their packages to the latest versions that include these fixes (Debian LTS).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."