OSV 1.4.0 · github-reviewed · 修改于 2026-09-02 00:37
发布时间
2026-09-02 00:37
GitHub 审查时间
2026-09-02 00:37
NVD 发布时间
2026-08-08 03:18
源文件
advisories/github-reviewed/2026/09/GHSA-rf2p-vh74-7vvh/GHSA-rf2p-vh74-7vvh.json
This vulnerability affects all Kirby sites that have not disabled the REST API with the 'api' => false option.
It was possible to trigger a PHP error in the API backend that would expose the full filesystem path of the Kirby installation on the server. This could be used to guess the default content.salt or prepare specialized attacks.
An information exposure occurs when system data or debugging information leaves the program through an output stream or logging function that makes it accessible to unauthorized parties. Using other weaknesses, an attacker could cause errors to occur; the response to these errors can reveal detailed system information, along with other impacts. An attacker can use messages that reveal technologies, operating systems, and product versions to tune the attack against known vulnerabilities in these technologies. A product may use diagnostic methods that provide significant implementation details such as stack traces as part of its error handling mechanism.
Kirby's REST API at /api returns JSON data for each request. If an error occurs during processing of the request, a special error handler converts this error to JSON data that API frontends can handle.
The returned data for errors depends on the debugging mode. If the debug option is enabled, the JSON data contains fields for the path and line of the affected file, the internal exception class and the API route that caused the error. This data is omitted from error responses in production (when the debug option is disabled).
Some internal errors may contain sensitive information in the error message itself. This is often the case with PHP errors.
In affected releases, the REST API error handler did not sanitize error messages for sensitive information.
This exposed system information like the full source path to external API users, including users without authentication. This could be used to guess the default content.salt or prepare specialized attacks.
The problem has been patched in Kirby 4.9.5 and . Please update to one of these or a to fix the vulnerability.
In all of the mentioned releases, Kirby has hardened the API error handler to only expose full error messages for exceptions in the Kirby\Exception namespace. All other errors are only exposed in debug mode (with disguised paths, keeping only the paths relative to the Kirby installation). Outside of debug mode, general exceptions and PHP errors are replaced with a generic error message.
Thanks to Peter Levashov (@petersevera) for responsibly reporting the identified issue.