CVE-2020-36193:
Directory Traversal in Archive_Tar
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.99014%
CWE
Published
4/22/2021
Updated
7/5/2023
KEV Status
Yes
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
pear/archive_tar | composer | <= 1.4.11 | 1.4.13 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the handling of symbolic links during extraction. The commit cde4605 added a critical check in _extractList() to compare realpath(dirname(symlink_target)) against realpath(extraction_path). Prior to this fix (versions <=1.4.11), there was no validation to prevent symlinks from resolving outside the target directory. The patch directly modifies this function, confirming it as the vulnerable point. The CVE description explicitly references inadequate symlink checking during write operations, which aligns with this function's responsibility for processing archive entries.