Skip to content
Noroxi
NVD / CVE Program· CNA redhat

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…

HighCVSS 7.8 · v3.1—No exploit Fix available

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

Report tools

JSON

Action score

31

Monitor

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.

Follow CVE-2021-31566

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi 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 help

Affected 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.

VendorProduct
libarchivelibarchive
fedoraprojectfedora
redhatenterprise linux
redhatenterprise linux eus
redhatenterprise linux for ibm z systems
redhatenterprise linux for ibm z systems eus
redhatenterprise linux for power little endian
redhatenterprise linux for power little endian eus
redhatenterprise linux server aus
redhatenterprise linux server for power little endian update services for sap solutions
redhatenterprise linux server tus
redhatcodeready 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

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8bsdtarbefore 3.3.3-3.el8_53.3.3-3.el8_5
AlmaLinux:8libarchivebefore 3.3.3-3.el8_53.3.3-3.el8_5
AlmaLinux:8libarchive-develbefore 3.3.3-3.el8_53.3.3-3.el8_5
Alpine:v3.13libarchivebefore 3.5.3-r03.5.3-r0
Debian:10libarchivebefore 3.3.3-4+deb10u23.3.3-4+deb10u2
Debian:12libarchivebefore 3.5.2-13.5.2-1
Debian:9libarchivebefore 3.2.2-2+deb9u33.2.2-2+deb9u3
openSUSE:Leap 15.3libarchivebefore 3.4.2-150200.4.12.13.4.2-150200.4.12.1
openSUSE:Leap 15.4libarchivebefore 3.5.1-150400.3.9.13.5.1-150400.3.9.1
openSUSE:Tumbleweedbsdtarbefore 3.6.0-1.13.6.0-1.1
Red Hat:enterprise_linux:8::baseosbsdcat-debuginfobefore 0:3.3.3-3.el8_50:3.3.3-3.el8_5
Red Hat:enterprise_linux:8::baseosbsdcpio-debuginfobefore 0:3.3.3-3.el8_50:3.3.3-3.el8_5
Red Hat:enterprise_linux:8::baseosbsdtarbefore 0:3.3.3-3.el8_50:3.3.3-3.el8_5
Red Hat:enterprise_linux:8::baseosbsdtar-debuginfobefore 0:3.3.3-3.el8_50:3.3.3-3.el8_5
Red Hat:enterprise_linux:8::baseoslibarchivebefore 0:3.3.3-3.el8_50:3.3.3-3.el8_5
Red Hat:enterprise_linux:8::baseoslibarchive-debuginfobefore 0:3.3.3-3.el8_50:3.3.3-3.el8_5
Red Hat:enterprise_linux:8::baseoslibarchive-debugsourcebefore 0:3.3.3-3.el8_50:3.3.3-3.el8_5
Red Hat:enterprise_linux:8::crblibarchive-develbefore 0:3.3.3-3.el8_50:3.3.3-3.el8_5
Rocky Linux:8libarchivebefore 0:3.3.3-3.el8_50:3.3.3-3.el8_5
SUSE:Linux Enterprise Micro 5.3libarchivebefore 3.5.1-150400.3.9.13.5.1-150400.3.9.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3libarchivebefore 3.4.2-150200.4.12.13.4.2-150200.4.12.1

Other highest-scoring records for the same primary product.

  • CVE-2024-26256Libarchive Remote Code Execution Vulnerability
    57Plan
  • 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 / packageFixed versionSource
almalinux:bsdtar3.3.3-3.el8_5 · AlmaLinux:8Package registry (OSV)
almalinux:libarchive3.3.3-3.el8_5 · AlmaLinux:8Package registry (OSV)
almalinux:libarchive-devel3.3.3-3.el8_5 · AlmaLinux:8Package registry (OSV)
alpine:libarchive3.5.3-r0 · Alpine:v3.13Package registry (OSV)
debian:libarchive3.5.2-1 · Debian:12Package registry (OSV)
opensuse:bsdtar3.6.0-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:libarchive3.4.2-150200.4.12.1 · openSUSE:Leap 15.3Package registry (OSV)
red hat:bsdcat-debuginfo0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:bsdcpio-debuginfo0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:bsdtar0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:bsdtar-debuginfo0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:libarchive0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:libarchive-debuginfo0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:libarchive-debugsource0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:libarchive-devel0:3.3.3-3.el8_5 · Red Hat:enterprise_linux:8::crbPackage registry (OSV)
rocky linux:libarchive0:3.3.3-3.el8_5 · Rocky Linux:8Package registry (OSV)
suse:libarchive3.4.2-150200.4.12.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3Package 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.

All national notices →

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

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

nvd-primary

References

All records