CVE-2022-25769

Improper regex in htaccess file

Published Sep 18, 2024 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
Description
ImpactThe default .htaccess file has some restrictions in the access to PHP files to only allow specific PHP files to be executed in the root of the application.

This logic isn't correct, as the regex in the second FilesMatch only checks the filename, not the full path.

Remediation

Vendor Solution

Upgrade to 3.3.5 or 4.2.0. If you're using Mautic in a sub-folder with Apache (e.g. example.com/mautic), please review the guidance in this GitHub issue https://github.com/mautic/mautic/issues/10913#issuecomment-1055681986  before updating, as you will probably need to make some changes to the .htaccess file after you update.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-1482 ImpactThe default .htaccess file has some restrictions in the access to PHP files to only allow specific PHP files to be executed in the root of the application. This logic isn't correct, as the regex in the second FilesMatch only checks the filename, not the full path.
Github GHSA Github GHSA GHSA-mj6m-246h-9w56 Improper regex in htaccess file
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00146}

epss

{'score': 0.00151}

Type Values Removed Values Added
First Time appeared Mautic
Mautic mautic
CPEs cpe:2.3:a:mautic:mautic:-:*:*:*:*:*:*:*
Vendors & Products Mautic
Mautic mautic
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description ImpactThe default .htaccess file has some restrictions in the access to PHP files to only allow specific PHP files to be executed in the root of the application. This logic isn't correct, as the regex in the second FilesMatch only checks the filename, not the full path.
Title Improper regex in htaccess file
Weaknesses CWE-1284
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Mautic
Published
Updated
Sep 18, 2024, 9:28 PM
Reserved
Feb 22, 2022, 8:17 PM
Status
Analyzed
Published
Sep 18, 2024, 3:15 PM
Modified
Jun 17, 2026, 4:34 AM