CVE-2020-28949: PEAR Archive_Tar Deserialization of Untrusted Data
PEAR Archive_Tar · listed in the CISA catalog of actively exploited vulnerabilities since 2022-08-25.
- CVSS v3.1 (CVE record)
- 7.8
- high
- EPSS (exploit probability, 30 days)
- 85%
- higher than 99.7% of all CVEs
- Added to CISA KEV
- 2022-08-25
- US federal due date 2022-09-15
- Ubuntu priority
- high
CVE-2020-28949 explained
CVE-2020-28949 affects PEAR Archive_Tar through 1.4.10. Its filename sanitization blocks only phar:// stream wrappers, so other stream-wrapper attacks, such as file:// used to overwrite files, can still succeed when processing a crafted archive. CISA lists it as a known exploited vulnerability, which makes patching a priority.
Impact
An attacker who gets a user or application to process a crafted tar archive with Archive_Tar can use stream wrappers such as file:// to overwrite files. The CVSS vector rates it as local, low complexity, no privileges required, with user interaction required. A successful attack can fully compromise confidentiality, integrity and availability within the affected component's scope.
Who is affected
On Ubuntu, php-pear has fixed versions for 16.04 LTS (1:1.10.1+submodules+notgz-6ubuntu0.2), 18.04 LTS (1:1.10.5+submodules+notgz-1ubuntu1.18.04.2) and 20.04 LTS (1:1.10.9+submodules+notgz-1ubuntu0.20.04.1), all in the standard archive. drupal7 is fixed through Ubuntu Pro (ESM) on 14.04 LTS (7.26-1ubuntu0.1+esm2) and 16.04 LTS (7.44-1ubuntu1~16.04.0+esm2). Every listed release has a fixed version. 14.04 and 16.04 are end of life. Standard support for 18.04 and 20.04 has ended.
Written with AI from the data on this page and checked against it automatically.
Official 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.
CISA required action: Apply updates per vendor instructions.
CISA notes
Ubuntu and Debian releases
A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.
Ubuntu 20.04 LTS·php-pear
Fixed: 1:1.10.9+submodules+notgz-1ubuntu0.20.04.1
Ubuntu 18.04 LTS·php-pear
Fixed: 1:1.10.5+submodules+notgz-1ubuntu1.18.04.2
Ubuntu 16.04 LTS·php-pear
ESM ended
Fixed: 1:1.10.1+submodules+notgz-6ubuntu0.2
Ubuntu 16.04 LTS·drupal7
fix via Ubuntu Pro
Fixed: 7.44-1ubuntu1~16.04.0+esm2
Ubuntu 14.04 LTS·drupal7
fix via Ubuntu Pro
Fixed: 7.26-1ubuntu0.1+esm2
What to do
- Update
php-pearto the fixed version for your release, or a later one. - On 14.04 LTS or 16.04 LTS systems running
drupal7, enable Ubuntu Pro (ESM) and install the fixeddrupal7package. - Restart PHP services and web servers so they load the updated code.
- Plan upgrades from end-of-life releases 14.04 LTS and 16.04 LTS to a supported release.
- Until patched, avoid extracting tar archives from untrusted sources with Archive_Tar.
Written with AI from the data on this page and checked against it automatically.
Check and fix on a server
Run on each Ubuntu or Debian server. Replace php-pear with the source package from the table above (this CVE affects 2 source packages).
1. Show installed packages built from the source package, with their versions
dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="php-pear"'2. Compare each installed version with the fixed version for your release from the table
I=INSTALLED_VERSION; F=FIXED_VERSION # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac3. Install the fix
sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="php-pear"{print $1}')Services keep running the old code until they are restarted – restart the affected service or check with needrestart.
Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-74
Questions about CVE-2020-28949
- Is this vulnerability being exploited?
- Yes. CISA added CVE-2020-28949 to its Known Exploited Vulnerabilities catalog on 2022-08-25. The required action is to apply updates per vendor instructions. Ransomware use is listed as unknown.
- Which packages do I need to check?
- Check
php-pearon Ubuntu 16.04, 18.04 and 20.04 LTS. Checkdrupal7on Ubuntu 14.04 and 16.04 LTS. Thedrupal7fixes are only available with Ubuntu Pro (ESM). - Do I need to restart anything after updating?
- Yes. Running PHP processes keep using the old code until they restart. Restart PHP services and web servers after installing the update.
Written with AI from the data on this page and checked against it automatically.
References
Other advisories
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.