Relative Path Traversal in Kirby - CVE-2025-31493
Published: April 23, 2026
Kirby
Detailed vulnerability description
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.