CVE-2022-28042
published 2022-04-15CVE-2022-28042: stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
PriorityP342high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
1.60%
73.0th percentile
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | libstb | < libstb 0.0~git20200713.b42009b+ds-1+deb11u1 (bullseye) | libstb 0.0~git20200713.b42009b+ds-1+deb11u1 (bullseye) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| nothings | stb_image.h | — | — |
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.8HIGH
vendor_redhat8.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
VulDB
stb 2.27 stb_image.h stbi__jpeg_huff_decode use after free (Issue 1289 / EUVD-2022-32528)
vuldb·2026-05-16·CVSS 8.8
CVE-2022-28042 [HIGH] stb 2.27 stb_image.h stbi__jpeg_huff_decode use after free (Issue 1289 / EUVD-2022-32528)
A vulnerability was found in stb 2.27. It has been classified as critical. This vulnerability affects the function stbi__jpeg_huff_decode of the file stb_image.h. Performing a manipulation results in use after free.
This vulnerability is known as CVE-2022-28042. Access to the local network is required for this attack. No exploit is available.
To fix this issue, it is recommended to deploy a patch.
GHSA
GHSA-mg9v-9rhj-95qm: stb_image
ghsa_unreviewed·2022-04-16
CVE-2022-28042 [HIGH] CWE-416 GHSA-mg9v-9rhj-95qm: stb_image
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
OSV
CVE-2022-28042: stb_image
osv·2022-04-15·CVSS 8.8
CVE-2022-28042 [HIGH] CVE-2022-28042: stb_image
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
Red Hat
stb: use-after-free in stbi__jpeg_huff_decode()
vendor_redhat·2022-02-17·CVSS 8.8
CVE-2022-28042 [HIGH] CWE-416 stb: use-after-free in stbi__jpeg_huff_decode()
stb: use-after-free in stbi__jpeg_huff_decode()
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
Statement: This flaw does not affect the versions of cogl shipped with Red Hat Enterprise Linux 7 or 8 because the affected code is not shipped in those packages. This flaw is out of support scope for Red Hat Enterprise Linux 6.
Package: clutter (Red Hat Enterprise Linux 6) - Out of support scope
Package: cogl (Red Hat Enterprise Linux 7) - Not affected
Package: compat-cogl114 (Red Hat Enterprise Linux 7) - Not affected
Package: cogl (Red Hat Enterprise Linux 8) - Not affected
Debian
CVE-2022-28042: libstb - stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the...
vendor_debian·2022·CVSS 8.8
CVE-2022-28042 [HIGH] CVE-2022-28042: libstb - stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the...
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
Scope: local
bookworm: open
bullseye: resolved (fixed in 0.0~git20200713.b42009b+ds-1+deb11u1)
forky: resolved (fixed in 0.0~git20230129.5736b15+ds-1)
sid: resolved (fixed in 0.0~git20230129.5736b15+ds-1)
trixie: resolved (fixed in 0.0~git20230129.5736b15+ds-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/nothings/stb/issues/1289https://github.com/nothings/stb/pull/1297https://lists.debian.org/debian-lts-announce/2023/01/msg00045.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5FXLM5XL77SNH4IPTSXOQD7XL4E2EMIN/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I4HXIWU5HBOADXZVMREHT4YTO5WVYXEQ/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MMBCMJGAZRQS55SNECUWZSC5URVLEZ5R/https://github.com/nothings/stb/issues/1289https://github.com/nothings/stb/pull/1297https://lists.debian.org/debian-lts-announce/2023/01/msg00045.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5FXLM5XL77SNH4IPTSXOQD7XL4E2EMIN/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I4HXIWU5HBOADXZVMREHT4YTO5WVYXEQ/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MMBCMJGAZRQS55SNECUWZSC5URVLEZ5R/
2022-04-15
Published