CVE-2021-31566: An improper link resolution flaw can occur while extracting an archive leading to changing modes, times, access control lists, and flags of…
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.39% (FIRST EPSS).
- Someone with local access to the system can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- Fixed version: bsdtar (AlmaLinux:8) 3.3.3-3.el8_5; libarchive (AlmaLinux:8) 3.3.3-3.el8_5; libarchive-devel (AlmaLinux:8) 3.3.3-3.el8_5.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to bsdtar (AlmaLinux:8) 3.3.3-3.el8_5; libarchive (AlmaLinux:8) 3.3.3-3.el8_5; libarchive-devel (AlmaLinux:8) 3.3.3-3.el8_5 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
An improper link resolution flaw can occur while extracting an archive leading to changing modes, times, access control lists, and flags of a file outside of the archive. An attacker may provide a malicious archive to a victim user, who would trigger this flaw when trying to extract the archive. A local attacker may use this flaw to gain more privileges in a system.
- Published
- Aug 23, 2022
- Updated
- Nov 2, 2026
- EPSS
- 0.3% · 33th percentile
- CWE
- CWE-59
Report tools
Action score
31
Low priority for now.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.3%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| libarchive | libarchive | cpe:2.3:a:libarchive:libarchive |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| redhat | enterprise linux | cpe:2.3:o:redhat:enterprise_linux |
| redhat | enterprise linux eus | cpe:2.3:o:redhat:enterprise_linux_eus |
| redhat | enterprise linux for ibm z systems | cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems |
| redhat | enterprise linux for ibm z systems eus | cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems_eus |
| redhat | enterprise linux for power little endian | cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian |
| redhat | enterprise linux for power little endian eus | cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian_eus |
| redhat | enterprise linux server aus | cpe:2.3:o:redhat:enterprise_linux_server_aus |
| redhat | enterprise linux server for power little endian update services for sap solutions | cpe:2.3:o:redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions |
| redhat | enterprise linux server tus | cpe:2.3:o:redhat:enterprise_linux_server_tus |
| redhat | codeready linux builder | cpe:2.3:a:redhat:codeready_linux_builder |
and 2 more
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
n/a libarchive
- Fixed in libarchive 3.5.2affected
Affected versions · NVD (16)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux10.0
- fedoraproject fedora35
- libarchive libarchivebefore 3.5.2
- redhat codeready linux builderall versions
- redhat enterprise linux8.0
- redhat enterprise linux eus8.6
- redhat enterprise linux for ibm z systems8.0
- redhat enterprise linux for ibm z systems eus8.6
- redhat enterprise linux for power little endian8.0
- redhat enterprise linux for power little endian eus8.6
- redhat enterprise linux server aus8.6
- redhat enterprise linux server for power little endian update services for sap solutions8.6
- redhat enterprise linux server tus8.6
- splunk universal forwarder8.2.0 and later · before 8.2.12
- splunk universal forwarder9.0.0 and later · before 9.0.6
- splunk universal forwarder9.1.0
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | bsdtar | before 3.3.3-3.el8_5 | 3.3.3-3.el8_5 |
| AlmaLinux:8 | libarchive | before 3.3.3-3.el8_5 | 3.3.3-3.el8_5 |
| AlmaLinux:8 | libarchive-devel | before 3.3.3-3.el8_5 | 3.3.3-3.el8_5 |
| Alpine:v3.13 | libarchive | before 3.5.3-r0 | 3.5.3-r0 |
| Debian:10 | libarchive | before 3.3.3-4+deb10u2 | 3.3.3-4+deb10u2 |
| Debian:12 | libarchive | before 3.5.2-1 | 3.5.2-1 |
| Debian:9 | libarchive | before 3.2.2-2+deb9u3 | 3.2.2-2+deb9u3 |
| openSUSE:Leap 15.3 | libarchive | before 3.4.2-150200.4.12.1 | 3.4.2-150200.4.12.1 |
| openSUSE:Leap 15.4 | libarchive | before 3.5.1-150400.3.9.1 | 3.5.1-150400.3.9.1 |
| openSUSE:Tumbleweed | bsdtar | before 3.6.0-1.1 | 3.6.0-1.1 |
| Red Hat:enterprise_linux:8::baseos | bsdcat-debuginfo | before 0:3.3.3-3.el8_5 | 0:3.3.3-3.el8_5 |
| Red Hat:enterprise_linux:8::baseos | bsdcpio-debuginfo | before 0:3.3.3-3.el8_5 | 0:3.3.3-3.el8_5 |
| Red Hat:enterprise_linux:8::baseos | bsdtar | before 0:3.3.3-3.el8_5 | 0:3.3.3-3.el8_5 |
| Red Hat:enterprise_linux:8::baseos | bsdtar-debuginfo | before 0:3.3.3-3.el8_5 | 0:3.3.3-3.el8_5 |
| Red Hat:enterprise_linux:8::baseos | libarchive | before 0:3.3.3-3.el8_5 | 0:3.3.3-3.el8_5 |
| Red Hat:enterprise_linux:8::baseos | libarchive-debuginfo | before 0:3.3.3-3.el8_5 | 0:3.3.3-3.el8_5 |
| Red Hat:enterprise_linux:8::baseos | libarchive-debugsource | before 0:3.3.3-3.el8_5 | 0:3.3.3-3.el8_5 |
| Red Hat:enterprise_linux:8::crb | libarchive-devel | before 0:3.3.3-3.el8_5 | 0:3.3.3-3.el8_5 |
| Rocky Linux:8 | libarchive | before 0:3.3.3-3.el8_5 | 0:3.3.3-3.el8_5 |
| SUSE:Linux Enterprise Micro 5.3 | libarchive | before 3.5.1-150400.3.9.1 | 3.5.1-150400.3.9.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP3 | libarchive | before 3.4.2-150200.4.12.1 | 3.4.2-150200.4.12.1 |
Same product
libarchive: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-26256Libarchive Remote Code Execution Vulnerability57Plan
- CVE-2022-36227In 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…40Plan
- CVE-2016-1541Heap-based buffer overflow in the zip_read_mac_metadata function in archive_read_support_format_zip.c in libarchive before 3.2.0 allows…38Monitor
Published before and after this one in the same product
- ← EarlierCVE-2022-26280Mar 28, 2022 · Libarchive v3.6.0 was discovered to contain an out-of-bounds read via the component zipx_lzma_alone_init.27Monitor
- ← EarlierCVE-2021-23177Aug 23, 2022 · An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the target of the link.31Monitor
- Later →CVE-2023-30571May 29, 2023 · Libarchive through 3.6.2 can cause directories to have world-writable permissions.21Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:bsdtar | 3.3.3-3.el8_5 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libarchive | 3.3.3-3.el8_5 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libarchive-devel | 3.3.3-3.el8_5 · AlmaLinux:8 | Package registry (OSV) |
| alpine:libarchive | 3.5.3-r0 · Alpine:v3.13 | Package registry (OSV) |
| debian:libarchive | 3.5.2-1 · Debian:12 | Package registry (OSV) |
| opensuse:bsdtar | 3.6.0-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:libarchive | 3.4.2-150200.4.12.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| red hat:bsdcat-debuginfo | 0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:bsdcpio-debuginfo | 0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:bsdtar | 0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:bsdtar-debuginfo | 0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:libarchive | 0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:libarchive-debuginfo | 0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:libarchive-debugsource | 0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:libarchive-devel | 0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::crb | Package registry (OSV) |
| rocky linux:libarchive | 0:3.3.3-3.el8_5 · Rocky Linux:8 | Package registry (OSV) |
| suse:libarchive | 3.4.2-150200.4.12.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-22-0247 · Mar 24, 2022(RedHat Güvenlik Güncellemesi)
Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-59 · Improper Link Resolution Before File Access ('Link Following')CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
- Obfuscated Files or Information: HTML SmugglingT1027.006
- Obfuscated Files or Information: Embedded PayloadsT1027.009
- Boot or Logon Autostart Execution:Shortcut ModificationT1547.009
- Hide Artifacts: Resource ForkingT1564.009
- Hijack Execution Flow: Executable Installer File Permissions WeaknessT1574.005
- Hijack Execution Flow: Services File Permissions WeaknessT1574.010
Change log (2)
- SSVC exploitation— → none
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (4 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.