SUBJECT: CVE-2020-28949 PEAR Archive_Tar Deserialization of Untrusted Data Vulnerability
TECH STACK: PEAR Archive_Tar versions 1.4.0 and earlier.
DATE(S) ISSUED: 11/19/2020
CRITICALITY: HIGH
OVERVIEW:
CVE-2020-28949 is a vulnerability in the PEAR Archive_Tar software library that could allow an attacker to execute arbitrary code on a server running a vulnerable version of the software. PEAR Archive_Tar is a library used to create and extract tar (tape archive) files, which are a common format for storing and distributing groups of files.
The vulnerability is caused by a flaw in the way that PEAR Archive_Tar processes certain types of data, specifically tar files that contain serialized data. An attacker could exploit this flaw by creating a specially crafted tar file that, when processed by a vulnerable version of PEAR Archive_Tar, could execute arbitrary code on the server. The vulnerability affects PEAR Archive_Tar versions 1.4.0 and earlier.
NIST 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.
https://nvd.nist.gov/vuln/detail/CVE-2020-28949
THREAT INTELLIGENCE:
CISA has added CVE-2020-28949 to its Known Exploited Vulnerabilities Catalog, based on evidence that threat actors are actively exploiting the vulnerability. This vulnerability is a frequent attack vector for malicious cyber actors of all types and poses significant risk to the federal enterprise.
https://www.cisa.gov/known-exploited-vulnerabilities-catalog
NIST: NVD
Base Score: 7.8 HIGH
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
SOLUTION:
To patch the PEAR Archive_Tar Deserialization of Untrusted Data vulnerability (CVE-2020-28949), you will need to update to a version of the Archive_Tar library that addresses this issue. This vulnerability exists in versions of Archive_Tar prior to 1.4.4.
To update to the latest version of Archive_Tar, you can use the following steps:
This should show you the version number of the Archive_Tar library that you have installed. Make sure that the version number is at least 1.4.4 to ensure that you are running a version that is not vulnerable to the Deserialization of Untrusted Data vulnerability.
It's also a good idea to make sure that your other PEAR packages are up to date by running the following command:
sudo pear upgrade-all
This will ensure that all of your PEAR packages are running the latest and most secure versions.
REFERENCES:
CONFIRM:https://www.drupal.org/sa-core-2020-013
DEBIAN:DSA-4817
URL:https://www.debian.org/security/2020/dsa-4817
FEDORA:FEDORA-2020-5271a896ff
FEDORA:FEDORA-2020-6f1079934c
FEDORA:FEDORA-2020-d50d74d6f2
FEDORA:FEDORA-2020-f351eb14e3
FEDORA:FEDORA-2021-0c013f520c
FEDORA:FEDORA-2021-8093e197f4
GENTOO:GLSA-202101-23
URL:https://security.gentoo.org/glsa/202101-23
MISC:http://packetstormsecurity.com/files/161095/PEAR-Archive_Tar-Arbitrary-File-Write.html
MISC:https://github.com/pear/Archive_Tar/issues/33
MLIST:[debian-lts-announce] 20201127 [SECURITY] [DLA 2466-1] drupal7 security update
URL:https://lists.debian.org/debian-lts-announce/2020/11/msg00045.html