CVE-2022-36227
Reported by mitre · Published November 22, 2022
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."
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libarchive | Chainguard | 3.6.1-r2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| chainguard | libarchive | 0 |
| n/a | n/a | * |
| amazon:2023 | bsdcpio | 0 |
| amazon:2023 | bsdcat | 0 |
| amazon:2 | libarchive-devel | 0 |
| amazon:2 | bsdcpio | 0 |
| amazon:2023 | bsdtar | 0 |
| ConanCenter | libarchive | 3.0.0 |
| alpine | libarchive | 0, 0, 0 |
| amazon:2 | libarchive | 0 |
| amazon:2023 | libarchive | 0 |
| amazon:2023 | libarchive-devel | 0 |
| amazon:2 | bsdtar | 0 |
| wolfi | libarchive | 0 |
Timeline
- Nov 21, 2022 CVE Published
- Nov 22, 2022 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (66 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (63 in total, the first dated here)
- Jun 20, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-36227
vulnetix vdb fixes CVE-2022-36227
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-36227/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-e15be0091f vendor-advisory
- [debian-lts-announce] 20230130 [SECURITY] [DLA 3294-1] libarchive security update mailing-list
- GLSA-202309-14 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-36227 advisory
- https://lists.debian.org/debian-lts-announce/2024/11/msg00007.html url