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
| Id | Name |
|---|---|
| CWE-416 | Use After Free |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/nothings/stb/issues/1289 | nvd | 2022-04-15 |
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| 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
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| nothings/stb | issues, pull | yes | /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