Loading...
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

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

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: packagist (2).

PackageEcosystemAffectedFixed In
drupal/drupal
packagist
All versions7.62.0
drupal/drupal
packagist
8.0.0, 8.0.1, 8.0.2, 8.0.3 (+70 more)8.5.9
drupal/core
packagist
8.6.0, 8.6.1, 8.6.2, 8.6.3 (+2 more)8.6.6
drupal/core
packagist
8.0.0, 8.0.1, 8.0.2, 8.0.3 (+70 more)8.5.9
drupal/drupal
packagist
8.6.0, 8.6.1, 8.6.2, 8.6.3 (+2 more)8.6.6
drupal/core
packagist
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. 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

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

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

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies