Patchfirst
CVE-2020-36193 KEV High · 7.5 EPSS 70.6%

PEAR Archive_Tar Improper Link Resolution Vulnerability

PEAR · Archive_Tar

Summary

The PEAR Archive_Tar component (product Archive_Tar, vendor PEAR) has an improper link-resolution flaw in Tar.php, present through version 1.4.11, where symbolic links are inadequately checked during write operations, allowing directory traversal. An unauthenticated remote attacker with network access can exploit it without user interaction, provided the application processes an attacker-supplied tar archive that is written out using Archive_Tar, causing files to be written outside the intended directory.

Official description · NVD

Tar.php in Archive_Tar through 1.4.11 allows write operations with Directory Traversal due to inadequate checking of symbolic links, a related issue to CVE-2020-28948.

Breakdown
73.1 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
2/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 19 months after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidenceAdded to CISA KEVEU database agrees+19 mo

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

See the family tree

5 related vulnerabilities in the same code over 3 years. The latest fix listed for pear/archive_tar is 1.4.14.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2018-1000888PEAR Archive_Tar version 1.4.3 and earlier contains a CWE-502…27 Dec 2018
  2. relatedHigh

    Why these are linked:

    • Fixed one release later1.4.4 → 1.4.11 (pear/archive_tar)
    • Same code patched: Tar.php (machine-matched)Functions: _tarRecToSizecommit 59ace12commit 0670a05
    CVE-2020-28948Archive_Tar through 1.4.10 allows an unserialization attack…19 Nov 2020
  3. same family
    CVE-2020-28949PEAR Archive_Tar Deserialization of Untrusted Data19 Nov 2020KEV
  4. Next fix in the same packageHigh

    Why these are linked:

    This CVECVE-2020-36193PEAR Archive_Tar Improper Link Resolution18 Jan 2021KEV
  5. relatedHigh

    Why these are linked:

    CVE-2021-32610In Archive_Tar before 1.4.14, symlinks can refer to targets…27 Jul 2021

Fixes in pear/archive_tarPackagist package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 1.4.4CVE-2018-100088827 Dec 2018
  2. 1.4.11CVE-2020-2894819 Nov 2020
  3. 1.4.11CVE-2020-2894919 Nov 2020KEV
  4. 1.4.13CVE-2020-3619318 Jan 2021KEV
  5. 1.4.14CVE-2021-3261027 Jul 2021Latest listed

techniques

2 , grouped by in kill-chain order, 2 cited passages 2

Initial AccessTA0001

Exploit Public-Facing Application T1190 Medium
AI mapping from the description · how it is exploited

Crafted archive processed by app enables traversal

Tar.php in Archive_Tar through 1.4.11 allows write operations with Directory Traversal
From the official description (NVD) Original (opens in a new tab) ↗

ImpactTA0040

Stored Data Manipulation T1565.001 Medium
AI mapping from the description · primary impact

Arbitrary file writes alter stored data

allows write operations with Directory Traversal due to inadequate checking of symbolic links
From the official description (NVD) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 155 general rules for its techniques

Rules for this CVE

0 that reference CVE-2020-36193 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: pear/archive_tar.

Packagistpear/archive_tarGHSA-rpw6-9xfx-jvcx

Upgrade to 1.4.14 or later

Fixes this CVE and 2 other known vulnerabilities in this package (CVE-2020-28949, CVE-2021-32610).

Set the version to 1.4.14 or later in your composer.json.

First fixed in 1.4.13 for CVE-2020-36193.

Affected versions

If you runUpgrade to
All versions before 1.4.131.4.14first fix for this CVE: 1.4.13

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

11 links, grouped by NVD tag (10 duplicates merged)
↑ ↓ chooseEnter openEsc close