CVE-2019-6340: Drupal core - Highly critical - Remote Code Execution
Noroxi assessment
Priority: Now (action score 90/100)
- CISA has confirmed exploitation in the wild (Mar 25, 2022). Remediation deadline for US federal agencies: Apr 15, 2022.
- A ready-made attack module is public (Metasploit, Nuclei); exploiting it takes no special expertise.
- Probability of exploitation in the next 30 days: 92% (FIRST EPSS); higher than 99.8% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. Special conditions such as timing or configuration are required.
- Fixed version: drupal/core (Packagist) 7.62.0, 8.5.11, 8.6.10; drupal/drupal (Packagist) 7.62.0, 8.5.11, 8.6.10.
Patch today or shut off access. Upgrade to drupal/core (Packagist) 7.62.0, 8.5.11, 8.6.10; drupal/drupal (Packagist) 7.62.0, 8.5.11, 8.6.10 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · CISA KEV · FIRST EPSS
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.)
- Published
- Feb 21, 2019
- Updated
- Jun 16, 2026
- EPSS
- 92.0% · 99th percentile
- CWE
- CWE-502
Report tools
Action score
90
Patch today or shut off access.
- CVSS
- 32 / 40 · 8.1 / 10
- CISA KEV
- 30 / 30 · Listed
- EPSS
- 28 / 30 · 92.0%
CISA SSVC decision
- Exploitation
- active
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
Actively exploited in the wild
CISA added this to its Known Exploited Vulnerabilities catalog on Mar 25, 2022. That signals real attacks, not theory.
Remediation deadline for US federal agencies: Apr 15, 2022.
Get told when this record changes
- In CISA KEV: exploitation in the wild confirmed
- Weaponized exploit exists
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| drupal | drupal | cpe:2.3:a:drupal:drupal |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (drupal). Independent of NVD's CPE analysis and usually ahead of it.
Drupal Drupal Core
- 8.5 and later · before 8.5.11affected
- 8.6 and later · before 8.6.10affected
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- drupal drupal8.5.0 and later · before 8.5.11
- drupal drupal8.6.0 and later · before 8.6.10
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Packagist | drupal/core | from 7.0.0 · before 7.62.0 | 7.62.0 |
| Packagist | drupal/core | from 8.0.0 · before 8.5.11 | 8.5.11 |
| Packagist | drupal/core | from 8.6.0 · before 8.6.10 | 8.6.10 |
| Packagist | drupal/drupal | from 7.0.0 · before 7.62.0 | 7.62.0 |
| Packagist | drupal/drupal | from 8.0.0 · before 8.5.11 | 8.5.11 |
| Packagist | drupal/drupal | from 8.6.0 · before 8.6.10 | 8.6.10 |
Same product
drupal: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-7602Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-004KEV99Now
- CVE-2018-7600Drupal before 7.58, 8.x before 8.3.9, 8.4.x before 8.4.6, and 8.5.x before 8.5.1 allows remote attackers to execute arbitrary code because…KEV99Now
- CVE-2026-9082Drupal core - Highly critical - SQL injection - SA-CORE-2026-004KEV96Now
Published before and after this one in the same product
- ← EarlierCVE-2017-6923Jan 22, 2019 · Access bypass in Drupal 8 views27Monitor
- ← EarlierCVE-2019-6339Jan 22, 2019 · PHAR stream wrapper Arbitrary PHP code execution50Plan
- Later →CVE-2019-6341Mar 26, 2019 · Drupal core - Moderately critical - Cross Site Scripting - SA-CORE-2019-00425Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Packagist:drupal/core | 7.62.0 | Package registry (OSV) |
| Packagist:drupal/core | 8.5.11 | Package registry (OSV) |
| Packagist:drupal/core | 8.6.10 | Package registry (OSV) |
| Packagist:drupal/drupal | 7.62.0 | Package registry (OSV) |
| Packagist:drupal/drupal | 8.5.11 | Package registry (OSV) |
| Packagist:drupal/drupal | 8.6.10 | Package registry (OSV) |
Exploit status
Weaponized
A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.
Evidence
- Metasploit module ×1
- Exploit-DB entry ×4
- Nuclei detection template ×1
- Proof-of-concept repository on GitHub ×11
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | 11 repositories | 2019-02-22 → 2026-05-27 |
| Exploit-DB entry | remote | 2019-03-07 |
| Exploit-DB entry | remote | 2019-03-07 |
| Exploit-DB entry | webapps | 2019-02-23 |
| Exploit-DB entry | webapps | 2019-02-25 |
| Metasploit module | exploit/unix/webapp/drupal_restws_unserializeDrupal RESTful Web Services unserialize() RCEexploit | 2019-02-20 |
| Nuclei detection template | Nuclei template CVE-2019-6340 | — |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Metasploit-2 d
- Published
- First PoCsame day
- CISA KEV+1127 d
- TodayNov 16, 2026+2824 d
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-502 · Deserialization of Untrusted DataCVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Root cause
Data received over the network is deserialized into the language’s native object format without verifying its source. Code paths inside the object can be triggered during deserialization.
The bug in code
The whole CWE-502 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
payload = sock.recv(65536)
job = pickle.loads(payload)Fixed
payload = sock.recv(65536)
if not hmac.compare_digest(sign(payload), header_sig):
raise PermissionError("invalid signature")
job = JobSchema.validate(json.loads(payload))Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (3 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.