CVE-2019-9021
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 attentionCVE-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.
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.
What to do now
- 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).
- Verify whether the PHAR extension is enabled on your PHP (it is enabled by default in affected versions).
- 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.
- 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.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:NPrivileges RequiredUI:NUser InteractionS:UScopeC:HConfidentialityI:HIntegrityA:HAvailabilityWeaknesses
Affected Products
Exploitability
Exploit details including PoC links, Metasploit modules, and scanner templates are available after registration.
View exploit detailsAttack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
1 techniqueReferences
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