Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Grav site hosted on case-insensitive OS
-
DeliveryCraft uppercase variant of protected path
-
ExploitSend unauthenticated HTTP GET request
-
ExecutionApache RewriteRule fails to match, passes request
-
PersistFilesystem resolves uppercase path to protected YAML file
-
ImpactRetrieve password hashes and security configuration
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Case sensitivity handling
|
| Exploitation Conditions | Exploitation requires three concurrent conditions: (1) Grav is served by Apache with mod_rewrite enabled and the .htaccess file active (AllowOverride enabled for the document root); (2) the underlying filesystem is case-insensitive - specifically Windows NTFS, macOS HFS+/APFS in default configuration, or a Linux mount with the 'nocase' or equivalent option; and (3) the attacker targets a valid, predictable file path under user/accounts/ or user/config/, which follow Grav's well-documented YAML conventions (e.g., user/accounts/admin.yaml). On the majority of Linux production servers using ext4 or XFS filesystems (case-sensitive by default), the uppercase path resolves to a non-existent file and the bypass does not work. No authentication is required and no user interaction is needed. The limiting factor is entirely the hosting OS and filesystem type - defenders on Linux with case-sensitive filesystems can treat this as non-exploitable in their environment. |
| Impact | The provided CVSS 4.0 score of 8.2 with vector AV:N/AC:L/AT:P/PR:N/UI:N/VC:H reflects the dual nature of this vulnerability: trivial to exploit (no auth, no interaction, network-reachable) but conditionally gated by AT:P (attack requirements present - specifically a case-insensitive filesystem). For Grav deployments on Windows or macOS hosting - a non-trivial share of the user base given Grav's local-development and small-site audience - this represents a realistic, high-impact path to credential theft with essentially no barrier to exploitation. For Linux production environments using ext4 or XFS (case-sensitive by default), the attack does not work, substantially reducing real-world prevalence. No EPSS score was provided; no CISA KEV listing exists at time of analysis; no public POC has been identified. The confidentiality impact is concretely high: exposed files include bcrypt password hashes that are subject to offline cracking. Integrity and availability are unaffected. Real priority assessment: HIGH for Windows/macOS-hosted Grav instances, LOW for standard Linux/ext4 deployments - defenders should audit their hosting OS before treating this as critical. |
| Exploit ScenarioDerived | An attacker targeting a Grav site hosted on a Windows or macOS server sends a plain HTTP GET request for /USER/accounts/admin.yaml - the uppercase 'USER' bypasses the case-sensitive RewriteRule block while the case-insensitive NTFS or HFS+ filesystem resolves it to the actual admin.yaml credential file. The web server returns the file contents directly, exposing the administrator's bcrypt password hash and any configured admin metadata. No authentication, session, or special tooling is required; a single curl command or browser request is sufficient. No public proof-of-concept code has been identified at time of analysis, but the bypass technique is mechanically obvious from the vulnerability description. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 19, 2026
Case-sensitivity bypass in Grav's Apache .htaccess rules prior to version 2.0.4 allows unauthenticated remote attackers to retrieve password hashes and security configuration files by requesting uppercase or mixed-case path variants (e.g., /USER/accounts/admin.yaml) on case-insensitive filesystems. The protection boundary - Apache mod_rewrite RewriteRule directives blocking access to user/accounts, user/config, user/data, and user/env - fails entirely when the underlying filesystem resolves uppercase URLs to the same protected files that lowercase rules would block. No public exploit or CISA KEV listing has been identified at time of analysis, but the attack requires no authentication and no user interaction, making it trivially repeatable against eligible deployments.
RemediationAI
Upgrade to Grav 2.0.4, which adds the [NC] flag to all six affected RewriteRule directives in both .htaccess and webserver-configs/htaccess.txt (https://github.com/getgrav/grav/releases/tag/2.0.4). If immediate upgrade is not possible, manually apply the patch from https://github.com/getgrav/grav/commit/8c9d1e7b6fd66ecea80a4bc3783fd41d36e22fb1, adding [F,NC] in place of [F] on each of the six rules blocking user/, system/, vendor/, and root-level sensitive files - note that manual .htaccess edits may be overwritten by future Grav self-updates. As an additional compensating control for Windows or macOS deployments, configure the web server at the vhost or server level to deny access to the user/ directory entirely using a case-insensitive DirectoryMatch or equivalent, which is not subject to .htaccess override. Migrating to a case-sensitive filesystem (e.g., Linux ext4) eliminates the attack surface entirely but is an infrastructure-level change with significant operational trade-offs.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Grav (CPE: cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*) is a PHP flat-file CMS that stores user credentials as YAML files under user/accounts/ and security settings under user/config/, relying entirely on Apache mod_rewrite rules in .htaccess to prevent direct HTTP retrieval of these files. Apache's RewriteRule directive is case-sensitive by default; the [NC] (no-case) flag is required to make pattern matching case-insensitive. On case-insensitive filesystems - Windows NTFS, macOS HFS+/APFS in default mode, and Linux mounts with the case-insensitive option - a URL path like /USER/accounts/admin.yaml resolves to the identical file as /user/accounts/admin.yaml at the filesystem layer. Without [NC], Apache's RewriteRule sees no match and passes the request through to be served as a static file. CWE-178 (Improper Handling of Case Sensitivity) is the exact root cause: a security control assumes case-sensitivity enforcement that the deployment environment does not provide. The commit diff at https://github.com/getgrav/grav/commit/8c9d1e7b6fd66ecea80a4bc3783fd41d36e22fb1 confirms six distinct RewriteRule directives were missing [NC] across both .htaccess and webserver-configs/htaccess.txt.
Know when Grav gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
AC:H captures the non-default case-insensitive filesystem prerequisite; PR:N and UI:N reflect unauthenticated, zero-interaction exploitation; C:H for exposed credential hashes; no integrity or availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Grav is a file-based Web platform. Prior to 2.0.4, the Grav .htaccess and webserver-configs/htaccess.txt security rules omit the Apache [NC] flag and therefore compare sensitive directory and file-extension patterns case-sensitively. On a case-insensitive filesystem, an unauthenticated requester can use uppercase directory or extension variants to bypass the rules and retrieve files under user/accounts or user/config, including password hashes and security configuration. This issue is fixed in version 2.0.4.
Articles & Coverage 1
Executive ViewAI
Grav content management system versions prior to 2.0.4 contain a case-sensitivity bypass in Apache access controls that allows unauthenticated remote attackers to retrieve password hashes and security configuration files on case-insensitive filesystems (Windows, macOS). Organizations running affected Grav deployments face immediate credential and configuration exposure without any authentication barrier, directly enabling account compromise and system reconnaissance.
Configure Apache httpd.conf RewriteRule directives with character-class enforcement to reject requests containing uppercase characters in protected path segments; deploy WAF rules matching uppercase/mixed-case variants of /user/ directories; migrate to case-sensitive filesystems where operationally feasible; implement reverse proxy request normalization to lowercase all incoming paths; restrict IP-level access to /user/ directories where business process permits; disable .htaccess processing and migrate all access control rules to httpd.conf for more restrictive enforcement.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol
Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their
A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug
Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a
GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv
Remote code execution in Grav CMS 2.0.4 (fixed in 2.0.7) lets an authenticated user holding the admin.pages or api.pages
Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri
Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm
Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past
Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S
Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary
EUVD-2026-62543
GHSA-vwg3-w8w3-pc79
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB