CVE & CISA-KEV Catalog

CVE-2022-25277

HIGH
7.2
CVSS v3
NVD

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.

How to fix

Remediation Available
drupalNVD
Affected:>= 9.4.0, < 9.4.3Fixed in:9.4.3CVE-2022-25277derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredHigh
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

1.42%probability of exploitation in 30 days
70thpercentile

Moderate risk: more likely to be exploited than 70% of all known CVEs.

References

Vendor Advisory1

Related Vulnerabilities

Other CWE-434 (Unrestricted File Upload) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2017-12617High8.1100%KEVFix
CVE-2018-15961Critical9.8100%KEV-
CVE-2021-31207Medium6.6100%KEV + RansomFix
CVE-2017-12615High8.1100%KEV + Ransom-
CVE-2025-31324Critical10.099%KEV + Ransom-
CVE-2024-50623Critical9.899%KEV + RansomFix
Embed a live status badge for CVE-2022-25277
CVE-2022-25277 severity badge

Markdown

[![CVE-2022-25277](https://tridentstack.com/cve/badge/CVE-2022-25277.svg)](https://tridentstack.com/cve/CVE-2022-25277)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-25277"><img src="https://tridentstack.com/cve/badge/CVE-2022-25277.svg" alt="CVE-2022-25277"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-02-03.