CVE-2022-36227

9.8 CRITICAL
Published: November 22, 2022 Modified: November 03, 2025

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."

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://bugs.gentoo.org/882521
Source: cve@mitre.org
Issue Tracking Patch Third Party Advisory
https://github.com/libarchive/libarchive/issues/1754
Source: cve@mitre.org
Issue Tracking Patch Third Party Advisory
https://security.gentoo.org/glsa/202309-14
Source: cve@mitre.org
Third Party Advisory
https://bugs.gentoo.org/882521
Source: af854a3a-2127-422b-91ae-364da2661108
Issue Tracking Patch Third Party Advisory
https://github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c#L215
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://github.com/libarchive/libarchive/issues/1754
Source: af854a3a-2127-422b-91ae-364da2661108
Issue Tracking Patch Third Party Advisory
https://lists.debian.org/debian-lts-announce/2023/01/msg00034.html
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://security.gentoo.org/glsa/202309-14
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory

13 reference(s) from NVD

Quick Stats

CVSS v3 Score
9.8 / 10.0
EPSS (Exploit Probability)
0.4%
62th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

libarchive debian splunk fedoraproject