# 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 t…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.68%, higher than 86% of CVEs (2026-12-01)
- Published: 2022-11-22T00:00:00.000Z
- Modified: 2026-10-08T21:17:48.930Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- libarchive libarchive: from 3.0.0 before 3.6.2
- debian debian_linux: 10.0
- fedoraproject fedora: 37
- splunk universal_forwarder: from 8.2.0 before 8.2.12; from 9.0.0 before 9.0.6; 9.1.0

## References

- <https://github.com/libarchive/libarchive/issues/1754> (issue-tracking, patch, third-party-advisory)
- <https://bugs.gentoo.org/882521> (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.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V67OO2UUQAUJS3IK4JZPF6F3LUCBU6IS/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00034.html> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202309-14> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00007.html>

## Sources

- CVE List: [CVE-2022-36227](https://www.cve.org/CVERecord?id=CVE-2022-36227), CVE Terms of Use, modified 2026-10-08
- NVD: [CVE-2022-36227](https://nvd.nist.gov/vuln/detail/CVE-2022-36227), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2022-36227 · Whole record: https://cve.day/CVE-2022-36227.json · Rebuilt by cve.day 2026-11-25T22:58:16.784Z
