CVE-2019-6339 — drupal
CRITICALCVE-2019-6339 is a critical-severity (CVSS 9.8) Improper Input Validation vulnerability in drupal/drupal. 2 public exploit references exist, so weaponization risk is real. A fix is available for drupal/drupal — see the affected versions and patch details below.
Arbitrary PHP code execution in Drupal
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2019-6339 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,738 CVEs with a current EPSS score, this one falls in the 10–50% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
drupal/drupal🐘drupal/drupal🐘drupal/drupal🐘drupal/core🐘drupal/core🐘drupal/coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | drupal/drupal | ≥ 7.0.0&&< 7.62.0 | 7.62.0composer require drupal/drupal:^7.62.0 |
| 🐘Packagist | drupal/drupal | ≥ 8.0.0&&< 8.5.9 | 8.5.9composer require drupal/drupal:^8.5.9 |
| 🐘Packagist | drupal/drupal | ≥ 8.6.0&&< 8.6.6 | 8.6.6composer require drupal/drupal:^8.6.6 |
| 🐘Packagist | drupal/core | ≥ 7.0.0&&< 7.62.0 | 7.62.0composer require drupal/core:^7.62.0 |
| 🐘Packagist | drupal/core | ≥ 8.0.0&&< 8.5.9 | 8.5.9composer require drupal/core:^8.5.9 |
| 🐘Packagist | drupal/core | ≥ 8.6.0&&< 8.6.6 | 8.6.6composer require drupal/core:^8.6.6 |
Affected Products
debian linuxdebiandrupaldrupalResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for drupal/drupal, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update drupal/drupal to 7.62.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2019-6339 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2019-6339 in your dependencies?
Find it across Packagist, including transitive dependencies.