CVE-2019-9021: Buffer Overflow

Published Dec 6, 2018
·
Updated

An issue was discovered in PHP before 5.6.40, 7.x before 7.1.26, 7.2.x before 7.2.14, and 7.3.x before 7.3.1. A heap-based buffer over-read in PHAR reading functions in the PHAR extension may allow an attacker to read allocated or unallocated memory past the actual data when trying to parse the file name, a different vulnerability than CVE-2018-20783. This is related to phardetectpharfnameext in ext/phar/phar.c.

Other sources

Fixed bug (heap buffer overflow in phardetectpharfnameext). (CVE-2019-9021)

PHP

Affected Software

20 affected componentsFixes available
redhat/rh-php71-php<0:7.1.30-1.el7
0:7.1.30-1.el7
redhat/rh-php72-php<0:7.2.24-1.el7
0:7.2.24-1.el7
redhat/php<5.6.40
5.6.40
redhat/php<7.1.26
7.1.26
redhat/php<7.2.14
7.2.14
redhat/php<7.3.1
7.3.1
debian/php5
debian/php7.0
debian/php7.3
PHP PHP<7.1.26
7.1.26
PHP PHP<5.6.40
PHP PHP>=7.0.0<7.1.26
PHP PHP>=7.2.0<7.2.14
PHP PHP>=7.3.0<7.3.1
Debian Debian Linux=9.0
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
NetApp Storage Automation Store
openSUSE Leap=42.3

Remediation

Event History

Dec 6, 2018
CVE Published
12:00 AM
Feb 22, 2019
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·11:32 PM
Description
Feb 23, 2026
Data Sourced
via Ubuntu·05:29 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

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-2019-9021?

CVE-2019-9021 is a vulnerability in PHP versions before 5.6.40, 7.x before 7.1.26, 7.2.x before 7.2.14, and 7.3.x before 7.3.1 that allows an attacker to read allocated or unallocated memory through a heap-based buffer over-read in PHAR reading functions.

2

What is the severity of CVE-2019-9021?

The severity of CVE-2019-9021 is critical with a CVSS score of 9.8.

3

How does CVE-2019-9021 impact PHP?

CVE-2019-9021 can affect PHP versions before 5.6.40, 7.x before 7.1.26, 7.2.x before 7.2.14, and 7.3.x before 7.3.1 by allowing an attacker to read memory beyond the intended data.

4

How can I fix CVE-2019-9021?

To fix CVE-2019-9021, you should update your PHP installation to version 5.6.40, 7.1.26, 7.2.14, or 7.3.1 or later, depending on the affected version.

5

Where can I find more information about CVE-2019-9021?

You can find more information about CVE-2019-9021 in the PHP ChangeLog and the Red Hat Security Advisory linked in the references.

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