CVE-2019-6339
PHAR stream wrapper Arbitrary PHP code execution
- Published
- Updated
- Reserved
- Assigned by
- drupal
Description
In Drupal Core versions 7.x prior to 7.62, 8.6.x prior to 8.6.6 and 8.5.x prior to 8.5.9; A remote code execution vulnerability exists in PHP's built-in phar stream wrapper when performing file operations on an untrusted phar:// URI. Some Drupal code (core, contrib, and custom) may be performing file operations on insufficiently validated user input, thereby being exposed to this vulnerability. This vulnerability is mitigated by the fact that such code paths typically require access to an administrative permission or an atypical configuration.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Critical9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 35.9% · top 1.5% of all CVEs (6 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Weakness
- Remote Code Execution
- CWE-20 (opens in a new tab)All about CWE-20 and its CVEs
Affected products
- affected 7.x – < 7.62
- affected 8.6.x – < 8.6.6.
- affected 8.5.x – < 8.5.9
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistdrupal/coreGHSA-8cw5-rv98-5c46 (opens in a new tab)
- Packagistdrupal/drupalGHSA-8cw5-rv98-5c46 (opens in a new tab)
References (3)
- DSA-4370 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- https://www.drupal.org/sa-core-2019-002 (opens in a new tab)x_refsource_CONFIRMx_transferred
- [debian-lts-announce] 20190202 [SECURITY] [DLA 1659-1] drupal7 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-8cw5-rv98-5c46 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2019-6339)Record last updated .