Drupal core - SA-CORE-2019-003
CISA confirms exploitation of this vulnerability in real attacks. Prioritise checking whether your application is affected. CISA KEV · CC0 1.0
Some field types do not properly sanitize data from non-form sources. 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 GET, 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 still apply other contributed updates associated with this advisory if Services is in use.)
Updates
- 2019-02-22: Updated risk score given new information; see PSA-2019-02-22. The security risk score has been updated to 23/25 as there are now known exploits in the wild. In addition, any enabled REST resource end-point, even if it only accepts GET requests, is also vulnerable. Note this does not include REST exports from Views module.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/core | >= 8.0.0, < 8.5.11, >= 8.6.0, < 8.6.10 | 8.5.11, 8.6.10 |
| Composer package | drupal/drupal | >= 7.0.0, < 7.62.0, >= 8.0.0, < 8.5.11, >= 8.6.0, < 8.6.10 | 7.62.0, 8.5.11, 8.6.10 |
| Drupal (core) | drupal/core | >= 8.0.0, < 8.5.11, >= 8.6.0, < 8.6.10 | 8.5.11, 8.6.10 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-6340
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2019-6340.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2019-6340.yaml
- https://github.com/drupal/drupal
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340
- https://www.drupal.org/sa-core-2019-003
- https://www.exploit-db.com/exploits/46452
- https://www.exploit-db.com/exploits/46459
- https://www.exploit-db.com/exploits/46510
- https://www.synology.com/security/advisory/Synology_SA_19_09
- CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H- Weakness (CWE)
CWE-502- Platform
- Composer, Drupal
- Package
drupal/core, drupal/drupal- Disclosed
- 20.02.2019
- Updated
- 11.10.2026 13:17
Sources and licenses
OSV / GitHub Advisory Database - GHSA-3gx6-h57h-rm27 - CC BY 4.0
OSV / GitHub Advisory Database - DRUPAL-CORE-2019-003 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/core
All published vulnerabilities of this package (Drupal (core)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 165
- First → latest
- 02.2018 09.2026
- Without a fix
- 3
- Exploited in attacks
- 5
Severity breakdown
- Critical 17
- High 44
- Medium 72
- Low 6
- Unrated 26
Disclosures per year
- 2018: 4
- 2019: 14
- 2020: 12
- 2021: 11
- 2022: 61
- 2023: 6
- 2024: 36
- 2025: 8
- 2026: 13
-
Drupal core - SA-CORE-2019-003 this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.