In libarchive before 3.6.2, the software does not check for an error after calling calloc…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 7 fixed, 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-476.
Summary
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."
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:* | 3.0.0 to before 3.6.2 | Vulnerable | libarchive |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
| cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 37 | Vulnerable | Fedoraproject |
| cpe:2.3:a:splunk:universal_forwarder:*:*:*:*:*:*:*:* | 8.2.0 to before 8.2.12; 9.0.0 to before 9.0.6 | Vulnerable | Splunk |
| cpe:2.3:a:splunk:universal_forwarder:9.1.0:*:*:*:*:*:*:* | 9.1.0 | Vulnerable | Splunk |
- cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:* Versions 3.0.0 to before 3.6.2 Vulnerable ·libarchive
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* Versions 37 Vulnerable ·Fedoraproject
- cpe:2.3:a:splunk:universal_forwarder:*:*:*:*:*:*:*:* Versions 8.2.0 to before 8.2.12; 9.0.0 to before 9.0.6 Vulnerable ·Splunk
- cpe:2.3:a:splunk:universal_forwarder:9.1.0:*:*:*:*:*:*:* Versions 9.1.0 Vulnerable ·Splunk
Remediation
Red Hat 3 advisories
- RHSA-2024:0146 Released 2024-01-10 · Red Hat rating Lowlibarchive security update
- Red Hat CodeReady Linux Builder EUS (v.8.6) libarchive-devel-3.3.3-4.el8_6
- Red Hat Enterprise Linux BaseOS EUS (v.8.6) bsdtar-3.3.3-4.el8_6, libarchive-3.3.3-4.el8_6
- RHSA-2023:3018 Released 2023-05-16 · Red Hat rating Lowlibarchive security update
- Red Hat Enterprise Linux BaseOS (v. 8) bsdtar-3.3.3-5.el8, libarchive-3.3.3-5.el8
- Red Hat Enterprise Linux CRB (v. 8) libarchive-devel-3.3.3-5.el8
- RHSA-2023:2532 Released 2023-05-09 · Red Hat rating Lowlibarchive security update
- Red Hat Enterprise Linux AppStream (v. 9) bsdtar-3.5.3-4.el9
- Red Hat Enterprise Linux BaseOS (v. 9) libarchive-3.5.3-4.el9
- Red Hat Enterprise Linux CRB (v. 9) libarchive-devel-3.5.3-4.el9
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat CodeReady Linux Builder EUS (v.8.6) | Fixed | RHSA-2024:0146 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2023:2532 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2023:3018 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2023:2532 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.6) | Fixed | RHSA-2024:0146 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2023:3018 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2023:2532 |
Timeline
- 2026-10-02 Threatist record created from CVE-2022-36227
- 2026-10-03 Alias added: GHSA-gpgf-w78r-4pvj
- 2026-10-08 CISA SSVC decision points changed
References
Sources
- CVE-2022-36227 · CVE Program
- CVE-2022-36227 · NVD
- FIRST EPSS
- GHSA-gpgf-w78r-4pvj · GitHub Advisory Database · CC BY 4.0
- CVE-2022-36227 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences