CVE-2017-6921
MEDIUM 5.9CVSS 3.0Drupal file REST resource does not properly validate
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.
- Published
- 15 Jan 2019
- Last modified
- 17 Jun 2026
- Assigned by
- mlhess@drupal.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-h377-287m-w2r9
- Sources
- NVDJSONOSV GHSA-h377-287m-w2r9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | drupal | drupalcpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:* |
>= 8.0.0, < 8.3.4 | 8.3.4 |
| OSV | Packagist | drupal/core | >= 8.0, < 8.3.4 | 8.3.4 |
| OSV | Packagist | drupal/drupal | >= 8.0, < 8.3.4 | 8.3.4 |
References
- http://www.securityfocus.com/bid/99222 · Third Party Advisory, VDB Entry, WEB
- http://www.securitytracker.com/id/1038781 · Third Party Advisory, VDB Entry, WEB
- https://www.drupal.org/forum/newsletters/security-advisories-for-drupal-core/2017-06-21/drupal-core-multiple · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-6921 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2017-6921.yaml · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2017-6921.yaml · WEB
- https://github.com/drupal/core · PACKAGE
- https://www.drupal.org/SA-CORE-2017-003 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 15 Jan 2019)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 13 May 2022)