CVE-2025-30207: Kirby vulnerable to path traversal in the router for PHP's built-in server
The missing path traversal check allowed attackers to navigate all files on the server that were accessible to the PHP process, including files outside of the Kirby installation.
The vulnerable implementation delegated all existing files to PHP, including existing files outside of the document root. This leads to a different response that allows attackers to determine whether the requested file exists.
Because Kirby’s router only delegates such requests to PHP and does not load or execute them, contents of the files were not exposed as PHP treats requests to files outside of the document root as invalid.
References
- github.com/advisories/GHSA-9p3p-w5jf-8xxg
- github.com/getkirby/kirby
- github.com/getkirby/kirby/commit/3ebc9ad3f5adcbd4838ce60219f1c9a561231235
- github.com/getkirby/kirby/releases/tag/3.10.1.2
- github.com/getkirby/kirby/releases/tag/3.9.8.3
- github.com/getkirby/kirby/releases/tag/4.7.1
- github.com/getkirby/kirby/security/advisories/GHSA-9p3p-w5jf-8xxg
- nvd.nist.gov/vuln/detail/CVE-2025-30207
Code Behaviors & Features
Detect and mitigate CVE-2025-30207 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →