Skip to content

Arbitrary PHP code execution in Drupal

Critical severity GitHub Reviewed Published Jan 6, 2022 to the GitHub Advisory Database • Updated Feb 6, 2024

Package

composer drupal/core (Composer)

Affected versions

>= 7.0.0, < 7.62.0
>= 8.0.0, < 8.5.9
>= 8.6.0, < 8.6.6

Patched versions

7.62.0
8.5.9
8.6.6
composer drupal/drupal (Composer)
>= 7.0.0, < 7.62.0
>= 8.0.0, < 8.5.9
>= 8.6.0, < 8.6.6
7.62.0
8.5.9
8.6.6

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.

References

Reviewed Jan 6, 2022
Published to the GitHub Advisory Database Jan 6, 2022
Last updated Feb 6, 2024

Severity

Critical
9.8
/ 10

CVSS base metrics

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

Weaknesses

CVE ID

CVE-2019-6339

GHSA ID

GHSA-8cw5-rv98-5c46

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.