CVE-2025-30159: Kirby CMS - Path Traversal
- Cve: CVE-2025-30159
- Name: Kirby CMS - Path Traversal
- Description: Kirby is an open-source content management system. A vulnerability in versions prior to 3.9.8.3, 3.10.1.2, and 4.7.1 affects all Kirby sites that use the `snippet()` helper or `$kirby->snippet()` method with a dynamic snippet name (such as a snippet name that depends on request or user data). Sites that only use fixed calls to the `snippet()` helper/`$kirby->snippet()` method (i.e. calls with a simple string for the snippet name) are *not* affected. A missing path traversal check allowed attackers to navigate and access all files on the server that were accessible to the PHP process, including files outside of the snippets root or even outside of the Kirby installation. PHP code within such files was executed. Such attacks first require an attack vector in the site code that is caused by dynamic snippet names, such as `snippet('tags-' . get('tags'))`. It generally also requires knowledge of the site structure and the server's file system by the attacker, although it can be possible to find vulnerable setups through automated methods such as fuzzing. In a vulnerable setup, this could cause damage to the confidentiality and integrity of the server. The problem has been patched in Kirby 3.9.8.3, Kirby 3.10.1.2, and Kirby 4.7.1. In all of the mentioned releases, Kirby maintainers have added a check for the snippet path that ensures that the resulting path is contained within the configured snippets root. Snippet paths that point outside of the snippets root will not be loaded.
- Impact: Attackers can access and execute arbitrary files on the server, potentially leading to data disclosure and remote code execution.
- Remediation: Update to Kirby 3.9.8.3, 3.10.1.2, or 4.7.1 or later versions.
- Vulnerability type: path_traversal
- Vulnerability impact: information_disclosure, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.00726
- Epss percentile: 0.54876
- Assignee: [email protected]
- Published at: 2025-05-13T15:15:56Z
- Age in days: 560
- Modified at: 2026-06-17T09:08:16Z
- Patch available: yes
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-30159
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/getkirby/kirby/security/advisories/GHSA-fw82-87p8-v6hp | nvd | 2025-05-13 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/getkirby/kirby/security/advisories/GHSA-fw82-87p8-v6hp | Exploit, Patch, Vendor Advisory |
| https://github.com/getkirby/kirby/releases/tag/3.10.1.2 | Release Notes |
| https://github.com/getkirby/kirby/releases/tag/3.9.8.3 | Release Notes |
| https://github.com/getkirby/kirby/releases/tag/4.7.1 | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| getkirby:kirby | >= 4.0.0, < 4.7.1; >= 3.10.0, < 3.10.1.2; < 3.9.8.3 | no | nvd | /v1/products/getkirby/kirby |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| getkirby/kirby | commit, fix, package, releases, security_advisory | yes | /v1/repositories/getkirby/kirby |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-05-13
- Remote: yes
- Exposed hosts: 88
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports