CVE-2019-6340
Exploitation confirmed. First attested on 2022-03-25 by CISA-ADP, CISA KEV, GCVE · kevintel, GCVE · shadowserver.
- Published2019-02-21
- Fixed in8.6.10 · 8.5.11 · 7.62.0
- WeaknessCWE-502
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.)
Timeline
dates in UTC- 2019-02-2121:29CVE publishedNVD
- 2019-02-23Exploit-DB entryExploit-DB
- 2022-03-25Added to the CISA KEV catalogCISA KEV
- 2022-03-25Listed as exploited by GCVEGCVE
- 2022-03-25Exploitation first reportedCISA KEV
- 2025-02-0712:38SSVC exploitation set to activeCISA-ADP
Observed activity
isMalicious corpus · updated 2026-11-03 03:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2019-6340?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2019-6340?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.6 | ≥ 8.6.0, < 8.6.10 | 8.6.10 | NVD · OSV |
| 8.5 | ≥ 8.5.0, < 8.5.11 | 8.5.11 | NVD |
| 8.x | ≥ 8.0.0, < 8.5.11 | 8.5.11 | OSV |
| 7.x | ≥ 7.0.0, < 7.62.0 | 7.62.0 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As drupal, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Drupal CoreAffected
- ≥ 8.5, < 8.5.11fixed in 8.5.11custom
- ≥ 8.6, < 8.6.10fixed in 8.6.10custom
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2019-03-08
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Vendor advisories
- CVE-2019-6340 Red Hat Product Security
drupal: does not sanitize data from non-form sources leads to arbitrary PHP code execution
Fix
- Update Drupal to 8.6.10 · 8.5.11 · 7.62.0
- CISA’s required action: Apply updates per vendor instructions.due 2022-04-15
Advisories and patches
- www.drupal.orgMitigation · Vendor Advisory
- www.exploit-db.comPatch
Detection
read 2026-11-02 22:42 UTC- Nuclei template
- available ProjectDiscovery
- Proof-of-concept repositories
- 11 repositories, unverifiedg0rx/Drupal-SA-CORE-2019-003knqyf263/CVE-2019-6340DevDungeon/CVE-2019-6340-Drupal-8.6.9-REST-Auth-Bypassoways/CVE-2019-6340cved-sources/cve-2019-6340 PoC-in-GitHub
- Metasploit modules
- 1 moduleexploit/unix/webapp/drupal_restws_unserializerank: normalModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
CISA Known Exploited Vulnerability
- Date Added
- 2022-03-25
- Patch Due Date
- 2022-04-15
- Ransomware Use
- Unknown
- Required Action
- Apply updates per vendor instructions.
Sources
- CISA KEVKEV entry2022-03-25
- ENISA EUVDexploitation2022-03-252022-03-25
- GCVEexploitation2022-03-25
- CISA-ADPSSVC decisionactive2025-02-07
- OpenCVESSVC decisionactive—
- CISA-ADPCVSS 3.18.12025-02-07
- NVDCVSS 3.18.1read 2026-10-23
- NVDCVSS 2.06.8read 2026-10-23
- CISA-ADPweakness (CWE)CWE-5022025-02-07
- NVDweakness (CWE)CWE-502read 2026-10-23
- FIRST EPSSEPSS score92.0 %read 2026-11-02
- PoC-in-GitHubproof of concept11read 2026-11-02
- Exploit-DBdetectionread 2026-11-02
- ProjectDiscoverydetectionread 2026-11-02
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2024-04-23
Identifiers
- DRUPAL-CORE-2019-003same flawDrupal · MIT
- EUVD-2022-2184same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-3gx6-h57h-rm27same flawGitHub Advisory Database · CC-BY-4.0
- exploit/unix/webapp/drupal_restws_unserializeexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2019-02-21
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-3gx6-h57h-rm27
Frequently asked questions
What is CVE-2019-6340?
Is CVE-2019-6340 actively exploited?
What is the CVSS score for CVE-2019-6340?
Running drupal/core? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA KEV · CC0-1.0 (cisagov/kev-data)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-3gx6-h57h-rm27
- Metasploit Framework · BSD-3-Clause
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0