CVE-2022-25277 json
Drupal core arbitrary PHP code execution
published 2022-07-20 4 y ago modified 2026-09-19 50 d ago also BIT-drupal-2022-25277 , DRUPAL-CORE-2022-014 , EUVD-2022-6493 , GHSA-6955-67hm-vjjq
- cvss
- 7.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist drupal/core 9.3.19, 9.4.3
- bitnami drupal 9.3.19, 9.4.3
- Drupal Core 9.3.19, 9.4.3
- github.com/drupal/core@1cd1830 commit
- github.com/drupal/core@5d464ea commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-25277 updated
drupal: multiple vulnerabilities
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 21 mo ago
Exploit prediction
1.42% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | drupal/core | >=8.0.0, <9.3.19 >=9.4.0, <9.4.3 |
9.3.19 9.4.3 |
| bitnami | drupal | >=8.0.0, <9.3.19 >=9.4.0, <9.4.3 |
9.3.19 9.4.3 |
Affected products
- Drupal Core
Classification
- Weakness
-
- CWE-434 Unrestricted Upload of File with Dangerous Type
References
-
github.com
/drupal/core/commit/1cd1830d79f221cc8490f53c2bb487dd07094f17
web
-
github.com
/drupal/core/commit/5d464ea4407c50e40dcf6cb5ee376e7b8dd36f3a
web
-
drupal.org
/sa-core-2022-014
web, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-25277
advisory, web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2022-25277.yaml
web
-
github.com
/drupal/core
package
Sources
- CVE List CVE-2022-25277
- GitHub Advisory GHSA-6955-67hm-vjjq
- NVD CVE-2022-25277
- OSV BIT-drupal-2022-25277
- OSV DRUPAL-CORE-2022-014
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.