CVE-2022-25769 Improper regex in htaccess file

High 7.2 Published Updated

Attackers can bypass .htaccess restrictions to execute arbitrary PHP files due to improper regex validation in Mautic.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-25769?

CVE-2022-25769 is a high-severity vulnerability in Mautic, published on 18 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-1284

Which versions are affected by CVE-2022-25769?

4 open source packages ship an affected version, including mautic/core. It affects 1 product.

PackageAffectedFixed in
mautic/core PackagistAll versions3.3.5
mautic/core PackagistAll versions3.3.5
mautic/core PackagistFrom 4.0.04.2.0
mautic/core PackagistFrom 4.0.04.2.0

Products include Acquia Mautic.

How do I fix CVE-2022-25769?

Upgrade mautic/core to a fixed version for your release line: 3.3.5 or 4.2.0.

Is CVE-2022-25769 being exploited?

There is no known exploitation of CVE-2022-25769 in the wild and no public exploit code.

Sources

Also known as GHSA-mj6m-246h-9w56.

Is CVE-2022-25769 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free