CVE-2021-42716 Details
Description
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-120 | Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nothings stb image.h | 2.27 |
CPE
Remediation
| |
| fedoraproject fedora | 33 34 35 |
CPE
Remediation
| |
Change History
14 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| May 13, 2022 | Modified Analysis | [email protected] |
| Apr 29, 2022 | CVE Modified | [email protected] |
| Nov 26, 2021 | Modified Analysis | [email protected] |
| Nov 17, 2021 | CVE Modified | [email protected] |
| Nov 10, 2021 | CVE Modified | [email protected] |
| Nov 3, 2021 | CVE Modified | [email protected] |
| Nov 2, 2021 | CVE Modified | [email protected] |
| Nov 1, 2021 | CVE Modified | [email protected] |
| Oct 31, 2021 | CVE Modified | [email protected] |
| Oct 27, 2021 | Initial Analysis | [email protected] |