CVE Tools

CVE-2019-9021

Published: Feb 22, 2019Updated: Nov 21, 2024 Sources: CVE List NVD BDU csafCWE-125

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.

In plain language

AI Worth attention

CVE-2019-9021 is a PHP bug that lets a remote attacker steal small amounts of memory when processing a specially crafted PHAR file—most small businesses should update PHP because the PHAR extension is on by default in affected versions.

Executive summary

Unauthenticated remote information disclosure in PHP’s PHAR extension when parsing PHAR archive filenames, due to a heap-based buffer over-read that can read past the end of a valid filename during PHAR archive parsing.

If affected, business impact
Leaked sensitive information from memoryPotential credential exposureRisk of further system compromiseService disruption risk

What to do now

  1. Check whether your PHP version is within the affected ranges (PHP before 5.6.40, 7.x before 7.1.26, 7.2.x before 7.2.14, or 7.3.x before 7.3.1).
  2. Verify whether the PHAR extension is enabled on your PHP (it is enabled by default in affected versions).
  3. Upgrade PHP to a fixed release: upgrade to PHP 5.6.40 or later, PHP 7.1.26 or later, PHP 7.2.14 or later, or PHP 7.3.1 or later.
  4. If you can’t upgrade immediately, stop any internet-facing features that accept or process user-supplied PHAR archives, and block uploads/requests containing PHAR files while you patch.
Patch / advisory Usually a quick update

CVSS Vector Breakdown

AV:NAC:LPR:NUI:NS:UC:HI:HA:H
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:NPrivileges Required
None
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

and 4 more affected products View all →

Exploitability

1 exploit source identified

Exploit details including PoC links, Metasploit modules, and scanner templates are available after registration.

View exploit details
Official Patch Available

Attack Graph

Products CVE Techniques Tactics

Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/ + scroll to zoom, or go fullscreen.

MITRE ATT&CK

1 technique
Collection
View detailed technique mapping

References

and 454 more references View all →

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2019-9021 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows

We use analytics cookies to see which pages and articles actually help people. Decline and none of them run — the site works the same. What we store