Skip to main content

Grav CVE-2026-62673

| EUVDEUVD-2026-62543 HIGH
Improper Handling of Case Sensitivity (CWE-178)
2026-08-19 GitHub_M GHSA-vwg3-w8w3-pc79
8.2
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Grav site hosted on case-insensitive OS
  2. Delivery
    Craft uppercase variant of protected path
  3. Exploit
    Send unauthenticated HTTP GET request
  4. Execution
    Apache RewriteRule fails to match, passes request
  5. Persist
    Filesystem resolves uppercase path to protected YAML file
  6. Impact
    Retrieve 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

grav < 2.0.4

Affected Packages

composer getgrav/grav fix: 2.0.4
euvd grav fix: 2.0.4

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

Vendor (GitHub_M) PRIMARY 8.2 HIGH
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
vuln.today AI 5.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 19, 2026 - 17:02 EUVD
CVE Published
Aug 19, 2026 - 15:46 cve.org
HIGH 8.2

DescriptionCVE.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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Medium
popular open-source flat-file PHP CMS, broad hobbyist and SMB adoption
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Grav

View all
CVE-2025-66294 HIGH POC
8.7 Dec 01

Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol

CVE-2025-66301 HIGH POC
8.6 Dec 01

Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their

CVE-2025-50286 HIGH POC
8.1 Aug 06

A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug

CVE-2024-34082 CRITICAL POC
9.9 May 15

Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a

CVE-2021-47812 CRITICAL POC
9.8 Jan 16

GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv

CVE-2026-65008 CRITICAL POC
9.3 Jul 21

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

CVE-2026-75827 CRITICAL POC
9.3 Aug 18

Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri

CVE-2026-75837 CRITICAL POC
9.3 Aug 18

Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm

CVE-2026-75828 CRITICAL POC
9.3 Aug 18

Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past

CVE-2025-66844 CRITICAL POC
9.1 Dec 15

Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make

CVE-2025-66299 HIGH POC
8.8 Dec 01

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

CVE-2026-72819 HIGH POC
8.7 Aug 14

Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy