Read the docs
TI-2025-22674 Aliases CVE-2025-31493GHSA-x275-h9j4-7p4h

Path traversal of collection names during file system lookup

Priority LOW 29CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0059 48th percentileScored 2026-11-07
Fix Fixed kirby (getkirby): 3.9.8.3, 3.10.1.2, 4.7.1getkirby/cms (Packagist): 3.9.8.3, 3.10.1.2, 4.7.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
getkirbykirbybefore 3.9.8.3; 3.10.0 to before 3.10.1.2; 4.0.0 to before 4.7.13.9.8.3, 3.10.1.2, 4.7.1Patch availableCNA
—getkirby/cms (Packagist)before 3.9.8.33.9.8.3Patch availableGHSA-x275-h9j4-7p4h
—getkirby/cms (Packagist)3.10.0 to before 3.10.1.23.10.1.2Patch availableGHSA-x275-h9j4-7p4h
—getkirby/cms (Packagist)4.0.0 to before 4.7.14.7.1Patch availableGHSA-x275-h9j4-7p4h
  • kirby Vendorgetkirby Affected before 3.9.8.3; 3.10.0 to before 3.10.1.2; 4.0.0 to before 4.7.1 Fixed in 3.9.8.3, 3.10.1.2, 4.7.1 Patch available CNA
  • getkirby/cms (Packagist) Vendor— Affected before 3.9.8.3 Fixed in 3.9.8.3 Patch available GHSA-x275-h9j4-7p4h
  • getkirby/cms (Packagist) Vendor— Affected 3.10.0 to before 3.10.1.2 Fixed in 3.10.1.2 Patch available GHSA-x275-h9j4-7p4h
  • getkirby/cms (Packagist) Vendor— Affected 4.0.0 to before 4.7.1 Fixed in 4.7.1 Patch available GHSA-x275-h9j4-7p4h

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:getkirby:kirby:*:*:*:*:*:*:*:*before 3.9.8.3; 3.10.0 to before 3.10.1.2; 4.0.0 to before 4.7.1Vulnerablegetkirby
  • cpe:2.3:a:getkirby:kirby:*:*:*:*:*:*:*:* Versions before 3.9.8.3; 3.10.0 to before 3.10.1.2; 4.0.0 to before 4.7.1 Vulnerable ·getkirby

Remediation

  • Fix · CNA kirby (getkirby) Fixed in 3.9.8.3, 3.10.1.2, 4.7.1
  • Fix · GHSA-x275-h9j4-7p4h getkirby/cms (Packagist) Fixed in 3.9.8.3 Advisory →
  • Fix · GHSA-x275-h9j4-7p4h getkirby/cms (Packagist) Fixed in 3.10.1.2 Advisory →
  • Fix · GHSA-x275-h9j4-7p4h getkirby/cms (Packagist) Fixed in 4.7.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-31493
  2. 2026-10-03 Alias added: GHSA-x275-h9j4-7p4h

References

  • TI-2024-17440 An arbitrary file upload vulnerability in the Profile Image module of Kirby CMS v4.1.0… CVSS 3.1HIGH 8.8
  • TI-2024-17439 An HTML injection vulnerability exists in the Edit Content Layout module of Kirby CMS… CVSS 3.1HIGH 7.1
  • TI-2026-23396 Kirby CMS through 5.1.4 allows an authenticated user with 'Editor' permissions to cause a… CVSS 3.1MEDIUM 6.5
  • TI-2024-17441 A stored cross-site scripting (XSS) vulnerability in the Edit Content Layout module of… CVSS 3.1MEDIUM 6.1
  • TI-2018-10413 An issue was discovered in Kirby 2.5.12. CVSS 3.1MEDIUM 5.4
  • TI-2024-17438 Kirby CMS v4.1.0 was discovered to contain a reflected self-XSS vulnerability via the URL parameter. CVSS 3.1MEDIUM 4.7
See all 40 →

Sources