Skip to content
CVE Ledger
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • Data statusPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
  • Support the projectPage
Back

CVE-2019-6340

Drupal core - Highly critical - Remote Code Execution

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.)

Exploited in the wild

CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Drupal Core Remote Code Execution Vulnerability.

Added
25 Mar 2022
Fix due (US federal)
15 Apr 2022
Used by ransomware
Not known

Apply updates per vendor instructions.

ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 25 Mar 2022.

Public exploit

An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module, a Nuclei template and 3 Exploit-DB entries for it. 3 references of the record are tagged as an exploit. CISA's SSVC rates its exploitation: it is being exploited.

Show the exploits8

Metasploit modules1 module

Nuclei templates1 template

Exploit-DB3 entries

References tagged exploit3 references

Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from

Timeline

  1. ID reserved

    By drupal

  2. · 37 days later

    Published

  3. · 3 years later

    Added to CISA KEV

    Known exploited in the wild

  4. · 4 years later

    Record updated

Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.

Scores

CVSS scores of CVE-2019-6340, by who scored it
Scored byCVSSScoreVector
CISA-ADPADP (enrichment)3.1High8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVDNVD · Analyzed3.1High8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (exploitation in 30 days)
92.0% · top 0.2% of all CVEs (10 Nov 2026)
CISA SSVC
Exploitation: active · Automatable: no · Technical impact: total
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.1.

Affected products

Affected packages

From reviewed advisories of the GitHub Advisory Database.

References

7

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2019-6340 badge
[![CVE-2019-6340](https://cveledger.app/badge/CVE-2019-6340.svg)](https://cveledger.app/cve/CVE-2019-6340)

Record last updated .