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

- Severity: Critical 9.8 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 35.9%, higher than 98% of CVEs (2026-12-01)
- Published: 2019-01-16T17:17:12.000Z
- Modified: 2026-09-19T21:53:11.000Z
- Also known as: GHSA-8cw5-rv98-5c46, DRUPAL-CORE-2019-002
- Weaknesses: CWE-20
- Assigned by: drupal

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

(As written by CVE List.)

## Affected

- Drupal Drupal core: from 7.x before 7.62; from 8.6.x before 8.6.6.; from 8.5.x before 8.5.9
- drupal/drupal (Packagist): from 7.0.0 before 7.62.0; from 8.0.0 before 8.5.9; from 8.6.0 before 8.6.6
- drupal/core (Packagist): from 7.0.0 before 7.62.0; from 8.0.0 before 8.5.9; from 8.6.0 before 8.6.6
- drupal drupal: from 7.0 before 7.62; from 8.5.0 before 8.5.9; from 8.6.0 before 8.6.6
- debian debian_linux: 8.0; 9.0

## Every score

- GitHub: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://www.debian.org/security/2019/dsa-4370> (third-party-advisory, vendor-advisory, web)
- <https://www.drupal.org/sa-core-2019-002> (patch, vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2019/02/msg00004.html> (mailing-list, third-party-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)

## Sources

- CVE List: [CVE-2019-6339](https://www.cve.org/CVERecord?id=CVE-2019-6339), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-8cw5-rv98-5c46](https://github.com/advisories/GHSA-8cw5-rv98-5c46), CC-BY-4.0, modified 2025-12-10
- Drupal Security Team: [DRUPAL-CORE-2019-002](https://osv.dev/vulnerability/DRUPAL-CORE-2019-002), MIT, modified 2026-09-19
- NVD: [CVE-2019-6339](https://nvd.nist.gov/vuln/detail/CVE-2019-6339), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-6339 · Whole record: https://cve.day/CVE-2019-6339.json · Rebuilt by cve.day 2026-11-25T22:57:43.664Z
