{"id":"CVE-2019-6339","published":"2019-01-22T15:00:00Z","modified":"2024-09-16T20:06:38Z","title":"PHAR stream wrapper Arbitrary PHP code execution","vendor":"Drupal","product":"Drupal core","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.3595,"percentile":0.98508,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.debian.org/security/2019/dsa-4370","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.drupal.org/sa-core-2019-002","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/02/msg00004.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":24.7,"factors":[{"name":"EPSS percentile","points":19.7},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2021-10-19","earliestUrl":"https://github.com/Vulnmachines/drupal-cve-2019-6339","repos":[{"name":"Vulnmachines/drupal-cve-2019-6339","url":"https://github.com/Vulnmachines/drupal-cve-2019-6339","stars":5,"created":"2021-10-19"}]},"first":{"date":"2021-10-19","source":"PoC-in-GitHub","url":"https://github.com/Vulnmachines/drupal-cve-2019-6339"},"provenance":"source"},"vendorSlug":"drupal","affectedVersions":[{"vendor":"Drupal","product":"Drupal core","versions":[">= 7.x, < 7.62",">= 8.6.x, < 8.6.6.",">= 8.5.x, < 8.5.9"]}],"affected":[{"ecosystem":"Packagist","package":"drupal/drupal","vulnerableRanges":[">=7.0.0, <7.62.0",">=8.0.0, <8.5.9",">=8.6.0, <8.6.6"],"patched":["7.62.0","8.5.9","8.6.6"],"from":["GHSA-8cw5-rv98-5c46"],"provenance":"source"},{"ecosystem":"Packagist","package":"drupal/core","vulnerableRanges":[">=7.0.0, <7.62.0",">=8.0.0, <8.5.9",">=8.6.0, <8.6.6"],"patched":["7.62.0","8.5.9","8.6.6"],"from":["GHSA-8cw5-rv98-5c46","DRUPAL-CORE-2019-002"],"provenance":"source"}],"summary":{"text":"Drupal core's handling of PHP's built-in phar stream wrapper contains a flaw that lives in code paths performing file operations on user-supplied input, where an untrusted phar:// URI can be processed. An attacker who can supply such a URI to a vulnerable file operation can achieve remote code execution, but exposure depends on the affected code typically requiring an administrative permission or an atypical configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:38:01Z"},"euvd":{"id":"EUVD-2022-0526","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-9861","published":"2018-04-19","fixed":"8.5.2","kev":false},{"cve":"CVE-2018-7602","published":"2018-07-19","fixed":"8.5.3","kev":true,"link":{"from":"CVE-2018-7602","to":"CVE-2019-6339","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:drupal/drupal","fromFixed":"7.59","toFixed":"7.62.0","daysApart":187},{"kind":"version-step","provenance":"source","package":"Packagist:drupal/drupal","fromFixed":"8.5.3","toFixed":"8.5.9","daysApart":187}]}},{"cve":"CVE-2019-6338","published":"2019-01-22","fixed":"8.6.6","kev":false},{"cve":"CVE-2019-6339","published":"2019-01-22","fixed":"8.6.6","kev":false},{"cve":"CVE-2019-6340","published":"2019-02-21","fixed":"8.6.10","kev":true,"link":{"from":"CVE-2019-6339","to":"CVE-2019-6340","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:drupal/drupal","fromFixed":"8.5.9","toFixed":"8.5.11","daysApart":30},{"kind":"version-step","provenance":"source","package":"Packagist:drupal/core","fromFixed":"8.6.6","toFixed":"8.6.10","daysApart":30}]}},{"cve":"CVE-2019-6341","published":"2019-03-26","fixed":"8.6.13","kev":false},{"cve":"CVE-2019-10909","published":"2019-05-16","fixed":"8.6.15","kev":false}],"package":"Packagist:drupal/drupal"}}