Vulnerability advisory
CVE-2022-25277
Also known as BIT-drupal-2022-25277DRUPAL-CORE-2022-014GHSA-6955-67hm-vjjq
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/drupal/drupal ↗ | |
| 35c2f3ca5c935f3d8bde15932a712677c9bbd50f to before 32680a4aef16035fd6c90014761dcad8de628120 | 32680a4aef16035fd6c90014761dcad8de628120 |
| 970c1b5cfa946f683de326a3f252b5371a42186a to before bf401c8d5c5a88d442ac7e95a9eb059d123a771c | bf401c8d5c5a88d442ac7e95a9eb059d123a771c |
Also listed as affected (22)
| |
Description
Drupal core sanitizes filenames with dangerous extensions upon upload (reference: SA-CORE-2020-012) and strips leading and trailing dots from filenames to prevent uploading server configuration files (reference: SA-CORE-2019-010). However, the protections for these two vulnerabilities previously did not work correctly together. As a result, if the site were configured to allow the upload of files with an htaccess extension, these files' filenames would not be properly sanitized. This could allow bypassing the protections provided by Drupal core's default .htaccess files and possible remote code execution on Apache web servers. This issue is mitigated by the fact that it requires a field administrator to explicitly configure a file field to allow htaccess as an extension (a restricted permission), or a contributed module or custom code that overrides allowed file uploads.