CVE-2019-6339
CRITICAL 9.8CVSS 3.0Arbitrary 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.
- Published
- 22 Jan 2019
- Last modified
- 19 Sep 2026
- Assigned by
- mlhess@drupal.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- DRUPAL-CORE-2019-002GHSA-8cw5-rv98-5c46
- Sources
- NVDJSONOSV DRUPAL-CORE-2019-002JSONOSV GHSA-8cw5-rv98-5c46JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | drupal | drupalcpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:* |
>= 7.0, < 7.62 | 7.62 |
| NVD | drupal | drupalcpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:* |
>= 8.5.0, < 8.5.9 | 8.5.9 |
| NVD | drupal | drupalcpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:* |
>= 8.6.0, < 8.6.6 | 8.6.6 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | Packagist | drupal/core | >= 8.0.0, < 8.5.9; >= 8.6.0, < 8.6.6 | 8.5.9, 8.6.6 |
| OSV | Packagist | drupal/drupal | >= 7.0.0, < 7.62.0 | 7.62.0 |
| OSV | Packagist | drupal/drupal | >= 8.0.0, < 8.5.9 | 8.5.9 |
| OSV | Packagist | drupal/drupal | >= 8.6.0, < 8.6.6 | 8.6.6 |
| OSV | Packagist | drupal/core | >= 7.0.0, < 7.62.0 | 7.62.0 |
| OSV | Packagist | drupal/core | >= 8.0.0, < 8.5.9 | 8.5.9 |
| OSV | Packagist | drupal/core | >= 8.6.0, < 8.6.6 | 8.6.6 |
References
- https://lists.debian.org/debian-lts-announce/2019/02/msg00004.html · Third Party Advisory, WEB
- https://www.debian.org/security/2019/dsa-4370 · Third Party Advisory, WEB
- https://www.drupal.org/sa-core-2019-002 · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-6339 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2019-6339.yaml · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2019-6339.yaml · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 22 Jan 2019)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 6 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Jan 2019)