Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE-2025-30207
Summary
Kirby is an open-source content management system. A vulnerability affects all Kirby setups that use PHP's built-in server. Such setups are commonly only used during local development. Sites that use other server software (such as Apache, nginx or Caddy) are not affected. A 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, the contents of the files were not exposed, as PHP treats requests to files outside of the document root as invalid. In all of the mentioned releases, the maintainers of Kirby have updated the router to check if existing static files are within the document root. Requests for files outside the document root are treated as page requests of the error page and will no longer allow determining whether the file exists or not. This issue affects versions through 3.9.8.2, 3.10.0 through 3.10.1.1, 4.0.0-alpha.1 through 4.7.0, and 5.0.0-alpha.1 through 5.0.0-beta.6.
- LOW
- NETWORK
- NONE
- UNCHANGED
- NONE
- NONE
- HIGH
- NONE
CWE-22 - Path Traversal
Path traversal (or directory traversal), is a vulnerability that allows malicious users to traverse the server's root directory, gaining access to arbitrary files and folders such as application code & data, back-end credentials, and sensitive operating system files. In the worst-case scenario, an attacker could potentially execute arbitrary files on the server, resulting in a denial of service attack. Such an exploit may severely impact the integrity, confidentiality, and availability of an application.
References
Advisory Timeline
- Published