CVE-2021-42715 json
An issue was discovered in stb stb_image.h 1.33 through 2.27.
published 5y ago modified 4mo ago also EUVD-2021-29675
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 70%
- public exploits
- 0
- none known
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.
Patch / fix
- libstb Debian 14, Debian 13 0.0~git20230129.5736b15+ds-1
debian advisories DEBIAN-CVE-2021-42715
- zxing-cpp SLE Workstation Extension 12 SP5, SLE Software Development Kit 12 SP5 1.2.0-8.6.1
- zxing-cpp SLE Workstation Extension 15 SP3, SLE Module for Package Hub 15 SP3 1.2.0-9.7.1
suse advisories SUSE-SU-2022:0163-1SUSE-SU-2022:0157-1
- zxing-cpp openSUSE Leap 15.3 1.2.0-9.7.1
opensuse advisories openSUSE-SU-2022:0157-1
- github.com/nothings/stb#1223 pull request
Is CVE-2021-42715 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-42715 updated cvss 6.2
stb: DoS in stb_image HDR loader via a crafted file
-
Red Hat Enterprise Linux 6 clutteraffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 cogl, compat-libcogl12, compat-libcogl-pango12 Red Hat Enterprise Linux 8 coglnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.30% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-835 Loop with Unreachable Exit Condition
References
-
github.com
/nothings/stb/pull/1223
third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/
vendor-advisory
-
github.com
/nothings/stb/issues/1224
issue-tracking, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2023/01/msg00045.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2021-42715
- NVD CVE-2021-42715
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.