CVE-2019-6339
published 2019-01-22CVE-2019-6339: 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…
PriorityP268critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EPSS
33.23%
98.2th percentile
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.
Affected
15 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| drupal | core | >= 7.0.0 < 7.62.0 | 7.62.0 |
| drupal | core | >= 8.0.0 < 8.5.9 | 8.5.9 |
| drupal | core | >= 8.6.0 < 8.6.6 | 8.6.6 |
| drupal | drupal | >= 7.0 < 7.62 | 7.62 |
| drupal | drupal | >= 7.0.0 < 7.62.0 | 7.62.0 |
| drupal | drupal | >= 8.0.0 < 8.5.9 | 8.5.9 |
| drupal | drupal | >= 8.5.0 < 8.5.9 | 8.5.9 |
| drupal | drupal | >= 8.6.0 < 8.6.6 | 8.6.6 |
| drupal | drupal | >= 8.6.0 < 8.6.6 | 8.6.6 |
| drupal | drupal_core | — | — |
| drupal | drupal_core | >= 7.x < 7.62 | 7.62 |
| drupal | drupal_core | >= 8.5.x < 8.5.9 | 8.5.9 |
| drupal | drupal_core | >= 8.6.x < 8.6.6. | 8.6.6. |
Detection & IOCsextracted from sources · hover to see the quote
- →Monitor for file operations involving untrusted phar:// URIs in Drupal request parameters or file upload fields, which may indicate exploitation attempts. ↗
- →Detect upload of files with .phar extension to Drupal file fields, as these can be used to achieve remote code execution. ↗
- →Exploitation typically requires access to an administrative permission or atypical configuration — prioritize alerting on phar:// usage in admin-accessible code paths. ↗
- ·Drupal 7 sites on PHP 5.3.2 and earlier cannot use the replacement phar stream wrapper; instead the built-in phar stream wrapper is disabled entirely. Re-enabling it on those versions restores the vulnerable behavior. ↗
- ·The initial patch (8.6.6, 8.5.9, 7.62) introduced a fatal error for some Drush installations; follow-on releases 8.6.7, 8.5.10, and 7.63 were issued to resolve this regression. ↗
CVSS provenance
nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Arbitrary PHP code execution in Drupal
ghsa·2022-01-06
CVE-2019-6339 [CRITICAL] CWE-20 Arbitrary PHP code execution in Drupal
Arbitrary PHP code execution in Drupal
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.
OSV
Arbitrary PHP code execution in Drupal
osv·2022-01-06
CVE-2019-6339 [CRITICAL] Arbitrary PHP code execution in Drupal
Arbitrary PHP code execution in Drupal
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.
OSV
CVE-2019-6339: In Drupal Core versions 7
osv·2019-01-22·CVSS 9.8
CVE-2019-6339 [CRITICAL] CVE-2019-6339: In Drupal Core versions 7
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.
OSV
CVE-2019-6339: A remote code execution vulnerability exists in PHP's built-in phar stream wrapper when performing file operations on an untrusted phar:// URI
osv·2019-01-16
CVE-2019-6339 CVE-2019-6339: A remote code execution vulnerability exists in PHP's built-in phar stream wrapper when performing file operations on an untrusted phar:// URI
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.
Drupal
Drupal core - Critical - Arbitrary PHP code execution - SA-CORE-2019-002
vendor_drupal·2019-01-16
CVE-2019-6339 [HIGH] Drupal core - Critical - Arbitrary PHP code execution - SA-CORE-2019-002
Title: Drupal core - Critical - Arbitrary PHP code execution - SA-CORE-2019-002
Vulnerability Type: Arbitrary PHP code execution
Description: 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.
Solution: If you are using Drupal 8.6.x, upgrade to Drupal 8.6.6 . If you are using Drupal 8.5.x or earlier, upgrade to Drupal 8.5.9 . If you are using Drupal 7.x, upgrade to Drupal 7.62 . Versio
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-6338 CVE-2019-6339 drupal: various flaws [fedora-all]
bugzilla·2019-01-23·CVSS 8.0
CVE-2019-6338 [HIGH] CVE-2019-6338 CVE-2019-6339 drupal: various flaws [fedora-all]
CVE-2019-6338 CVE-2019-6339 drupal: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedora. Whi
Bugzilla
CVE-2019-6339 drupal: Vulnerability in the PHP's built-in phar stream wrapper
bugzilla·2019-01-23·CVSS 9.8
CVE-2019-6339 [CRITICAL] CVE-2019-6339 drupal: Vulnerability in the PHP's built-in phar stream wrapper
CVE-2019-6339 drupal: Vulnerability in the PHP's built-in phar stream wrapper
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.
Upstream Issue:
https://www.drupal.org/sa-core-2019-002
Discussion:
Created drupal tracking bugs for this issue:
Affects: fedora-all [bug 1668758]
---
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a pa
https://lists.debian.org/debian-lts-announce/2019/02/msg00004.htmlhttps://www.debian.org/security/2019/dsa-4370https://www.drupal.org/sa-core-2019-002https://lists.debian.org/debian-lts-announce/2019/02/msg00004.htmlhttps://www.debian.org/security/2019/dsa-4370https://www.drupal.org/sa-core-2019-002
2019-01-22
Published