CVE-2017-6921 File REST resource does not properly validate

Medium 5.9 Published Updated

Attackers with file upload permissions can modify file resources via REST API due to improper validation in Drupal.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-6921?

CVE-2017-6921 is a medium-severity missing authorization vulnerability in Drupal Drupal, published on 15 Jan 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Drupal 8 prior to 8.3.4; The file REST resource does not properly validate some fields when manipulating files. A site is only affected by this if the site has the RESTful Web Services (rest) module enabled, the file REST resource is enabled and allows PATCH requests, and an attacker can get or register a user account on the site with permissions to upload files and to modify the file resource.

Weakness: CWE-20

Which versions are affected by CVE-2017-6921?

4 open source packages ship an affected version, including drupal/core and drupal/drupal. It affects 1 product.

PackageAffectedFixed in
drupal/core PackagistFrom 8.08.3.4
drupal/core PackagistFrom 8.08.3.4
drupal/drupal PackagistFrom 8.08.3.4
drupal/drupal PackagistFrom 8.08.3.4

Products include Drupal Drupal.

How do I fix CVE-2017-6921?

Upgrade drupal/core to 8.3.4 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2017-6921 being exploited?

There is no known exploitation of CVE-2017-6921 in the wild and no public exploit code.

All Drupal Drupal vulnerabilities

Sources

Also known as GHSA-h377-287m-w2r9.

Is CVE-2017-6921 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free