CVE-2025-31493
Path traversal of collection names during file system lookup
Check your servers for CVE-2025-31493
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-31493 affects kirby, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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 `collection()` helper or `$kirby->collection()` method with a dynamic collection name (such as a collection name that depends on request or user data). Sites that only use fixed calls to the `collection()` helper/`$kirby->collection()` method (i.e. calls with a simple string for the collection 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 collections 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 collection names, such as `collection('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, the maintainers of Kirby have added a check for the collection path that ensures that the resulting path is contained within the configured collections root. Collection paths that point outside of the collections root will not be loaded.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality low, integrity low, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality low, integrity low, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.60%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 50.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 13 May 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| kirby |
affected < 3.9.8.3 affected >= 3.10.0, < 3.10.1.2 affected >= 4.0.0, < 4.7.1
|
Is my server affected?
Find the installed version of kirby and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i kirby
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-31493 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-31493RHEL, Rocky, Alma, Fedora
rpm -q kirby
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-31493Alpine
apk list --installed | grep -i kirbyWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-31493
trivy image --scanners vuln IMAGE | grep CVE-2025-31493
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/getkirby/kirby/releases/tag/3.10.1.2 github.com
- https://github.com/getkirby/kirby/releases/tag/3.9.8.3 github.com
- https://github.com/getkirby/kirby/releases/tag/4.7.1 github.com
Source: the record CVE-2025-31493 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse