Inefficient regular expression complexity in Grav CMS - CVE-2025-66305

 

Inefficient regular expression complexity in Grav CMS - CVE-2025-66305

Published: May 5, 2026


Vulnerability identifier: #VU130058
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2025-66305
CWE-ID: CWE-1333
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Grav CMS
Affected software:
Grav CMS

Detailed vulnerability description

The vulnerability allows a remote user to cause a denial of service.

The vulnerability exists due to improper regular expression handling in the Supported parameter of the Languages configuration in the admin/config/system endpoint when processing user-supplied input. A remote privileged user can submit a malformed Supported value to cause a denial of service.

The issue is triggered by malformed input such as a forward slash that causes a fatal regular expression parsing error during language resolution.


How to mitigate CVE-2025-66305

Install security update from vendor's website.

Sources