Breaking: Java4Shell (CVE-2026-114938) - Less Than 0.12% of JVMs Estimated at Risk of RCE
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2019-9021

php: Heap-based buffer over-read in PHAR reading functions

Overview

Published
22 Feb 2019
Modified
17 Jun 2026
Critical CVE
0 Registry packages
193 OS packages
7 Linux distributions
Yes Fix available

Description

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 phar_detect_phar_fname_ext in ext/phar/phar.c.

Source: OX vulnerability database

Severity

9.8 · CRITICAL

CVSS 3.0 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-125

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 29 fixes

Oracle Linux 1 release · 5 packages

fixed 5
php-pecl-zip libzip php-pear apcu-panel php
Oracle Linux fixes for CVE-2019-9021
ReleasePackageFixed in
8 php-pecl-zip 1.15.3-1.module+el8.2.0+5510+6771133c
8 libzip +2 1.5.1-2.module+el8.2.0+5510+6771133c
8 php-pear 1:1.10.5-9.module+el8.2.0+5510+6771133c
8 apcu-panel +2 5.1.12-2.module+el8.2.0+5510+6771133c
8 php +26 7.2.24-1.module+el8.2.0+5510+6771133c

Red Hat 2 releases · 7 packages

affected 1 fixed 7
php rh-php71-php rh-php72-php php-pecl-zip libzip apcu-panel +1
Red Hat fixes for CVE-2019-9021
ReleasePackageFixed inAdvisory
7 php +24 affected —
7 rh-php71-php +28 0:7.1.30-1.el7 RHSA-2019:2519
7 rh-php72-php +28 0:7.2.24-1.el7 RHSA-2019:3299
8 (php:7.2) php-pecl-zip 0:1.15.3-1.module+el8.1.0+3186+20164e6f RHSA-2020:1624
8 (php:7.2) libzip +2 0:1.5.1-2.module+el8.1.0+3202+af5476b9 RHSA-2020:1624
8 (php:7.2) apcu-panel +2 0:5.1.12-2.module+el8.1.0+3202+af5476b9 RHSA-2020:1624

2 more rows

alma 1 release · 5 packages

fixed 5
php-pecl-zip libzip php-pear apcu-panel php
alma fixes for CVE-2019-9021
ReleasePackageFixed in
8 (php:7.2) php-pecl-zip 1.15.3-1.module_el8.3.0+2010+7c76a223
8 (php:7.2) libzip +2 1.5.1-2.module_el8.3.0+2010+7c76a223
8 (php:7.2) php-pear 1:1.10.5-9.module_el8.3.0+2010+7c76a223
8 (php:7.2) apcu-panel +2 5.1.12-2.module_el8.3.0+2010+7c76a223
8 (php:7.2) php +26 7.2.24-1.module_el8.3.0+2010+7c76a223

debian 1 release · 1 package

fixed 1
php7-0
debian fixes for CVE-2019-9021
ReleasePackageFixed in
9 php7-0 7.0.33-0+deb9u2

openSUSE 1 release · 2 packages

fixed 2
php7 php8
openSUSE fixes for CVE-2019-9021
ReleasePackageFixed inAdvisory
Tumbleweed php7 +48 7.4.24-1.1 openSUSE-SU-2024:11167-1
Tumbleweed php8 +46 8.0.11-1.1 openSUSE-SU-2024:11169-1

rocky 2 releases · 5 packages

fixed 6
php php-pecl-zip libzip php-pear apcu-panel
rocky fixes for CVE-2019-9021
ReleasePackageFixed in
8 php +26 7.2.24-1.module+el8.4.0+413+c9202dda
8 (php:7.2) php-pecl-zip 1.15.3-1.module+el8.4.0+413+c9202dda
8 (php:7.2) libzip +2 1.5.1-2.module+el8.4.0+413+c9202dda
8 (php:7.2) php-pear 1:1.10.5-9.module+el8.4.0+413+c9202dda
8 (php:7.2) apcu-panel +2 5.1.12-2.module+el8.4.0+413+c9202dda
8 (php:7.2) php +26 7.2.24-1.module+el8.4.0+413+c9202dda

ubuntu 2 releases · 1 package

fixed 2
php7-2
ubuntu fixes for CVE-2019-9021
ReleasePackageFixed in
18.04 php7-2 7.2.15-0ubuntu0.18.04.1
18.04-ESM php7-2 7.2.15-0ubuntu0.18.04.1

References

Show all 56 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.