SecurityContext

CVE-2022-28042: stb_image.h - Use After Free

  • Cve: CVE-2022-28042
  • Name: stb_image.h - Use After Free
  • Description: stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
  • Impact: Attackers can cause crashes or execute arbitrary code through crafted JPEG files, leading to potential system compromise.
  • Remediation: Update to the latest version of stb_image.h or apply patches addressing the use-after-free vulnerability.
  • Vulnerability type: use_after_free
  • Vulnerability impact: remote_code_execution, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.0161
  • Epss percentile: 0.76567
  • Assignee: [email protected]
  • Published at: 2022-04-15T14:15:07Z
  • Age in days: 1684
  • Modified at: 2026-06-17T04:37:54Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 6
  • Products total: 3
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-28042
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-416Use After Free

Public exploits

UrlSourceAdded date
https://github.com/nothings/stb/issues/1289nvd2022-04-15

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/nothings/stb/pull/1297Patch, Third Party Advisory
https://github.com/nothings/stb/issues/1289Exploit, Issue Tracking, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2023/01/msg00045.htmlMailing List, Third Party Advisory
https://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/

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
debian:debian_linux= 10.0/v1/products/debian/debian_linux
fedoraproject:fedora= 36, = 35, = 34/v1/products/fedoraproject/fedora
nothings:stb_image.h= 2.27/v1/products/nothings/stb_image.h

Projects

RepositoryLink kindsIndexedUrl
nothings/stbissues, pullyes/v1/repositories/nothings/stb

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-04-15
  • Remote: yes
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports