CVE-2021-42716
Last modified
CVE-2021-42716 is a high-severity vulnerability rated 7.1/10 on the CVSS scale. 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. EPSS estimates a 1.36% chance of exploitation in the next 30 days.
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:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Nothings | Stb Image.H | 2.27 |
| Fedoraproject | Fedora | 33 |
| Fedoraproject | Fedora | 34 |
| Fedoraproject | Fedora | 35 |
References
- https://github.com/nothings/stb/issues/1166Exploit, Issue Tracking, Third Party Advisory
- https://github.com/nothings/stb/issues/1225Exploit, Issue Tracking, Third Party Advisory
- https://github.com/nothings/stb/pull/1223Third Party Advisory
- https://github.com/nothings/stb/issues/1166Exploit, Issue Tracking, Third Party Advisory
- https://github.com/nothings/stb/issues/1225Exploit, Issue Tracking, Third Party Advisory
- https://github.com/nothings/stb/pull/1223Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-42716?
How severe is CVE-2021-42716?
How do I fix CVE-2021-42716?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-4271A vulnerability was found in panicsteve w2wiki. It has been …6.1
- CVE-2021-42711Barracuda Network Access Client before 5.2.2 creates a Tempo…7.8
- CVE-2021-42712Splashtop Streamer through 3.4.8.3 creates a Temporary File …7.8
- CVE-2021-42713Splashtop Remote Client (Personal Edition) through 3.4.6.1 c…7.8
- CVE-2021-42714Splashtop Remote Client (Business Edition) through 3.4.8.3 c…7.8
- CVE-2021-42715An issue was discovered in stb stb_image.h 1.33 through 2.27…5.5
- CVE-2021-42717ModSecurity 3.x through 3.0.5 mishandles excessively nested …7.5
- CVE-2021-42718Information Disclosure in API in Replicated Replicated Class…4.9
- CVE-2021-42719Adobe Bridge version 11.1.1 (and earlier) is affected by an …7.8
- CVE-2021-4272A vulnerability classified as problematic has been found in …6.1
- CVE-2021-42720Adobe Bridge version 11.1.1 (and earlier) is affected by an …7.8
- CVE-2021-42721Acrobat Bridge versions 11.1.1 and earlier are affected by a…7.8
Are you affected by CVE-2021-42716?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
