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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Drupal | Drupal core | 7.x – < 7.62, 8.6.x – < 8.6.6., 8.5.x – < 8.5.9 | 7.62 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | drupal7 | 7.52-2+deb9u6 | DSA-4370-1 |
| Debian 8 | drupal7 | 7.32-1+deb8u14 | DLA-1659-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | drupal7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | drupal7 | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
Vulnmachines/drupal-cve-2019-6339 ★ 5 · Oct 19, 2021
Drupal remote code execution vulnerabilty
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | drupal/core | >= 8.0.0, < 8.5.9 · >= 8.6.0, < 8.6.6 | 8.5.9, 8.6.6 | DRUPAL-CORE-2019-002 |
| Packagist | drupal/core | >= 7.0.0, < 7.62.0 | 7.62.0 | GHSA-8cw5-rv98-5c46 |
| Packagist | drupal/core | >= 8.0.0, < 8.5.9 | 8.5.9 | GHSA-8cw5-rv98-5c46 |
| Packagist | drupal/core | >= 8.6.0, < 8.6.6 | 8.6.6 | GHSA-8cw5-rv98-5c46 |
| Packagist | drupal/drupal | >= 7.0.0, < 7.62.0 | 7.62.0 | GHSA-8cw5-rv98-5c46 |
| Packagist | drupal/drupal | >= 8.0.0, < 8.5.9 | 8.5.9 | GHSA-8cw5-rv98-5c46 |
| Packagist | drupal/drupal | >= 8.6.0, < 8.6.6 | 8.6.6 | GHSA-8cw5-rv98-5c46 |
Advisories 2
- DSA-4370-1 drupal7 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1659-1 drupal7 - security update Debian Security (DSA / DLA) · Mar 9, 2026