CVE-2020-7061: heap-buffer-overflow in phar_extract_file

Published Feb 17, 2020
·
Updated

In PHP versions 7.3.x below 7.3.15 and 7.4.x below 7.4.3, while extracting PHAR files on Windows using phar extension, certain content inside PHAR file could lead to one-byte read past the allocated buffer. This could potentially lead to information disclosure or crash.

Other sources

Fixed bug (heap-buffer-overflow in pharextractfile). (CVE-2020-7061)

PHP

Affected Software

10 affected componentsFixes available
PHP PHP<7.3.15
7.3.15
PHP PHP>=7.2.0<=7.2.27
PHP PHP>=7.3.0<=7.3.14
PHP PHP>=7.4.0<=7.4.2
Microsoft Windows
Tenable Tenable.Sc<5.19.0
All of the following
Any of the following
PHP PHP>=7.2.0<=7.2.27
PHP PHP>=7.3.0<=7.3.14
PHP PHP>=7.4.0<=7.4.2
Microsoft Windows

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.3.15
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.3.15
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.4.3

Event History

Feb 20, 2020
CVE Published
via PHP·12:00 AM
Feb 27, 2020
CVE Published
via MITRE·08:25 PM
Data Sourced
via MITRE·08:25 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2020-7061?

CVE-2020-7061 is a fixed bug in PHP versions 7.3.x below 7.3.15 and 7.4.x below 7.4.3 that could cause a heap-buffer-overflow in phar_extract_file.

2

What is the severity of CVE-2020-7061?

CVE-2020-7061 has a severity rating of 9.1 (critical).

3

How does CVE-2020-7061 affect software?

CVE-2020-7061 affects PHP versions 7.2.0 to 7.2.27, 7.3.0 to 7.3.14, and 7.4.0 to 7.4.2.

4

What are the potential impacts of CVE-2020-7061?

CVE-2020-7061 could potentially lead to information disclosure or crash.

5

Where can I find more information about CVE-2020-7061?

More information about CVE-2020-7061 can be found at the following references: [link1], [link2], [link3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203