CVE-2021-42715: An issue was discovered in stb stb_image.h 1.33 through 2.27.
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 1.3% (FIRST EPSS); higher than 70.9% of all records.
- Someone with local access to the system can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- Fixed version: libstb (Debian:10) 0.0~git20180212.15.e6afb9c-1+deb10u1; libstb (Debian:11) 0.0~git20200713.b42009b+ds-1+deb11u1; libstb (Debian:13) 0.0~git20230129.5736b15+ds-1.
Low priority for now. Upgrade to libstb (Debian:10) 0.0~git20180212.15.e6afb9c-1+deb10u1; libstb (Debian:11) 0.0~git20200713.b42009b+ds-1+deb11u1; libstb (Debian:13) 0.0~git20230129.5736b15+ds-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Oct 21, 2021
- Updated
- Jun 17, 2026
- EPSS
- 1.3% · 70th percentile
- CWE
- CWE-835
Report tools
Action score
22
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.3%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| nothings | stb image.h | cpe:2.3:a:nothings:stb_image.h |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux10.0
- fedoraproject fedora33
- fedoraproject fedora34
- fedoraproject fedora35
- nothings stb image.h1.33 and later · up to 2.27 inclusive
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:10 | libstb | before 0.0~git20180212.15.e6afb9c-1+deb10u1 | 0.0~git20180212.15.e6afb9c-1+deb10u1 |
| Debian:11 | libstb | before 0.0~git20200713.b42009b+ds-1+deb11u1 | 0.0~git20200713.b42009b+ds-1+deb11u1 |
| Debian:12 | libstb | from 0 | — |
| Debian:13 | libstb | before 0.0~git20230129.5736b15+ds-1 | 0.0~git20230129.5736b15+ds-1 |
| openSUSE:Leap 15.3 | zxing-cpp | before 1.2.0-9.7.1 | 1.2.0-9.7.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP3 | zxing-cpp | before 1.2.0-9.7.1 | 1.2.0-9.7.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | zxing-cpp | before 1.2.0-8.6.1 | 1.2.0-8.6.1 |
Same product
nothings: all recordsOther highest-scoring records for the same primary product.
- CVE-2023-45666Possible double-free or memory leak in stbi__load_gif_main in stb_image39Monitor
- CVE-2023-45664Double-free in stbi__load_gif_main_outofmem in stb_image35Monitor
- CVE-2022-28042stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.35Monitor
Published before and after this one in the same product
- ← EarlierCVE-2019-19777Dec 12, 2019 · stb_image.h (aka the stb image loader) 2.23, as used in libsixel and other products, has a heap-based buffer over-read in stbi__load_main.35Monitor
- ← EarlierCVE-2019-20056Dec 29, 2019 · stb_image.h (aka the stb image loader) 2.23, as used in libsixel and other products, has an assertion failure in stbi__shiftsigned.26Monitor
- Later →CVE-2021-42716Oct 21, 2021 · An issue was discovered in stb stb_image.h 2.27.28Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:libstb | 0.0~git20230129.5736b15+ds-1 · Debian:13 | Package registry (OSV) |
| opensuse:zxing-cpp | 1.2.0-9.7.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| suse:zxing-cpp | 1.2.0-9.7.1 · SUSE:Linux Enterprise Module for Package Hub 15 SP3 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-835 · Loop with Unreachable Exit Condition ('Infinite Loop')CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (11 more)Show less
- github.com/nothings/stb/pull/1223
- lists.debian.org/debian-lts-announce/2023/01/msg00045.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.