CVE-2019-6339

PHAR stream wrapper Arbitrary PHP code execution

published January 22, 2019

CVSS
—
EPSS
36%
Percentile
98.5
In the wild
Unconfirmed
What it is

🚨 A tricky remote code execution vulnerability lurks in Drupal Core, potentially exposing your site to unauthorized commands through user input. 🔥 Think of it like a restaurant where a chef is accepting orders without looking at the menu first. If someone slips in a surprise ingredient, it could spoil the whole dish! In this case, Drupal is the chef, and untrusted phar:// URIs might just be those sneaky surprise ingredients. If successfully exploited, an attacker could execute arbitrary PHP code on your server, leading to a full takeover of your site. This could mean unauthorized access to sensitive data, tampering with your content, or even spreading malware! The risk is heightened if administrative permissions are mismanaged or if the configuration is unusual.

Put simply

Think of it like a restaurant where a chef is accepting orders without looking at the menu first. If someone slips in a surprise ingredient, it could spoil the whole dish! In this case, Drupal is the chef, and untrusted phar:// URIs might just be those sneaky surprise ingredients. This vulnerability arises from the mishandling of file operations on insufficiently validated user input using PHP's phar stream wrapper. This occurs in multiple versions of Drupal Core, where certain code paths can be accessed with improper validation.

What to do

If successfully exploited, an attacker could execute arbitrary PHP code on your server, leading to a full takeover of your site. This could mean unauthorized access to sensitive data, tampering with your content, or even spreading malware! The risk is heightened if administrative permissions are mismanaged or if the configuration is unusual. To safeguard your site, immediately upgrade to Drupal Core 7.62, 8.6.6, or 8.5.9 or later. Ensure that your configurations are secure and limit file operations regarding untrusted input. Regularly review user permissions to minimize risks! You’ve got this! With these steps, your site will be fortified against this sneaky vulnerability in no time. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.35577 · 98.5th percentile
Published
2019-01-22T15:00Z
EPSS history
Timeline
  • 22 JAN 15:00Z
    PHAR stream wrapper Arbitrary PHP code execution
    cvelistv5