Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-30159

MEDIUM 6.3EPSS 61%

Kirby vulnerable to path traversal of snippet names in the `snippet()` helper

Also known as GHSA-fw82-87p8-v6hp

Mitigation

  • Upgrade getkirby/kirby to one of 3.9.8.3, 3.10.1.2, 4.7.1 (or later in the same release line).

Who should check

  • Projects that depend on Packagist package getkirby/kirby (< 3.9.8.3)
  • Anyone running getkirby kirby < 3.9.8.3; >= 3.10.0, < 3.10.1.2; >= 4.0.0, < 4.7.1

Vulnerability facts

Affected
getkirby/kirby < 3.9.8.3
Fixed in
3.9.8.3, 3.10.1.2, 4.7.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: None
  • Confidentiality impact on other systems: Low
  • Integrity impact on other systems: Low
  • Availability impact on other systems: None
EPSS
0.97% chance of exploitation in 30 days (percentile 61, 2026-11-26)
CWE
CWE-22, CWE-23
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Packagist getkirby/kirby< 3.9.8.33.9.8.3, 3.10.1.2, 4.7.1osv
getkirby kirby< 3.9.8.3; >= 3.10.0, < 3.10.1.2; >= 4.0.0, < 4.7.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-30159. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-30159.md
Affected: getkirby/kirby < 3.9.8.3
Fixed in: 3.9.8.3, 3.10.1.2, 4.7.1

Steps:
1. Search this machine and project for getkirby/kirby (Packagist), getkirby kirby: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-30159 being exploited?

There is no confirmed exploitation: CVE-2025-30159 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.97% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-30159?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2025-30159?

getkirby/kirby < 3.9.8.3.

Is there a fix for CVE-2025-30159?

Yes. Fixed in 3.9.8.3, 3.10.1.2, 4.7.1. Upgrade getkirby/kirby to one of 3.9.8.3, 3.10.1.2, 4.7.1 (or later in the same release line).

How do I check if I'm affected by CVE-2025-30159?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors