CVE-2019-6339
PHAR stream wrapper Arbitrary PHP code execution
Also known as DRUPAL-CORE-2019-002, GHSA-8cw5-rv98-5c46
Mitigation
- Upgrade drupal/core to one of 8.5.9, 8.6.6, 7.62.0 (or later in the same release line).
- Upgrade drupal/drupal to one of 7.62.0, 8.5.9, 8.6.6 (or later in the same release line).
Who should check
- Projects that depend on Packagist package drupal/core (>= 8.0.0, < 8.5.9; >= 8.6.0, < 8.6.6)
- Projects that depend on Packagist package drupal/drupal (>= 7.0.0, < 7.62.0)
- Anyone running Drupal core >= 7.x, < 7.62; >= 8.6.x, < 8.6.6.; >= 8.5.x, < 8.5.9
Vulnerability facts
- Affected
- drupal/core >= 8.0.0, < 8.5.9; >= 8.6.0, < 8.6.6; drupal/drupal >= 7.0.0, < 7.62.0
- Fixed in
- 8.5.9, 8.6.6, 7.62.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 35.95% chance of exploitation in 30 days (percentile 99, 2026-11-26)
- CWE
- CWE-20
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist drupal/core | >= 8.0.0, < 8.5.9; >= 8.6.0, < 8.6.6 | 8.5.9, 8.6.6, 7.62.0 | osv |
| Packagist drupal/drupal | >= 7.0.0, < 7.62.0 | 7.62.0, 8.5.9, 8.6.6 | osv |
| Drupal core | >= 7.x, < 7.62; >= 8.6.x, < 8.6.6.; >= 8.5.x, < 8.5.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2019-6339. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2019-6339.md Affected: drupal/core >= 8.0.0, < 8.5.9; >= 8.6.0, < 8.6.6; drupal/drupal >= 7.0.0, < 7.62.0 Fixed in: 8.5.9, 8.6.6, 7.62.0 Steps: 1. Search this machine and project for drupal/core (Packagist), drupal/drupal (Packagist), Drupal core: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2019-6339 being exploited?
There is no confirmed exploitation: CVE-2019-6339 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 35.95% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2019-6339?
Critical: CVSS 9.8 (v3.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2019-6339?
drupal/core >= 8.0.0, < 8.5.9; >= 8.6.0, < 8.6.6; drupal/drupal >= 7.0.0, < 7.62.0.
Is there a fix for CVE-2019-6339?
Yes. Fixed in 8.5.9, 8.6.6, 7.62.0. Upgrade drupal/core to one of 8.5.9, 8.6.6, 7.62.0 (or later in the same release line). Upgrade drupal/drupal to one of 7.62.0, 8.5.9, 8.6.6 (or later in the same release line).
How do I check if I'm affected by CVE-2019-6339?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.