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: 6.9 [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]
CVE-ID: CVE-2025-66305
CWE-ID: CWE-1333
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Grav CMS

How to mitigate CVE-2025-66305

Install security update from vendor's website.

Grav CMS - update to 1.8.0 beta.27

External References

Related Security Bulletins