{"id":"CVE-2022-36227","state":"PUBLISHED","title":"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 resul","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.\"","publishedAt":"2022-11-22T00:00:00.000Z","updatedAt":"2026-10-08T21:03:23.040Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://github.com/libarchive/libarchive/issues/1754","https://bugs.gentoo.org/882521","https://github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c#L215","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V67OO2UUQAUJS3IK4JZPF6F3LUCBU6IS/","https://lists.debian.org/debian-lts-announce/2023/01/msg00034.html","https://security.gentoo.org/glsa/202309-14","https://lists.debian.org/debian-lts-announce/2024/11/msg00007.html"],"weaknesses":[],"ingestedAt":"2026-10-29T19:50:21.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/36xxx/CVE-2022-36227.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-36227","state":"PUBLISHED","datePublished":"2022-11-22T00:00:00.000Z","dateUpdated":"2026-10-08T21:03:23.040Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2022-07-18T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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.\""}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://github.com/libarchive/libarchive/issues/1754"},{"url":"https://bugs.gentoo.org/882521"},{"url":"https://github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c#L215"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V67OO2UUQAUJS3IK4JZPF6F3LUCBU6IS/","name":"FEDORA-2022-e15be0091f","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00034.html","name":"[debian-lts-announce] 20230130 [SECURITY] [DLA 3294-1] libarchive security update","tags":["mailing-list"]},{"url":"https://security.gentoo.org/glsa/202309-14","name":"GLSA-202309-14","tags":["vendor-advisory"]}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"n/a"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2023-09-29T16:06:28.926Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/libarchive/libarchive/issues/1754","tags":["x_transferred"]},{"url":"https://bugs.gentoo.org/882521","tags":["x_transferred"]},{"url":"https://github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c#L215","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V67OO2UUQAUJS3IK4JZPF6F3LUCBU6IS/","name":"FEDORA-2022-e15be0091f","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00034.html","name":"[debian-lts-announce] 20230130 [SECURITY] [DLA 3294-1] libarchive security update","tags":["mailing-list","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202309-14","name":"GLSA-202309-14","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00007.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T21:46:29.036Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-36227","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-08T20:58:42.824013Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-08T21:03:23.040Z"}}]}}}