#VU17807 Code Injection in Drupal


Published: 2020-03-18 | Updated: 2021-06-17

Vulnerability identifier: #VU17807

Vulnerability risk: High

CVSSv3.1: 9.4 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C]

CVE-ID: CVE-2019-6340

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: Yes

Vulnerable software:
Drupal
Web applications / CMS

Vendor: Drupal

Description

The vulnerability allows a remote attacker to execute arbitrary PHP code on the target system.

The vulnerability exists due to improper input validation when processing field types in requests, related to API functionality. A remote attacker can send a specially crafted request and execute arbitrary PHP code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system but requires that:

  • - RESTful Web Services (rest) module is enabled and accepts 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: we are aware of reports regarding in the wild exploitation of this vulnerability days after the official patch.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Drupal: 8.6.0 - 8.6.9, 8.5.0 - 8.5.10


External links
http://www.drupal.org/sa-core-2019-003


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

Yes. This vulnerability is being exploited in the wild.


Latest bulletins with this vulnerability