CVE-2022-25277

    Dashboard / Vulnerabilities / CVE-2022-25277

    CVE-2022-25277

    Published: 26 Apr 2023Last Modified: 12 Aug 2026

    Summary:

    Details: 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.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Introduced- 35c2f3ca5c935f3d8bde15932a712677c9bbd50f

    Affected versions

    9.3.18
    9.3.17
    9.3.15
    9.3.13
    9.3.11
    9.3.10
    9.3.7
    9.3.4
    9.3.2
    9.3.0
    9.3.0-rc1
    9.3.0-beta3
    9.3.0-beta2
    9.3.0-beta1
    9.3.0-alpha1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    CVE-2022-25277 | CVE-DB