Grav CMS versions prior to 2.0.0-beta.2 are vulnerable to an XML External Entity (XXE) injection via SVG file uploads. Authenticated attackers with admin panel access can upload malicious SVG files that exploit improper XML parsing to read arbitrary server files, perform SSRF, or cause denial of service. The vulnerability arises from using simplexml_load_string without disabling external entity loading. A fix has been applied in Grav 2.0.0-beta.2 and the associated SVG sanitizer library to strip dangerous XML declarations and disable external entity processing.
CVE-2026-7317 is an insecure deserialization vulnerability in the Grav CMS FileCache component affecting versions from 1.7.44 up to but not including 2.0.0-beta.2. The vulnerability arises because the cache deserialization uses PHP's unserialize with 'allowed_classes' set to true, allowing object instantiation without restriction. This can lead to execution of object magic methods if an attacker can tamper with cache files. A fix was applied in Grav 2.0.0-beta.2, introducing HMAC signing and verification of cache payloads to prevent tampering.
Multiple remote code execution (RCE) vulnerabilities were discovered in Grav CMS, including unsafe unserialize calls in JobQueue, FileCache, and Session components, a command injection vulnerability in the git clone operation during plugin/theme installation, and a server-side template injection (SSTI) blocklist bypass. These vulnerabilities allow attackers to execute arbitrary commands or inject malicious objects, with the unserialize issues being particularly critical as they do not require admin access if any file write primitive is available. The Grav maintainers have fixed all five issues in version 2.0.0-beta.2 by implementing HMAC integrity checks on serialized data, escaping shell arguments properly, and enhancing the Twig sandbox to block dangerous functions.
Grav CMS version 1.7.49 and earlier contains a stored Cross Site Scripting (XSS) vulnerability in its page editor. Authenticated users can inject malicious <script> tags via the Markdown editor, which are not properly sanitized. These scripts execute when the affected pages are viewed in the admin interface, potentially allowing attackers to execute arbitrary code in the context of the admin user session.
Grav CMS versions prior to 1.8.0-beta.27 with the Forms plugin (v7.4.2) are vulnerable to a Server-Side Template Injection (SSTI) via crafted POST requests to forms. This vulnerability allows an attacker to execute template code that reveals the entire Grav configuration, including sensitive plugin details. The issue is fixed in version 1.8.0-beta.27.
Grav CMS versions prior to 1.8.0-beta.27 contain a Server-Side Template Injection (SSTI) vulnerability (CVE-2025-66294) that allows authenticated users with editor permissions to execute arbitrary commands on the server. This vulnerability arises from weak regex sanitization in the cleanDangerousTwig method, which fails to block nested function calls in Twig templates. Under certain conditions, unauthenticated attackers may also exploit this if a vulnerable form exists that processes user input through evaluate_twig. The flaw enables bypassing of sanitization and execution of arbitrary payloads via crafted form messages.
A stored Cross-Site Scripting (XSS) vulnerability exists in the Grav CMS at the /admin/pages/[page] endpoint via the data[header][template] parameter. This flaw allows attackers with admin access to inject malicious JavaScript code into the page's frontmatter, which executes when the page is viewed in the admin interface or frontend. The vulnerability affects versions prior to 1.8.0-beta.27 and has a CVSS 4.0 base score of 6.2 (medium severity).
A reflected Cross-Site Scripting (XSS) vulnerability exists in the Grav CMS at the /admin/pages/[page] endpoint via the data[header][content][items] parameter. This flaw allows attackers with administrative privileges to inject malicious JavaScript code that is executed in the victim's browser when viewing the affected page. The vulnerability is fixed in version 1.8.0-beta.27.
Grav CMS versions prior to 1.8.0-beta.27 are vulnerable to privilege escalation and authenticated remote code execution via Twig injection. A user with permissions to create or edit pages can enable Twig processing in page frontmatter and inject malicious Twig expressions. This allows escalation to admin or super admin privileges and execution of arbitrary system commands through the scheduler API. The Twig sandbox is not enforced, enabling full backend PHP object access. The vulnerability requires authenticated access with page editing rights and is fixed in version 1.8.0-beta.27.
A stored Cross-Site Scripting (XSS) vulnerability exists in the Grav CMS Admin Plugin at the /admin/config/site endpoint. The vulnerability allows attackers with administrative access to inject malicious JavaScript code into the data[taxonomies] parameter. This code is stored on the server and executed in the browser of users who view the affected site configuration, enabling persistent XSS attacks. The vulnerability affects versions prior to 1.8.0-beta.27 and has a CVSS score of 6.8 (medium severity).
A path traversal vulnerability in Grav prior to version 1.8.0-beta.27 allows users with user creation privileges to write arbitrary YAML files outside the intended directory via crafted usernames. This can lead to overwriting critical configuration files and account takeover by modifying other users' credentials.
A Denial of Service (DoS) vulnerability exists in Grav version prior to 1.8.0-beta.27 within the admin configuration panel's Languages submenu. The vulnerability arises from improper input validation of the 'Supported' parameter, which is used to construct a regular expression without proper escaping. Malformed input causes a fatal regex parsing error, crashing the application and making the site inaccessible to all users.
An Insecure Direct Object Reference (IDOR) vulnerability in Grav CMS Admin Panel version prior to 1.8.0-beta.27 allows low-privilege authenticated users to access sensitive metadata of other user accounts, including admin email addresses, despite receiving a 403 Forbidden response. This information disclosure increases risks of phishing and social engineering but does not allow account takeover or code execution.
A path traversal vulnerability in Grav CMS versions prior to 1.8.0-beta.27 allows authenticated administrators to read arbitrary files on the server filesystem via the backup tool. This occurs due to insufficient input sanitization of user-supplied paths, enabling access outside the webroot. The impact depends on the privileges of the application user. Under worst-case conditions, such as running the application as root, an attacker can exfiltrate sensitive files like SSH private keys, leading to full host compromise. A fix is available in version 1.8.0-beta.27.
Grav CMS version 1.7.49.5 with Admin plugin version 1.10.49.1 contains a user enumeration and email disclosure vulnerability in the password reset functionality at /admin/forgot. The application responds differently to invalid and valid usernames, leaking valid usernames and associated email addresses. This information disclosure can aid attackers in targeted attacks such as phishing or password spraying. A fix is available in version 1.8.0-beta.27.
A Stored Cross-Site Scripting (XSS) vulnerability exists in the Grav CMS admin plugin at the /admin/accounts/groups/Grupo endpoint. The vulnerability allows attackers to inject malicious scripts via the data[readableName] parameter, which are then stored and executed in users' browsers when viewing affected group configurations. This can lead to session hijacking, credential theft, malware delivery, and other impacts.
A stored Cross-Site Scripting (XSS) vulnerability exists in the Grav CMS application at the /admin/pages/[page] endpoint. This flaw allows an attacker with admin access to inject malicious scripts into metadata and taxonomy fields, which are stored in the page frontmatter and executed when the page is viewed in the admin interface or possibly on the frontend. The vulnerability affects versions prior to 1.11.0-beta.1 and has a CVSS score of 6.2 (medium severity).
A vulnerability in Grav versions prior to 1.8.0-beta.27 allows users with read access to the user account management section of the admin panel to view password hashes of all users, including the admin. This exposure can lead to privilege escalation if an attacker cracks the admin's password hash. The vulnerability is rated medium severity with a CVSS score of 6.2. No workaround is currently known, but a fix is available in version 1.8.0-beta.27.
A Denial of Service (DoS) vulnerability exists in Grav CMS admin panel versions prior to 1.8.0-beta.27. The flaw arises from improper sanitization of the 'scheduled_at' parameter used for cron expressions, allowing malicious input such as a single quote to corrupt the backup.yaml file and render the admin panel non-functional. Recovery requires manual correction of the corrupted file on the host server. No workaround is currently known. A fix is available in version 1.8.0-beta.27.
A broken access control vulnerability in Grav CMS allows users with editor-level permissions to modify the YAML frontmatter of pages, specifically the form processing logic. This enables unauthorized changes to form submission behavior, including redirects, email sending, and template usage, potentially leading to code execution via Twig sandbox escape. The vulnerability affects Grav versions prior to 1.8.0-beta.27 and has a high severity CVSS score of 8.6. A fix is available in version 1.8.0-beta.27.