CVEfocus › CVE database › CVE-2019-6339

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

CVSS 9.8 CriticalEPSS 35.9% (higher than 98% of CVEs)Published 2019-01-22Updated 2024-09-16Assigner: 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.

What to do

Likely to be exploited: EPSS gives a 36% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Packagist: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
2Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04drupal7Fix pendingUBUNTU-CVE-2019-6339
Ubuntu 14.04drupal7Fix pendingUBUNTU-CVE-2019-6339
Packagist librarydrupal/coreFixed7.62.0GHSA-8cw5-rv98-5c46
Packagist librarydrupal/drupalFixed8.5.9GHSA-8cw5-rv98-5c46

What the vendor says

As published in the CVE record by drupal, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.