# DRUPAL-CORE-2019-010: Drupal 8 core's filesaveupload() function does not strip the leading and trailing dot ('.') from filenames, like Drupal 7 did.

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-12-18T18:07:15.000Z
- Modified: 2026-09-19T19:05:59.000Z

## Description

Drupal 8 core's `file_save_upload()` function does not strip the leading and trailing dot ('.') from filenames, like Drupal 7 did.

Users with the ability to upload files with any extension in conjunction with contributed modules may be able to use this to upload system files such as .htaccess in order to bypass protections afforded by Drupal's default .htaccess file.

After this fix, `file_save_upload()` now trims leading and trailing dots from filenames.

(As written by Drupal Security Team.)

## Affected

- drupal/core (Packagist): from 8.0.0 before 8.7.11; from 8.8.0 before 8.8.1

## References

- <https://www.drupal.org/sa-core-2019-010> (web)

## Sources

- Drupal Security Team: [DRUPAL-CORE-2019-010](https://osv.dev/vulnerability/DRUPAL-CORE-2019-010), MIT, modified 2026-09-19

---

Page: https://cve.day/DRUPAL-CORE-2019-010 · Whole record: https://cve.day/DRUPAL-CORE-2019-010.json · Rebuilt by cve.day 2026-11-25T22:56:30.622Z
