PEAR Archive_Tar Deserialization of Untrusted Data
CVE-2020-28949 is a high-severity vulnerability in Archive Tar from PHP, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an unauthenticated attacker, but only if a user takes part, for example by opening a link or file. The record lists version 1.4.12 as the first without the flaw, so updating Archive Tar to that release or later removes the exposure. CISA added it to the Known Exploited Vulnerabilities catalogue on August 25, 2022, which means attacks have been observed in the wild.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Update Archive Tar to 1.4.12 or a later version.
- Update Drupal to 7.75 or 8.9.10 or 8.8.12 or 9.0.9, whichever matches your release line, or a later version.
- CISA's required action: Apply updates per vendor instructions.
- Read the advisory on github.com for workarounds and exact fixed builds.
- Because the attack needs a user to take part, warn users about unexpected links and files related to this product until it is patched.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| PHP | Archive Tar | before 1.4.12 | 1.4.12 |
| Debian | Debian Linux | 9.0; 10.0 | Not stated |
| Fedora Project | Fedora | 32; 33; 34; 35 | Not stated |
| Drupal | Drupal | 7.0 up to, but not including, 7.75; 8.0.0 up to, but not including, 8.9.10; 8.8.0 up to, but not including, 8.8.12; 9.0.0 up to, but not including, 9.0.9 | 7.75, 8.9.10, 8.8.12, 9.0.9 |
Version data comes from NVD's product matching. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- RequiredA user must take an action such as opening a file or link.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.8 | High | NVD |
| CVSS 3.1 | 7.8 | High | CISA (ADP) |
| CVSS 2.0 | 6.8 | Medium | NVD |
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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
Timeline
- CVE record published.
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- github.com/pear/Archive_Tar/issues/33Exploit, Issue Tracking
Third-party and government advisories
- lists.debian.org/debian-lts-announce/2020/11/msg00045.htmlMailing List, Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/42GPGVVFTLJYAKRI75IV…Mailing List, Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4V35LBRM6HBCXBVCITKQ…Mailing List, Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5KSFM672XW3X6BR7TVKR…Mailing List, Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KWM4CTMEGAC4I2CHYNJV…Mailing List, Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NBYZSHYTIOBK6V7C4N7T…Mailing List, Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VJQQYDAOWHD6RDITDRPH…Mailing List, Third Party Advisory
- security.gentoo.org/glsa/202101-23Third Party Advisory
- debian.org/security/2020/dsa-4817Mailing List, Third Party Advisory
- drupal.org/sa-core-2020-013Third Party Advisory
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-28949US Government Resource
Technical write-ups (may include proof of concept)
- packetstormsecurity.com/files/161095/PEAR-Archive_Tar-Arbitrary-File-Write.htmlExploit, Third Party Advisory, VDB Entry
Other vulnerabilities in Archive Tar
- 7.5 High severity
Spotted an error? Tell us.