PHAR stream wrapper Arbitrary PHP code execution
Drupal core
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| drupal/drupal Packagist |
|
|
| drupal/core Packagist |
Drupal core
| Product | Affected | Fixed in |
|---|---|---|
| drupal/drupal Packagist |
|
|
| drupal/core Packagist |
≥ 7.0.0 · < 7.62.0≥ 8.0.0 · < 8.5.9≥ 8.6.0 · < 8.6.6
|
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.
From the CVE record · drupal
Drupal code that performs file operations on insufficiently validated user input may be vulnerable through PHP's phar stream wrapper. A remote attacker could execute code if they can reach such a code path; these paths typically require an administrative permission or an atypical configuration.
Teams running Drupal core or the Packagist packages drupal/drupal or drupal/core should check versions 7.x before 7.62, 8.5.x before 8.5.9, and 8.6.x before 8.6.6.