Relative Path Traversal in Kirby - CVE-2025-31493

 

Relative Path Traversal in Kirby - CVE-2025-31493

Published: April 23, 2026


Vulnerability identifier: #VU127189
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-31493
CWE-ID: CWE-23
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to access arbitrary files and execute unintended PHP code.

The vulnerability exists due to path traversal in the collection() helper and $kirby->collection() method when processing a dynamic collection name during file system lookup. A remote attacker can supply a specially crafted collection name containing traversal sequences to access arbitrary files and execute unintended PHP code.

Only sites that use dynamic collection names derived from request or user data are vulnerable.


Affected software

Kirby

How to mitigate CVE-2025-31493

Install security update from vendor's website.

Kirby - addressed in versions 3.9.8.3, 3.10.1.2, 4.7.1

External References

Related Security Bulletins