An issue was discovered in stb stb_image.h 1.33 through 2.27.
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Will not fix Red Hat: no fix planned
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-835.
Summary
An issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader parsed truncated end-of-file RLE scanlines as an infinite sequence of zero-length runs. An attacker could potentially have caused denial of service in applications using stb_image by submitting crafted HDR files.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:nothings:stb_image.h:*:*:*:*:*:*:*:* | 1.33 – 2.27 | Vulnerable | nothings |
| cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* | 33 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 34 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
- cpe:2.3:a:nothings:stb_image.h:*:*:*:*:*:*:*:* Versions 1.33 – 2.27 Vulnerable ·nothings
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* Versions 33 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
Not affected: 2 products
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2021-42715
- 2026-10-03 Alias added: GHSA-x76g-p4rm-4xch
References
Advisory 12
- https://github.com/nothings/stb/issues/1224
- https://github.com/nothings/stb/pull/1223
- FEDORA-2021-001f25d986
- FEDORA-2021-d1446cd1ac
- FEDORA-2021-f8ba4a690e
- FEDORA-2021-0511a38484
- FEDORA-2021-082bea5b34
- FEDORA-2021-3fc69d203c
- FEDORA-2021-8ea648186c
- FEDORA-2021-16d848834d
- FEDORA-2022-832689aa6b
- [debian-lts-announce] 20230131 [SECURITY] [DLA 3305-1] libstb security update
Sources
- CVE-2021-42715 · CVE Program
- CVE-2021-42715 · NVD
- FIRST EPSS
- GHSA-x76g-p4rm-4xch · GitHub Advisory Database · CC BY 4.0
- CVE-2021-42715 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences