# JLSEC-2025-237: In libarchive before 3.6.2, the software does not check for an error after calling calloc function...

- Severity: Critical 9.8 (CVSS:3.1, scored by Julia Security Advisories) `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
- Published: 2025-11-25T22:03:17.636Z
- Modified: 2026-07-23T22:30:22.768Z
- Related: CVE-2022-36227

## 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 Julia Security Advisories.)

## Affected

- LibArchive_jll (Julia): before 3.7.4+0

## References

- <https://bugs.gentoo.org/882521> (web)
- <https://github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c#L215> (web)
- <https://github.com/libarchive/libarchive/issues/1754> (web)
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00034.html> (web)
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00007.html> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V67OO2UUQAUJS3IK4JZPF6F3LUCBU6IS/> (web)
- <https://security.gentoo.org/glsa/202309-14> (web)

## Sources

- Julia Security Advisories: [JLSEC-2025-237](https://osv.dev/vulnerability/JLSEC-2025-237), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/JLSEC-2025-237 · Whole record: https://cve.day/JLSEC-2025-237.json · Rebuilt by cve.day 2026-11-25T22:56:25.778Z
