字号·· | 护眼
漏洞档案 · 高危

PEAR Archive_Tar 文件名处理不当致流包装器攻击(CVE-2020-28949)

CVE-2020-28949 别名:GHSA-75C5-F4GW-38R9、DRUPAL-CORE-2020-013
CVSS 7.8 / 3.1 EPSS 84.6% CISA KEV 在野利用 勒索软件利用 公开 PoC · 1
综合风险90/ 100
CVSS7.8高危
EPSS84.6%30 天利用概率
机构收录时间2020-11-20更新 2026-12-01

研判简报

概述

PEAR Archive_Tar 在处理归档内文件名时,仅针对 phar:// 做了过滤,且过滤不完整(phar: 被拦而 PHAR: 未被拦),导致反序列化攻击仍可实施;同时其他流包装器(如 file://)可借文件名操纵实现任意文件覆盖。该库被第三方产品广泛引用,记录中明确提及 Drupal Core 与 Red Hat Linux 的使用场景,因此下游项目可能被动暴露。危险点在于:攻击者可通过构造恶意归档触发反序列化或文件写入,技术影响被评为 total。

严重性

CVSS 7.8(3.1 版),综合风险分 92.11/100,评级 high;EPSS 30 天利用概率 84.5%(百分位 99.7%,日期 2026-11-24)。攻击面为处理不可信 tar 归档的 PHP 应用及其下游依赖组件。

利用状态

CISA KEV 已收录(2022-08-25),并标注存在已知勒索软件利用;Exploit-DB/公开 PoC 记录 1 条;CISA SSVC 评估为 automatable=no、exploitation=active、technical_impact=total。以上状态核查日期为 2026-11-24。Nuclei 状态材料未给出。

受影响产品

记录中受影响版本字段为「n/a n/a」,材料未给出明确版本区间;标题描述为 Archive_Tar through 1.4.10。组件为 PEAR Archive_Tar 库;部署形态涉及引用该库的第三方产品(记录举例 Drupal Core、Red Hat Linux),具体受影响下游清单材料未给出。

修复版本

材料未给出官方修复版本号或补丁信息。KEV 要求动作仅为「Apply updates per vendor instructions.」,期限 2022-09-15;具体修复版本需以厂商公告为准,材料未给出。

缓解措施

在无法立即升级时,应避免对不可信来源的 tar 归档调用 Archive_Tar 解析;对上传归档实施来源与内容校验,限制归档内文件名可使用的字符与路径;在应用层禁用或限制危险流包装器(如 phar://、file://)的使用;关注下游产品(如 Drupal、Red Hat 相关组件)的安全公告并按其指引处置。材料未给出更多具体缓解配置。

响应步骤

  1. 盘点代码库与依赖清单中是否引入 PEAR Archive_Tar,重点排查通过第三方产品(如 Drupal Core)间接引入的情况。
  2. 确认是否存在对用户可控 tar 归档的解析路径,评估是否可触发反序列化或文件覆盖。
  3. 按厂商公告升级到修复版本(材料未给出具体版本号,需查证官方记录)。
  4. 在升级前对相关入口增加归档文件名与流包装器的输入校验与监控告警。
  5. 检索日志中可疑的 PHAR:、phar://、file:// 等包装器特征与异常文件写入行为。
  6. 结合 KEV 期限要求跟踪处置进度,并核对下游厂商公告(Drupal SA、Red Hat 安全页)以确认覆盖范围。

参考来源

  1. https://pear.php.net/bugs/bug.php?id=27002kev
  2. https://www.drupal.org/sa-core-2020-013kev,x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  3. https://access.redhat.com/security/cve/cve-2020-28949kev
  4. https://nvd.nist.gov/vuln/detail/CVE-2020-28949kev
  5. https://github.com/pear/Archive_Tar/issues/33x_refsource_MISC,x_refsource_MISC,x_transferred,advisory,euvd
  6. https://lists.debian.org/debian-lts-announce/2020/11/msg00045.htmlmailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  7. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4V35LBRM6HBCXBVCITKQ4UEBTXO2EG7B/vendor-advisory,x_refsource_FEDORA,vendor-advisory,x_refsource_FEDORA,x_transfer
  8. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NBYZSHYTIOBK6V7C4N7TP6KIKCRKLVWP/vendor-advisory,x_refsource_FEDORA,vendor-advisory,x_refsource_FEDORA,x_transfer
  9. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KWM4CTMEGAC4I2CHYNJVSROY4CVXVEUT/vendor-advisory,x_refsource_FEDORA,vendor-advisory,x_refsource_FEDORA,x_transfer
  10. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5KSFM672XW3X6BR7TVKRD63SLZGKK437/vendor-advisory,x_refsource_FEDORA,vendor-advisory,x_refsource_FEDORA,x_transfer
  11. https://www.debian.org/security/2020/dsa-4817vendor-advisory,x_refsource_DEBIAN,vendor-advisory,x_refsource_DEBIAN,x_transfer
  12. http://packetstormsecurity.com/files/161095/PEAR-Archive_Tar-Arbitrary-File-Write.htmlx_refsource_MISC,x_refsource_MISC,x_transferred,advisory,euvd
  13. https://security.gentoo.org/glsa/202101-23vendor-advisory,x_refsource_GENTOO,vendor-advisory,x_refsource_GENTOO,x_transfer
  14. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VJQQYDAOWHD6RDITDRPHFW7WY6BS3V5N/vendor-advisory,x_refsource_FEDORA,vendor-advisory,x_refsource_FEDORA,x_transfer
  15. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/42GPGVVFTLJYAKRI75IVB5R45NYQGEUR/vendor-advisory,x_refsource_FEDORA,vendor-advisory,x_refsource_FEDORA,x_transfer
  16. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-28949government-resource