8.1

CVE-2019-6340: Drupal Core Remote Code Execution Vulnerability

CVSS: 8.1v3.1HighKEVAnalyzed
Published 21-02-2019Last modified 21-10-2025

Vulnerability summary

CVE-2019-6340 is a high (CVSS 8.1) Deserialization of Untrusted Data vulnerability in Drupal Core. It is known to be exploited: CISA lists it, first on 25-03-2022. EPSS estimates a 92.02% chance of exploitation in the next 30 days, higher than 99.8% of scored vulnerabilities. 4 public exploits are recorded.

Overall risk
85/100
0100
Critical · default modelHow is this calculated?
CVSS score
8.1/10
010
High · v3.1 (CVE.org)
EPSS score
92.02%
0%100%
Critical · 0.00 pp in 30 days
KEVListedCISA
RansomwareNone recordedNo known use recorded
Public exploits4exploit-database, metasploit

Timeline

  1. 21-02-2019
    PublishedVulnerability first disclosed.
  2. 25-03-2022
    Added to CISA KEVDrupal Core Remote Code Execution Vulnerability
  3. 15-04-2022
    CISA remediation dueApply updates per vendor instructions.
  4. 21-10-2025
    Last modifiedVulnerability information updated.

Description

Some field types do not properly sanitize data from non-form sources in Drupal 8.5.x before 8.5.11 and Drupal 8.6.x before 8.6.10. This can lead to arbitrary PHP code execution in some cases. A site is only affected by this if one of the following conditions is met: The site has the Drupal 8 core RESTful Web Services (rest) module enabled and allows PATCH or POST requests, or the site has another web services module enabled, like JSON:API in Drupal 8, or Services or RESTful Web Services in Drupal 7. (Note: The Drupal 7 Services module itself does not require an update at this time, but you should apply other contributed updates associated with this advisory if Services is in use.)

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

92.02%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

0.00 pp

From 92.02% on 20-09-2026

20-09-202620-10-2026
EPSS score
92.02%

Known exploited

Compare KEV catalogs
CISA KEVListed
Added
25-03-2022
Federal due date
15-04-2022

CISA required action

Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2019-6340

Public exploits

4 found
  • exploit-databaseremotephpVerified

    Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit)

    Maturity: weaponized

  • exploit-databasephpUnverified

    Drupal < 8.6.10 / < 8.5.11 - REST Module Remote Code Execution

    Maturity: poc

  • exploit-databasephpUnverified

    Drupal < 8.6.9 - REST Module Remote Code Execution

    Maturity: poc

Show all 4 exploits
  • MetasploitMetasploitremoteUnverified

    Drupal RESTful Web Services unserialize() RCE

    exploit/unix/webapp/drupal_restws_unserialize

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Drupal2 products
  • drupal≥ 8.5.0, < 8.5.11 | ≥ 8.6.0, < 8.6.10
  • drupal core≥ 8.5, < 8.5.11 | ≥ 8.6, < 8.6.10

1 vendor · 2 products

References

7 links