CVE-2023-45662
Linux Debian vulnerability analysis and mitigation

Overview

stb_image is a single file MIT licensed library for processing images. The vulnerability (CVE-2023-45662) was discovered in version 2.28, affecting the image vertical flipping functionality. 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, which can lead to security issues (GitHub Advisory).

Technical details

The vulnerability occurs in the stbi__vertical_flip function where 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. The issue has been assigned a CVSS v3.1 Base Score of 8.1 HIGH (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H) by NVD, while GitHub assessed it as 6.5 MEDIUM (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L) (NVD).

Impact

This vulnerability may be used to leak internal memory allocation information through out-of-bounds read operations. The issue affects the image processing capabilities of applications using the stb_image library, potentially exposing sensitive information from memory (GitHub Advisory).

Exploitability

The vulnerability can be triggered when processing specially crafted image files with vertical flipping enabled. The exploitation requires the attacker to provide a malicious image file and have the application process it with specific settings (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in newer versions of the library. Fedora has released security updates for versions 37, 38, and 39 that address this vulnerability along with several other security issues. Users are advised to update to the patched version 0^20231011gitbeebb24-12 (Fedora Update).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74733NONEN/A
  • Linux Debian logoLinux Debian
  • linux
NoYesAug 22, 2026
CVE-2026-74732NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-firmware
NoYesAug 22, 2026
CVE-2026-74731NONEN/A
  • Linux Debian logoLinux Debian
  • linux
NoNoAug 22, 2026
CVE-2026-74730NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 22, 2026
CVE-2026-74729NONEN/A
  • Linux Debian logoLinux Debian
  • linux
NoYesAug 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management