# CVE-2021-42715: An issue was discovered in stb stbimage.h 1.33 through 2.27.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.30%, higher than 71% of CVEs (2026-12-01)
- Published: 2021-10-21T00:00:00.000Z
- Modified: 2026-06-17T04:09:59.927Z
- Weaknesses: CWE-835
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- nothings stb_image.h: from 1.33 up to 2.27
- fedoraproject fedora: 33; 34; 35
- debian debian_linux: 10.0

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/nothings/stb/issues/1224> (issue-tracking, third-party-advisory)
- <https://github.com/nothings/stb/pull/1223> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00045.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2021-42715](https://www.cve.org/CVERecord?id=CVE-2021-42715), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-42715](https://nvd.nist.gov/vuln/detail/CVE-2021-42715), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42715 · Whole record: https://cve.day/CVE-2021-42715.json · Rebuilt by cve.day 2026-11-25T22:58:04.719Z
