CVE-2022-28042
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function...
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
- Record
CVE-2022-28042- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-416
- Updated
- 2026-11-02
CVE List No score
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
- Record
CVE-2022-28042- Updated
- 2026-11-02
EUVDEUVD-2022-32528 No score
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
- Record
EUVD-2022-32528- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-mg9v-9rhj-95qm
8.8
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function...
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
- Record
GHSA-mg9v-9rhj-95qm- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-416
- Updated
- 2026-11-02
OSV
8.8
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
- Record
CVE-2022-28042- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-28042
8.8
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
- Record
DEBIAN-CVE-2022-28042- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVUBUNTU-CVE-2022-28042
8.8
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
- Record
UBUNTU-CVE-2022-28042- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libstbDebian:12 |
All versions, plus listed versions 0.0~git20220908.8b5f1f3+ds-10.0~git20230129.5736b15+ds-10.0~git20230129.5736b15+ds-1.10.0~git20230129.5736b15+ds-1.1~exp10.0~git20230129.5736b15+ds-1.20.0~git20240715.f7f20f39fe4f+ds-10.0~git20241109.5c20573+ds-10.0~git20250907.fede005+ds-1 |
None known |
libstbDebian:13 |
before 0.0~git20230129.5736b15+ds-1 | 0.0~git20230129.5736b15+ds-1 |
libstbDebian:14 |
before 0.0~git20230129.5736b15+ds-1 | 0.0~git20230129.5736b15+ds-1 |
libstbDebian:10 |
before 0.0~git20180212.15.e6afb9c-1+deb10u1, plus listed versions 0.0~git20180212.15.e6afb9c-1 |
0.0~git20180212.15.e6afb9c-1+deb10u1 |
libstbDebian:11 |
before 0.0~git20200713.b42009b+ds-1+deb11u1, plus listed versions 0.0~git20200713.b42009b+ds-1 |
0.0~git20200713.b42009b+ds-1+deb11u1 |
libstbUbuntu:20.04:LTS |
All versions, plus listed versions 0.0~git20190817.1.052dce1-1 |
None known |
libstbUbuntu:22.04:LTS |
All versions, plus listed versions 0.0~git20200713.b42009b+ds-10.0~git20210910.af1a5bc+ds-1 |
None known |
libstbUbuntu:24.04:LTS |
All versions, plus listed versions 0.0~git20230129.5736b15+ds-10.0~git20230129.5736b15+ds-1.10.0~git20230129.5736b15+ds-1.2 |
None known |
libstbUbuntu:25.10 |
All versions, plus listed versions 0.0~git20240715.f7f20f39fe4f+ds-10.0~git20241109.5c20573+ds-1 |
None known |
libstbUbuntu:26.10 |
All versions, plus listed versions 0.0~git20250907.fede005+ds-1 |
None known |
libstbUbuntu:26.04:LTS |
All versions, plus listed versions 0.0~git20241109.5c20573+ds-10.0~git20250907.fede005+ds-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-28042 is a high vulnerability (CVSS 8.8) in Debian Linux, published April 15, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.61%, the 75th percentile. Fixed in libstb 0.0~git20230129.5736b15+ds-1.
References
github.com/nothings/stb/pull/1297
github.com/nothings/stb/issues/1289
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I4HXIWU5HBOADXZVMREHT4YTO5WVYXEQ
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5FXLM5XL77SNH4IPTSXOQD7XL4E2EMIN
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MMBCMJGAZRQS55SNECUWZSC5URVLEZ5R
lists.debian.org/debian-lts-announce/2023/01/msg00045.html
Show 8 moreShow less
nvd.nist.gov/vuln/detail/CVE-2022-28042
lists.fedoraproject.org/archives/list/[email protected]/message/5FXLM5XL77SNH4IPTSXOQD7XL4E2EMIN
lists.fedoraproject.org/archives/list/[email protected]/message/I4HXIWU5HBOADXZVMREHT4YTO5WVYXEQ
lists.fedoraproject.org/archives/list/[email protected]/message/MMBCMJGAZRQS55SNECUWZSC5URVLEZ5R
github.com/advisories/GHSA-mg9v-9rhj-95qm
security-tracker.debian.org/tracker/CVE-2022-28042
ubuntu.com/security/CVE-2022-28042
cve.org/CVERecord?id=CVE-2022-28042