Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2020-7063— Files added to tar with Phar::buildFromIterator have all-access permissions

CVSS 5.5 · Medium EPSS 0.30% · P54
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2020-7063

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Files added to tar with Phar::buildFromIterator have all-access permissions
Source: NVD (National Vulnerability Database)
Vulnerability Description
In PHP versions 7.2.x below 7.2.28, 7.3.x below 7.3.15 and 7.4.x below 7.4.3, when creating PHAR archive using PharData::buildFromIterator() function, the files are added with default permissions (0666, or all access) even if the original files on the filesystem were with more restrictive permissions. This may result in files having more lax permissions than intended when such archive is extracted.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Source: NVD (National Vulnerability Database)
Vulnerability Type
权限预留不恰当
Source: NVD (National Vulnerability Database)
Vulnerability Title
PHP 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
PHP(PHP:Hypertext Preprocessor,PHP:超文本预处理器)是PHPGroup和开放源代码社区的共同维护的一种开源的通用计算机脚本语言。该语言主要用于Web开发,支持多种数据库及操作系统。 PHP 7.2.28之前的7.2.x版本、7.3.15之前的7.3.x版本和7.4.3之前的7.4.x版本中存在安全漏洞,该漏洞源于使用‘PharData::buildFromIterator()’函数创建PHAR归档文件时,该文件被分配了默认文件(0666或所有访问权限)。攻击者可利用该漏洞
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
PHP GroupPHP 7.3.x ~ 7.3.15 -

II. Public POCs for CVE-2020-7063

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2020-7063

登录查看更多情报信息。

Same Patch Batch · PHP Group · 2020-02-27 · 3 CVEs total

CVE-2020-70627.5 HIGHNull Pointer Dereference in PHP Session Upload Progress
CVE-2020-70616.5 MEDIUMheap-buffer-overflow in phar_extract_file

IV. Related Vulnerabilities

V. Comments for CVE-2020-7063

No comments yet


Leave a comment