CVE-2025-66305: CWE-248: Uncaught Exception in getgrav grav
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a Denial of Service (DoS) vulnerability was identified in the "Languages" submenu of the Grav admin configuration panel (/admin/config/system). Specifically, the Supported parameter fails to properly validate user input. If a malformed value is inserted—such as a single forward slash (/) or an XSS test string—it causes a fatal regular expression parsing error on the server. This leads to application-wide failure due to the use of the preg_match() function with an improperly constructed regular expression, resulting in an error. Once triggered, the site becomes completely unavailable to all users. This vulnerability is fixed in 1.8.0-beta.27.
AI Analysis
Technical Summary
CVE-2025-66305 is a vulnerability in the Grav CMS platform, specifically affecting versions prior to 1.8.0-beta.27. Grav is a file-based web platform used for building websites without a traditional database backend. The vulnerability exists in the 'Languages' submenu of the Grav admin configuration panel (/admin/config/system), where the 'Supported' parameter fails to properly validate user input. When an attacker inputs a malformed value—such as a single forward slash (/) or an XSS test string—this input is passed to the preg_match() PHP function with an improperly constructed regular expression. This causes a fatal regular expression parsing error, which is an uncaught exception (CWE-248). The result is a denial of service, as the entire Grav application becomes unavailable to all users due to the crash. The vulnerability requires administrative privileges to access the configuration panel, but no user interaction beyond that is needed. The CVSS 4.0 vector indicates network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:H - high privileges required), no user interaction (UI:N), and high impact on availability (VA:H). The vulnerability does not affect confidentiality or integrity directly. No known exploits have been reported in the wild, and the issue is resolved in Grav version 1.8.0-beta.27.
Potential Impact
For European organizations, the primary impact of CVE-2025-66305 is the potential for denial of service on websites or web applications built using vulnerable versions of Grav CMS. This can lead to complete unavailability of affected sites, disrupting business operations, customer access, and potentially damaging reputation. Organizations relying on Grav for public-facing or internal web services may experience downtime until the vulnerability is remediated. Since the vulnerability requires administrative access to trigger, the risk is elevated if internal or external threat actors have compromised admin credentials or access. The disruption could affect sectors such as e-commerce, government portals, educational institutions, and SMEs that use Grav for content management. Given Grav’s popularity in Europe among small to medium enterprises and developers valuing lightweight CMS solutions, the impact could be widespread if unpatched. However, the lack of known exploits in the wild reduces immediate risk, though proactive patching is critical to prevent future exploitation.
Mitigation Recommendations
European organizations should immediately upgrade Grav installations to version 1.8.0-beta.27 or later, where the vulnerability is fixed. If upgrading is not immediately feasible, restrict access to the Grav admin configuration panel to trusted administrators only, using network segmentation, VPNs, or IP whitelisting. Implement strong authentication and monitor admin access logs for suspicious activity. Validate and sanitize all user inputs in custom plugins or extensions interacting with the 'Languages' submenu to prevent malformed data reaching the preg_match() function. Employ web application firewalls (WAFs) with rules to detect and block suspicious payloads targeting the admin panel. Regularly audit Grav CMS versions across the organization’s web infrastructure and maintain an inventory to ensure timely patch management. Additionally, conduct penetration testing focusing on admin panel input validation to identify similar weaknesses.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Poland, Sweden
CVE-2025-66305: CWE-248: Uncaught Exception in getgrav grav
Description
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a Denial of Service (DoS) vulnerability was identified in the "Languages" submenu of the Grav admin configuration panel (/admin/config/system). Specifically, the Supported parameter fails to properly validate user input. If a malformed value is inserted—such as a single forward slash (/) or an XSS test string—it causes a fatal regular expression parsing error on the server. This leads to application-wide failure due to the use of the preg_match() function with an improperly constructed regular expression, resulting in an error. Once triggered, the site becomes completely unavailable to all users. This vulnerability is fixed in 1.8.0-beta.27.
AI-Powered Analysis
Technical Analysis
CVE-2025-66305 is a vulnerability in the Grav CMS platform, specifically affecting versions prior to 1.8.0-beta.27. Grav is a file-based web platform used for building websites without a traditional database backend. The vulnerability exists in the 'Languages' submenu of the Grav admin configuration panel (/admin/config/system), where the 'Supported' parameter fails to properly validate user input. When an attacker inputs a malformed value—such as a single forward slash (/) or an XSS test string—this input is passed to the preg_match() PHP function with an improperly constructed regular expression. This causes a fatal regular expression parsing error, which is an uncaught exception (CWE-248). The result is a denial of service, as the entire Grav application becomes unavailable to all users due to the crash. The vulnerability requires administrative privileges to access the configuration panel, but no user interaction beyond that is needed. The CVSS 4.0 vector indicates network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:H - high privileges required), no user interaction (UI:N), and high impact on availability (VA:H). The vulnerability does not affect confidentiality or integrity directly. No known exploits have been reported in the wild, and the issue is resolved in Grav version 1.8.0-beta.27.
Potential Impact
For European organizations, the primary impact of CVE-2025-66305 is the potential for denial of service on websites or web applications built using vulnerable versions of Grav CMS. This can lead to complete unavailability of affected sites, disrupting business operations, customer access, and potentially damaging reputation. Organizations relying on Grav for public-facing or internal web services may experience downtime until the vulnerability is remediated. Since the vulnerability requires administrative access to trigger, the risk is elevated if internal or external threat actors have compromised admin credentials or access. The disruption could affect sectors such as e-commerce, government portals, educational institutions, and SMEs that use Grav for content management. Given Grav’s popularity in Europe among small to medium enterprises and developers valuing lightweight CMS solutions, the impact could be widespread if unpatched. However, the lack of known exploits in the wild reduces immediate risk, though proactive patching is critical to prevent future exploitation.
Mitigation Recommendations
European organizations should immediately upgrade Grav installations to version 1.8.0-beta.27 or later, where the vulnerability is fixed. If upgrading is not immediately feasible, restrict access to the Grav admin configuration panel to trusted administrators only, using network segmentation, VPNs, or IP whitelisting. Implement strong authentication and monitor admin access logs for suspicious activity. Validate and sanitize all user inputs in custom plugins or extensions interacting with the 'Languages' submenu to prevent malformed data reaching the preg_match() function. Employ web application firewalls (WAFs) with rules to detect and block suspicious payloads targeting the admin panel. Regularly audit Grav CMS versions across the organization’s web infrastructure and maintain an inventory to ensure timely patch management. Additionally, conduct penetration testing focusing on admin panel input validation to identify similar weaknesses.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-11-26T23:11:46.395Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 692e0ef03937fa579fe4618a
Added to database: 12/1/2025, 9:56:00 PM
Last enriched: 12/1/2025, 10:09:46 PM
Last updated: 12/1/2025, 10:56:37 PM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-66415: CWE-441: Unintended Proxy or Intermediary ('Confused Deputy') in fastify fastify-reply-from
MediumCVE-2025-66448: CWE-94: Improper Control of Generation of Code ('Code Injection') in vllm-project vllm
HighCVE-2025-66401: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in kapilduraphe mcp-watch
CriticalCVE-2025-66312: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav
MediumCVE-2025-66311: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in getgrav grav
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.