Critical severity · published Nov 22, 2022
CVE-2022-36227
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…
9.8
CVSS
2.4%
EPSS
No
On KEV
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."
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.4% · higher than 84% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DL
Debian Linux · Debian
10.0 · source: NVD
FE
Fedora · Fedoraproject
37 · source: NVD
LI
Libarchive · Libarchive
3.0.0 before 3.6.2 · source: NVD
UF
Universal Forwarder · Splunk
8.2.0 before 8.2.12; 9.0.0 before 9.0.6; 9.1.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-36227
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-36227
github.com
https://github.com/libarchive/libarchive/issues/1754
bugs.gentoo.org
https://bugs.gentoo.org/882521
github.com
https://github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c#L215
vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V67OO2UUQAUJS3IK4JZPF6F3LUCBU6IS/
mailing-list
https://lists.debian.org/debian-lts-announce/2023/01/msg00034.html
vendor-advisory
https://security.gentoo.org/glsa/202309-14
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-24061
GNU InetUtils Argument Injection Vulnerability
