🛡️ CVE-2019-6340 — core

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-502 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Drupal Core Remote Code Execution Vulnerability

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

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is high, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2019-6340 is classified as CWE-502: Deserialization of Untrusted Data. Serialised data from an untrusted source is reconstructed into objects, which can trigger code during the process.

Affected software

CVE-2019-6340 is recorded against 2 packages.

  • drupal/core (from 8.0.0 up to 8.5.11)
  • drupal/drupal (from 8.6.0 up to 8.6.10)

Timeline and source

Published on 13 May 2022 and last revised on 10 December 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Package)
www.cisa.gov (Web)
www.drupal.org (Web)
www.exploit-db.com (Web)
www.exploit-db.com (Web)
www.exploit-db.com (Web)
www.synology.com (Web)

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H
CWE CWE-502
Public Exploit ✅ No
Source OSV
Published 2022-05-13
Updated 2026-08-12
Modified 2025-12-10
Fix URL N/A

Affected Packages

Software From version Fixed in
drupal/core 8.0.0 8.5.11
drupal/drupal 8.6.0 8.6.10

Site Security Check

Is core part of your stack?

CVE-2019-6340 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.