CVE-2019-6339 — Arbitrary PHP code execution in drupal/drupal
Arbitrary PHP code execution in Drupal
What Should I Do?
Fix Within 2-4 Weeks
Moderate exploitation risk (35.95% probability in 30 days). Schedule remediation soon.
Does your project use an affected drupal/drupal version?
Paste your composer.lock to check it for CVE-2019-6339 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published January 6, 2022 (1785 days ago).
- Last revised December 10, 2025 — 1434 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "drupal/drupal:^7.62.0"
composer require "drupal/drupal:^8.5.9"
composer require "drupal/drupal:^8.6.6"
composer require "drupal/core:^8.6.6"
composer require "drupal/core:^8.5.9"
composer require "drupal/core:^7.62.0"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: Packagist (2).
| Package | Fixed In |
|---|---|
| drupal/drupal Packagist · Affected: All versions | 7.62.0 |
| drupal/drupal Packagist · Affected: 8.0.0, 8.0.1, 8.0.2, 8.0.3 (+70 more) | 8.5.9 |
| drupal/drupal Packagist · Affected: 8.6.0, 8.6.1, 8.6.2, 8.6.3 (+2 more) | 8.6.6 |
| drupal/core Packagist · Affected: 8.6.0, 8.6.1, 8.6.2, 8.6.3 (+2 more) | 8.6.6 |
| drupal/core Packagist · Affected: 8.0.0, 8.0.1, 8.0.2, 8.0.3 (+70 more) | 8.5.9 |
| drupal/core Packagist · Affected: All versions | 7.62.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-20Improper Input ValidationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-6339ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2019-6339.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2019-6339.yamlWEB
- https://lists.debian.org/debian-lts-announce/2019/02/msg00004.htmlWEB
- https://www.debian.org/security/2019/dsa-4370WEB
- https://www.drupal.org/sa-core-2019-002WEB
Frequently Asked Questions
- What is CVE-2019-6339?
- Arbitrary PHP code execution in Drupal. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2019-6339?
- CVE-2019-6339 affects drupal/drupal and drupal/core. It has a 35.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2019-6339 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 98.8% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2018-7602CRITICAL
Drupal Core Remote Code Execution Vulnerability
- CVE-2018-7600CRITICAL
Drupal Core Remote Code Execution Vulnerability
- CVE-2017-6920CRITICAL
Drupal PECL YAML parser unsafe object handling
- CVE-2017-6925CRITICAL
Drupal Entity access bypass for entities that do not have UUIDs or have protected revisions
- CVE-2019-11831CRITICAL
Directory Traversal in typo3/phar-stream-wrapper
- CVE-2020-13671HIGH
Drupal core Unrestricted Upload of File with Dangerous Type
- CVE-2024-55638HIGH
Drupal core contains a potential PHP Object Injection vulnerability
- CVE-2024-55636LOW
Drupal core contains a potential PHP Object Injection vulnerability