CVEfocus › CVE database › CVE-2022-25769

CVE-2022-25769Improper regex in htaccess file

CVSS 7.2 HighEPSS 0.6% (higher than 45% of CVEs)Published 2024-09-18Updated 2024-09-18Assigner: Mautic

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.

CWE-1284

What to do

Fixed builds are available from Packagist: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Packagist librarymautic/coreFixed4.2.0GHSA-mj6m-246h-9w56

What the vendor says

As published in the CVE record by Mautic, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

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.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.