CVE-2022-36227: libarchive - Null Pointer Dereference
- Cve: CVE-2022-36227
- Name: libarchive - Null Pointer Dereference
- Description: In libarchive before 3.6.2, the software does not check for an error after calling calloc function that can return with a NULL pointer if the function fails, which leads to a resultant NULL pointer dereference. NOTE: the discoverer cites this CWE-476 remark but third parties dispute the code-execution impact: "In rare circumstances, when NULL is equivalent to the 0x0 memory address and privileged code can access it, then writing or reading memory is possible, which may lead to code execution."
- Impact: Potential for application crash or code execution if NULL pointers are accessed by privileged code.
- Remediation: Update to version 3.6.2 or later, ensuring proper error handling after calloc calls.
- Vulnerability type: null_pointer_dereference
- Vulnerability impact: denial_of_service, remote_code_execution
- Requirement type: admin_privileges
- Requirements: Exploit requires privileged code to access NULL memory.
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.02682
- Epss percentile: 0.862
- Assignee: [email protected]
- Published at: 2022-11-22T02:15:11Z
- Age in days: 1463
- Modified at: 2026-10-08T21:17:48Z
- Patch available: yes
- References total: 7
- Products total: 4
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-36227
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-476 | NULL Pointer Dereference |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://bugs.gentoo.org/882521 | Issue Tracking, Patch, Third Party Advisory |
| https://github.com/libarchive/libarchive/issues/1754 | Issue Tracking, Patch, Third Party Advisory |
| https://github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c#L215 | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/01/msg00034.html | Third Party Advisory |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V67OO2UUQAUJS3IK4JZPF6F3LUCBU6IS/ | Mailing List, Third Party Advisory |
| https://security.gentoo.org/glsa/202309-14 | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2024/11/msg00007.html |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| libarchive:libarchive | >= 3.0.0, < 3.6.2 | /v1/products/libarchive/libarchive |
| debian:debian_linux | = 10.0 | /v1/products/debian/debian_linux |
| fedoraproject:fedora | = 37 | /v1/products/fedoraproject/fedora |
| splunk:universal_forwarder | = 9.1.0; >= 9.0.0, < 9.0.6; >= 8.2.0, < 8.2.12 | /v1/products/splunk/universal_forwarder |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| libarchive/libarchive | issues | yes | /v1/repositories/libarchive/libarchive |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports