HIGH

CVE-2020-28949

Php Archive Tar 2020-11-19 CVSS v3.1
CVSS
7.8
KEV

Description

Archive_Tar through 1.4.10 has :// filename sanitization only to address phar attacks, and thus any other stream-wrapper attack (such as file:// to overwrite files) can still succeed.

Summary dbcve.org

Archive_Tar PHP library through version 1.4.10 implements incomplete filename sanitization that only blocks phar:// stream wrapper attacks but fails to sanitize other dangerous stream wrappers like file://, allowing attackers to overwrite arbitrary files on the server by crafting malicious tar archives with file:// paths.

Mitigation

Update Archive_Tar to version 1.4.11 or later which includes comprehensive stream wrapper sanitization, or implement input validation to reject any filename containing stream wrapper patterns (e.g., ://) before archive extraction.

Proof of Concept

EPSS Score

84.55%
Probability of exploitation in next 30 days
99.7th percentile

References

http://packetstormsecurity.com/files/161095/PEAR-Archive_Tar-Arbitrary-File-Write.html Exploit, Third Party Advisory, VDB Entry https://github.com/pear/Archive_Tar/issues/33 Exploit, Issue Tracking, Vendor Advisory https://lists.debian.org/debian-lts-announce/2020/11/msg00045.html Mailing List, Third Party Advisory https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/42GPGVVFTLJYAKRI75IVB5R45NYQGEUR/ Mailing List, Third Party Advisory https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4V35LBRM6HBCXBVCITKQ4UEBTXO2EG7B/ Mailing List, Third Party Advisory https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5KSFM672XW3X6BR7TVKRD63SLZGKK437/ Mailing List, Third Party Advisory https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KWM4CTMEGAC4I2CHYNJVSROY4CVXVEUT/ Mailing List, Third Party Advisory https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NBYZSHYTIOBK6V7C4N7TP6KIKCRKLVWP/ Mailing List, Third Party Advisory https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VJQQYDAOWHD6RDITDRPHFW7WY6BS3V5N/ Mailing List, Third Party Advisory https://security.gentoo.org/glsa/202101-23 Third Party Advisory https://www.debian.org/security/2020/dsa-4817 Mailing List, Third Party Advisory https://www.drupal.org/sa-core-2020-013 Third Party Advisory https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-28949 US Government Resource
View on dbcve.org
Base CVE data derived from NVD (public domain). Enrichment by dbcve.org (CC-BY-4.0). Fetched via API.
Back to CVE