All reports
Medium

stb: buffer overflow in stbi__extend_receive() in stb_image.h via a crafted JPEG file

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-28021

Probability of exploitation in the next 30 days: 1.43%

FIRST EPSS · 2026-11-24

Description

Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a crafted JPEG file.

An out-of-bounds read flaw was found in stb. This flaw allows an attacker who can submit a specially crafted file to an application using stb's JPEG decoder to cause a denial of service or information disclosure, depending on how the application uses the vulnerable stb functionality. The highest threat from this vulnerability is to confidentiality and system availability.