GHSA-3gx6-h57h-rm27 DRUPAL-CORE-2019-003 GHSA-3gx6-h57h-rm27
Drupal Core Remote Code Execution Vulnerability
- Severity
- 8.1 / 10
- High · CVSS 3.0
- Exploit chance (EPSS)
- 92.02%
- Chance of exploitation in the next 30 days. Higher than 99.82% of scored vulnerabilities.
- Known exploited
- Yes
- In CISA's catalog
- Weakness
- CWE-502 Deserialization of Untrusted Data
- Fix
- Available
- 2 packages have a fixed version
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.)
Affected versions
Packagist
| Package | Vulnerable | Fixed in |
|---|---|---|
| drupal/core | >= 8.6.0, < 8.6.10 |
8.6.10 |
| drupal/core | >= 7.0.0, < 7.62.0 |
7.62.0 |
| drupal/core | >= 8.0.0, < 8.5.11 |
8.5.11 |
| drupal/core | >= 8.0.0, < 8.5.11>= 8.6.0, < 8.6.10 |
8.5.118.6.10 |
| drupal/core | >= 8.6.0, < 8.6.10 |
8.6.10 |
| drupal/core | >= 8.0.0, < 8.5.11 |
8.5.11 |
| drupal/drupal | >= 7.0.0, < 7.62.0 |
7.62.0 |
| drupal/drupal | >= 8.0.0, < 8.5.11 |
8.5.11 |
| drupal/drupal | >= 8.6.0, < 8.6.10 |
8.6.10 |
| drupal/drupal | >= 8.0.0, < 8.5.11 |
8.5.11 |
| drupal/drupal | >= 8.6.0, < 8.6.10 |
8.6.10 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
drupal/core Packagist → 8.6.10
- composer
composer require drupal/core:^8.6.10
drupal/drupal Packagist → 7.62.0
- composer
composer require drupal/drupal:^7.62.0
Severity breakdown
CVSS 3.0 8.1
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Exploit maturity
- H
Weakness
CWE-502: Deserialization of Untrusted Data
The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
How to prevent it
- Architecture and Design, Implementation: If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.
- Implementation: When deserializing data, populate a new object rather than just deserializing. The result is that the data flows through safe input validation and that the functions are safe.
- Implementation: Explicitly define a final object() to prevent deserialization.
- Architecture and Design, Implementation: Make fields transient to protect them from deserialization. An attempt to serialize and then deserialize a class containing transient fields will result in NULLs where the transient data should be. This is an excellent way to prevent time, environment-based, or sensitive variables from being carried over and used improperly.
- Implementation: Avoid having unnecessary types or gadgets (a sequence of instances and method invocations that can self-execute during the deserialization process, often found in libraries) available that can be leveraged for malicious ends. This limits the potential for unintended or unauthorized types and gadgets to be leveraged by the attacker. Add only acceptable classes to an allowlist. Note: new gadgets are constantly being discovered, so this alone is not a sufficient mitigation.
- Architecture and Design, Implementation: Employ cryptography of the data or code for protection. However, it's important to note that it would still be client-side security. This is risky because if the client is compromised then the security implemented on the client (the cryptography) can be bypassed.
- Operation: Use an application firewall that can detect attacks against this weakness. It can be beneficial in cases in which the code cannot be fixed (because it is controlled by a third party), as an emergency prevention measure while more comprehensive software assurance measures are applied, or to provide defense in depth [REF-1481].
References
Advisories
Packages
Other links
- drupal.org/sa-core-2019-003
- synology.com/security/advisory/Synology_SA_19_09
- github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2019-63…
- github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2019-…
- exploit-db.com/exploits/46452
- exploit-db.com/exploits/46459
- exploit-db.com/exploits/46510
- cisa.gov/known-exploited-vulnerabilities-catalog
Timeline
- Published
- Last updated by the source
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| DRUPAL-CORE-2026-004 Drupal Core has a SQL Injection issue | Critical Known exploited | Also affects drupal/core |
| CVE-2020-28949 Multiple vulnerabilities through filename manipulation in Archive_Tar | High Known exploited | Also affects drupal/core |
| CVE-2020-13671 Drupal core Unrestricted Upload of File with Dangerous Type | High Known exploited | Also affects drupal/core |
| CVE-2018-7602 Drupal Core Remote Code Execution Vulnerability | Critical Known exploited | Also affects drupal/core |
| CVE-2018-7600 Drupal Core Remote Code Execution Vulnerability | Critical Known exploited | Also affects drupal/core |
| DRUPAL-CORE-2026-016 The Navigation module doesn't sufficiently sanitize certain attributes, which can lead to a cross-site scripting (XSS) vulnerability. | Not rated yet | Also affects drupal/core |
| DRUPAL-CORE-2026-015 The Drupal core Link module provides a field type that can be used for internal and external URLs. | Not rated yet | Also affects drupal/core |
| DRUPAL-CORE-2026-014 A remote code execution vulnerability exists within the Field UI module in Drupal core. | Not rated yet | Also affects drupal/core |
Credits: Samuel Mortenson
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor