cve.bz

CVE-2022-25277 drupal drupal

7.2 highEPSS 1.4%Fix available

High (7.2) in drupal drupal. EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in drupal/core 9.3.19, 9.4.3.

On this page
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.

Severity

CVSS 3.1

7.2 high
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-02-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-434 Unrestricted Upload of File with Dangerous Type
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-25277 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-25277?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-25277?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-25277 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Drupal Corefrom 9.4 before 9.4.3
Drupal Corefrom 9.3 before 9.3.19

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
DRUPAL-CORE-2022-014Packagistdrupal/core>=8.0.0 <9.3.19
>=9.4.0 <9.4.3
9.3.19, 9.4.3
GHSA-6955-67hm-vjjqPackagistdrupal/core>=8.0.0 <9.3.199.3.19
GHSA-6955-67hm-vjjqPackagistdrupal/core>=9.4.0 <9.4.39.4.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
UbuntuPro:14.04:LTS, Pro:16.04:LTSdrupal7no fix listedUBUNTU-CVE-2022-25277

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON