CVE-2020-28949: PEAR Archive_Tar Deserialization of Untrusted Data Vulnerability

Published Nov 19, 2020
·
Updated

A flaw was found in the ArchiveTar package. PEAR ArchiveTar could allow a local authenticated attacker to bypass security restrictions caused by a stream-wrapper attack. An attacker can overwrite arbitrary files on the system using a specially-crafted tar archive.

Other sources

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

PEAR ArchiveTar allows an unserialization attack because phar: is blocked but PHAR: is not blocked. PEAR stands for PHP Extension and Application Repository and it is an open-source framework and distribution system for reusable PHP components with known usage in third-party products such as Drupal Core and Red Hat Linux.

CISA

Potential file overwrite if archive filename starts with file://

Affected Software

16 affected componentsFixes available
composer/pear/archive_tar<1.4.11
redhat/php-pear<1:1.9.4-23.el7_9
1:1.9.4-23.el7_9
debian/php-pear
1:1.10.12+submodules+notgz+20210212-11:1.10.13+submodules+notgz+2022032202-2
PEAR Archive_Tar
PHP Archive Tar<1.4.12
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Fedoraproject Fedora=32
Fedoraproject Fedora=33
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Drupal Drupal>=7.0<7.75
Drupal Drupal>=8.0.0<8.9.10
Drupal Drupal>=8.8.0<8.8.12
Drupal Drupal>=9.0.0<9.0.9
redhat/Archive_Tar<1.4.11
1.4.11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/php-pear to a version that resolves this vulnerability.

    Fixed in 1:1.9.4-23.el7_9
  2. Upgrade

    Upgrade debian/php-pear to a version that resolves this vulnerability.

    Fixed in 1:1.10.12+submodules+notgz+20210212-1Fixed in 1:1.10.13+submodules+notgz+2022032202-2
  3. Upgrade

    Upgrade redhat/Archive_Tar to a version that resolves this vulnerability.

    Fixed in 1.4.11
  4. Upgrade

    Upgrade Archive_Tar (PEAR) to a version that resolves this vulnerability.

    Fixed in 1.4.10
  5. Configuration

    When processing tar archives with Archive_Tar, ensure filename sanitization blocks stream-wrapper prefixes beyond phar: (the material notes that through 1.4.10 only phar: is handled while file:// can still be used to overwrite arbitrary files).

    Archive_Tar (PEAR) tar archive filename handling (stream-wrapper support) = Block/deny any use of stream-wrapper prefixes such as file:// (not only phar:)
  6. Compensating control

    Restrict or avoid processing tar archives from untrusted sources; require trust/authentication and validate archive filenames to prevent stream-wrapper-based overwrite (e.g., file:// leading to potential overwrite).

  7. Operational

    Review for any files that may have been overwritten via crafted tar archives (especially where archive filenames start with file://) and remediate as needed.

Event History

Nov 19, 2020
CVE Published
12:00 AM
CVE Published
via MITRE·06:14 PM
Data Sourced
via MITRE·06:14 PM
Description
Data Sourced
via NVD·07:15 PM
DescriptionSeverityAffected Software
Nov 20, 2020
Advisory Published
12:00 AM
Aug 25, 2022
Known Exploited
via CISA·12:00 AM
Aug 27, 2024
Data Sourced
via Launchpad·05:56 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·05:58 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2020-28949?

CVE-2020-28949 is a vulnerability in PEAR Archive_Tar that allows an unserialization attack due to blocking the phar: protocol but not the PHAR: protocol.

2

What is PEAR Archive_Tar?

PEAR Archive_Tar is an open-source framework and distribution system for reusable PHP components.

3

How does CVE-2020-28949 affect me?

CVE-2020-28949 affects you if you are using the affected versions of PEAR Archive_Tar, PHP-PEAR, Drupal, or specific Linux distributions.

4

What is the severity of CVE-2020-28949?

CVE-2020-28949 has a severity of high, with a CVSS score of 7.1.

5

How can I mitigate CVE-2020-28949?

To mitigate CVE-2020-28949, update PEAR Archive_Tar, PHP-PEAR, Drupal, or the affected Linux distributions to the recommended versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203