Skip to content
Fencer Intel
medium 5.5

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

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 Fencer

Vendor 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 clutter
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 7 cogl, compat-libcogl12, compat-libcogl-pango12 Red Hat Enterprise Linux 8 cogl
    not 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

Sources

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.