Skip to content

Improper regex in htaccess file

Moderate severity GitHub Reviewed Published Feb 28, 2022 in mautic/mautic • Updated Jan 11, 2023

Package

composer mautic/core (Composer)

Affected versions

< 3.3.5
>= 4.0.0, < 4.2.0

Patched versions

3.3.5
4.2.0

Description

Impact

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

Patches

Please upgrade to 3.3.5 or 4.2.0

Workarounds

No

References

For more information

If you have any questions or comments about this advisory:

References

@RCheesley RCheesley published to mautic/mautic Feb 28, 2022
Published to the GitHub Advisory Database Mar 1, 2022
Reviewed Mar 1, 2022
Last updated Jan 11, 2023

Severity

Moderate

EPSS score

0.043%
(10th percentile)

Weaknesses

No CWEs

CVE ID

CVE-2022-25769

GHSA ID

GHSA-mj6m-246h-9w56

Source code

No known source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.