Skip to content
Fencer Intel
critical 9.8

CVE-2019-6339 in the critical feed json

PHAR stream wrapper Arbitrary PHP code execution

published 7y ago modified last mo. also DRUPAL-CORE-2019-002 , GHSA-8cw5-rv98-5c46 , EUVD-2022-0526

cvss
9.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
36.0%
EPSS 36.0% chance of exploitation in 30 days, percentile 98%
public exploits
0
none known

Summary

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.

Patch / fix

  • packagist drupal/drupal 7.62.0, 8.5.9, 8.6.6
  • packagist drupal/core 7.62.0, 8.5.9, 8.6.6
  • Drupal Drupal core 7.62, 8.5.9, 8.6.6.

Is CVE-2019-6339 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2019-6339 updated cvss 5.7

drupal: Vulnerability in the PHP's built-in phar stream wrapper

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

35.95% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P
GitHub 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
packagist drupal/drupal
>=7.0.0, <7.62.0
>=8.0.0, <8.5.9
>=8.6.0, <8.6.6
7.62.0
8.5.9
8.6.6
packagist drupal/core
>=7.0.0, <7.62.0
>=8.0.0, <8.5.9
>=8.6.0, <8.6.6
7.62.0
8.5.9
8.6.6

Affected products

  • Drupal Drupal core

Classification

Weakness
  • CWE-20 Improper Input Validation

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.