Skip to main content

CVE-2019-6339 — Arbitrary PHP code execution in drupal/drupal

CRITICAL

Arbitrary PHP code execution in Drupal

Published January 6, 2022Updated December 10, 2025Source: OSV

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.

Check my composer.lock

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
Update drupal/drupal to 7.62.0 or later
composer require "drupal/drupal:^7.62.0"
Composer
Update drupal/drupal to 8.5.9 or later
composer require "drupal/drupal:^8.5.9"
Composer
Update drupal/drupal to 8.6.6 or later
composer require "drupal/drupal:^8.6.6"
Composer
Update drupal/core to 8.6.6 or later
composer require "drupal/core:^8.6.6"
Composer
Update drupal/core to 8.5.9 or later
composer require "drupal/core:^8.5.9"
Composer
Update drupal/core to 7.62.0 or later
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).

PackageFixed In
drupal/drupal Packagist · Affected: All versions7.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 versions7.62.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-20
    Improper Input ValidationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
35.95%
EPSS percentile: 98.8

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

GHSA-8cw5-rv98-5c46
DRUPAL-CORE-2019-002

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock