cbcvebase.
CVE-2021-42716
published 2021-10-21

CVE-2021-42716: An issue was discovered in stb stb_image.h 2.27. The PNM loader incorrectly interpreted 16-bit PGM files as 8-bit when converting to RGBA, leading to a buffer…

PriorityP431high7.1CVSS 3.1
AVLACLPRNUIRSUCHINAH
EPSS
1.36%
68.6th percentile
An issue was discovered in stb stb_image.h 2.27. The PNM loader incorrectly interpreted 16-bit PGM files as 8-bit when converting to RGBA, leading to a buffer overflow when later reinterpreting the result as a 16-bit buffer. An attacker could potentially have crashed a service using stb_image, or read up to 1024 bytes of non-consecutive heap data without control over the read location.

Affected

5 ranges
VendorProductVersion rangeFixed in
debianlibstb< libstb 0.0~git20230129.5736b15+ds-1 (forky)libstb 0.0~git20230129.5736b15+ds-1 (forky)
fedoraprojectfedora
fedoraprojectfedora
fedoraprojectfedora
nothingsstb_image.h

CVSS provenance

nvdv3.17.1HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
nvdv2.05.8MEDIUMAV:N/AC:M/Au:N/C:P/I:N/A:P
osv7.1HIGH
vendor_debian7.1HIGH
vendor_redhat7.1HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.