CVE-2017-6381: Drupal Remote Code Execution

drupal/core Updated 02 Oct 2025

Summary

13/05/2022
Yes i
High
8.1

CVE-2017-6381: Drupal Remote code execution. Affects drupal/core versions >= 8.0, < 8.2.7. Fixed in 8.2.7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Drupal is a popular open-source content management system (CMS) written in PHP. It is widely used for building websites and web applications. The vulnerability identified as CVE-2017-6381 affects Drupal versions before 8.2.2. Drupal relies on various third-party libraries, and in this case, a vulnerable development library included with Drupal 8 development dependencies exposes it to remote code execution. However, the default .htaccess protection against PHP execution and the fact that Composer development dependencies are not normally installed mitigate the risk to some extent.

Vulnerability Detail

The vulnerability allows an attacker to execute arbitrary code remotely on a Drupal site running an affected version. This can lead to a complete compromise of the site, enabling the attacker to perform various malicious activities such as stealing sensitive data, modifying content, or even taking control of the underlying server. The vulnerability is considered high severity with a CVSS score of 8.1. It is important to note that the vulnerability is only present in Drupal versions before 8.2.2.

How To Fix

Minimum fixed version

8.2.7

This is the first release that contains the fix.

composer require drupal/core:8.2.7

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, applying the recommended fix by updating Drupal to the latest version and removing the mentioned directory should effectively address the issue.

Conclusion

The CVE-2017-6381 vulnerability in Drupal exposes sites running affected versions to remote code execution. To mitigate the risk, it is essential to update Drupal to version 8.2.7 or later and remove the mentioned directory from production deployments. Regularly monitoring for open-source vulnerabilities using tools like Vulert can help ensure the security of your Drupal site. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for drupal/core →

Share this vulnerability

FAQ

Drupal is an open-source content management system (CMS) used for building websites and web applications.

Remote code execution refers to the ability of an attacker to execute arbitrary code on a target system or application remotely, often leading to complete compromise.

You can use the Vulert Playground at Vulert Scanner to check if your Drupal site is affected by this vulnerability. Simply provide your composer.lock file to analyze and receive real-time alerts for open-source vulnerabilities.

The CVSS score for this vulnerability is 8.1, indicating a high severity level.

While specific exploits may exist, they have not been mentioned in the provided information. However, it is crucial to address the vulnerability promptly by applying the recommended fix.

Related vulnerabilities

Recent vulnerabilities recorded for drupal/core.

How To Fix

Minimum fixed version

8.2.7

This is the first release that contains the fix.

composer require drupal/core:8.2.7

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback