CVE-2017-6381: High severity Drupal Drupal vulnerability

Published Mar 15, 2017
·
Updated

A 3rd party development library including with Drupal 8 development dependencies is vulnerable to remote code execution. This is mitigated by the default .htaccess protection against PHP execution, and the fact that Composer development dependencies aren't normal installed. You might be vulnerable to this if you are running a version of Drupal before 8.2.2. To be sure you aren't vulnerable, you can remove the <siteroot>/vendor/phpunit directory from your production deployments

Affected Software

64 affected componentsFixes available
composer/drupal/core>=8.0, <8.1.0, >=8.1.0, <8.2.0, >=8.2.0, <8.2.7
composer/drupal/drupal>=8.0, <8.1.0, >=8.1.0, <8.2.0, >=8.2.0, <8.2.7
composer/drupal/drupal>=8.0<8.2.7
8.2.7
composer/drupal/core>=8.0<8.2.7
8.2.7
Drupal Drupal=8.0.0
Drupal Drupal=8.0.0-alpha10
Drupal Drupal=8.0.0-alpha11
Drupal Drupal=8.0.0-alpha12
Drupal Drupal=8.0.0-alpha13
Drupal Drupal=8.0.0-alpha14
Drupal Drupal=8.0.0-alpha15
Drupal Drupal=8.0.0-alpha2
Drupal Drupal=8.0.0-alpha3
Drupal Drupal=8.0.0-alpha4
Drupal Drupal=8.0.0-alpha5
Drupal Drupal=8.0.0-alpha6
Drupal Drupal=8.0.0-alpha7
Drupal Drupal=8.0.0-alpha8
Drupal Drupal=8.0.0-alpha9
Drupal Drupal=8.0.0-beta1
Drupal Drupal=8.0.0-beta10
Drupal Drupal=8.0.0-beta11
Drupal Drupal=8.0.0-beta12
Drupal Drupal=8.0.0-beta13
Drupal Drupal=8.0.0-beta14
Drupal Drupal=8.0.0-beta15
Drupal Drupal=8.0.0-beta16
Drupal Drupal=8.0.0-beta2
Drupal Drupal=8.0.0-beta3
Drupal Drupal=8.0.0-beta4
Drupal Drupal=8.0.0-beta6
Drupal Drupal=8.0.0-beta7
Drupal Drupal=8.0.0-beta9
Drupal Drupal=8.0.0-rc1
Drupal Drupal=8.0.0-rc2
Drupal Drupal=8.0.0-rc3
Drupal Drupal=8.0.0-rc4
Drupal Drupal=8.0.1
Drupal Drupal=8.0.2
Drupal Drupal=8.0.3
Drupal Drupal=8.0.4
Drupal Drupal=8.0.5
Drupal Drupal=8.0.6
Drupal Drupal=8.1.0
Drupal Drupal=8.1.0-beta1
Drupal Drupal=8.1.0-beta2
Drupal Drupal=8.1.0-rc1
Drupal Drupal=8.1.1
Drupal Drupal=8.1.2
Drupal Drupal=8.1.3
Drupal Drupal=8.1.4
Drupal Drupal=8.1.5
Drupal Drupal=8.1.6
Drupal Drupal=8.1.7
Drupal Drupal=8.1.8
Drupal Drupal=8.1.9
Drupal Drupal=8.1.10
Drupal Drupal=8.2.0
Drupal Drupal=8.2.0-beta1
Drupal Drupal=8.2.0-beta2
Drupal Drupal=8.2.0-beta3
Drupal Drupal=8.2.0-rc1
Drupal Drupal=8.2.0-rc2
Drupal Drupal=8.2.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/drupal/drupal to a version that resolves this vulnerability.

    Fixed in 8.2.7
  2. Upgrade

    Upgrade composer/drupal/core to a version that resolves this vulnerability.

    Fixed in 8.2.7
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.2.2
  4. Remove

    Remove drupal 8 production deployments/<siteroot>/vendor/phpunit from your environment.

    Remove the <siteroot>/vendor/phpunit directory from production deployments to ensure you aren't vulnerable.

  5. Configuration

    Ensure the default .htaccess protection against PHP execution is in place for production deployments to mitigate the remote code execution risk.

    Drupal PHP execution in production via .htaccess protection = ensure default .htaccess protection is present (prevents PHP execution)

Event History

Mar 15, 2017
Advisory Published
08:19 PM
Mar 16, 2017
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
DescriptionWeakness
Data Sourced
via NVD·02:59 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2017-6381?

CVE-2017-6381 has a critical severity rating due to its potential for remote code execution.

2

How do I fix CVE-2017-6381?

To fix CVE-2017-6381, upgrade to Drupal core version 8.2.7 or later.

3

What versions of Drupal are affected by CVE-2017-6381?

CVE-2017-6381 affects Drupal versions 8.0.x and 8.1.x up to 8.1.10, as well as versions from 8.2.0 up to 8.2.6.

4

What impacts does CVE-2017-6381 pose to my Drupal site?

If exploited, CVE-2017-6381 allows attackers to execute arbitrary PHP code on the server, potentially compromising the entire site.

5

Is CVE-2017-6381 mitigated by default settings?

Yes, CVE-2017-6381 is partially mitigated by default .htaccess restrictions that protect against PHP execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203