Path traversal in Grav CMS - #VU171001

 

Path traversal in Grav CMS - #VU171001

Published: November 30, 2026


Vulnerability identifier: #VU171001
CSH Severity: Low
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to select an environment folder outside the intended site scope.

The vulnerability exists due to improper restriction of host-derived paths in environment folder selection when mapping a hostname to a directory. A remote attacker can influence the hostname used in that lookup to cause selection of an unintended environment folder.

The advisory identifies the fallback used by sites without a user/env/ directory.


Affected software

Grav CMS

Remediation

Install security update from vendor's website.

Grav CMS - update to 2.2.18

External References

Related Security Bulletins