CVE-2022-25277
published high CVSS 3.1 · 7.2drupal: multiple vulnerabilities
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Drupal | — | Core9.4 to < 9.4.3 · 9.3 to < 9.3.19 | Affected | Not stated | drupal |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.2 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Drupal | Core | 9.4 to < 9.4.3 (affected · custom)9.3 to < 9.3.19 (affected · custom) | drupal · cna |
Weaknesses
2- Arbitrary PHP code execution
- CWE-434 CWE-434 Unrestricted Upload of File with Dangerous Type
References
1Provider assertions
3drupal · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5379aa728dd0d8d13fc5aec11c39ed7d3a2a5b9b8ca3452ebc98d77c0ae54d8a
- Ingested
- 23 Sep 2026, 07:59:05 UTC
- Source record
- Official CVE record