CVE-2019-6339: PHAR stream wrapper Arbitrary PHP code execution

Published Jan 15, 2019
·
Updated

Critical - Arbitrary PHP code execution

Other sources

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.

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.

GitHub

Affected Software

14 affected componentsFixes available
composer/drupal/drupal>=7.0.0, <7.62.0, >=8.0.0, <8.1.0, >=8.1.0, <8.2.0, >=8.2.0, <8.3.0, >=8.3.0, <8.4.0, >=8.4.0, <8.5.0, >=8.5.0, <8.5.9, >=8.6.0, <8.6.6
composer/drupal/core>=7.0.0, <7.62.0, >=8.0.0, <8.1.0, >=8.1.0, <8.2.0, >=8.2.0, <8.3.0, >=8.3.0, <8.4.0, >=8.4.0, <8.5.0, >=8.5.0, <8.5.9, >=8.6.0, <8.6.6
debian/drupal7
composer/drupal/core>=8.6.0<8.6.6
8.6.6
composer/drupal/core>=8.0.0<8.5.9
8.5.9
composer/drupal/core>=7.0.0<7.62.0
7.62.0
composer/drupal/drupal>=8.6.0<8.6.6
8.6.6
composer/drupal/drupal>=8.0.0<8.5.9
8.5.9
composer/drupal/drupal>=7.0.0<7.62.0
7.62.0
Drupal Drupal>=7.0<7.62
Drupal Drupal>=8.5.0<8.5.9
Drupal Drupal>=8.6.0<8.6.6
Debian Debian Linux=8.0
Debian Debian Linux=9.0

Remediation

Event History

Jan 15, 2019
Advisory Published
05:41 PM
Jan 22, 2019
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
DescriptionWeakness
Data Sourced
via NVD·03:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2019-6339?

CVE-2019-6339 has been classified as a critical vulnerability due to its potential for arbitrary PHP code execution.

2

How do I fix CVE-2019-6339?

To fix CVE-2019-6339, update your Drupal installation to version 7.62 or later, 8.5.9 or later, or 8.6.6 or later.

3

What versions of Drupal are affected by CVE-2019-6339?

CVE-2019-6339 affects Drupal Core versions 7.x prior to 7.62, 8.5.x prior to 8.5.9 and 8.6.x prior to 8.6.6.

4

Is CVE-2019-6339 an exploit that can be easily executed?

Yes, CVE-2019-6339 can be exploited remotely, making it accessible to malicious actors.

5

What should I do if my Drupal site is vulnerable to CVE-2019-6339?

If your Drupal site is vulnerable to CVE-2019-6339, immediately apply the necessary updates to mitigate the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203