Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-30159

CVE-2025-30159: Getkirby Kirby Path Traversal Flaw

CVE-2025-30159 is a path traversal vulnerability in Getkirby Kirby CMS affecting sites using dynamic snippet names. Attackers can access server files and execute code. This article covers technical details, affected versions, and patches.

Published: March 24, 2026

CVE-2025-30159 Overview

CVE-2025-30159 is a path traversal vulnerability affecting Kirby, an open-source content management system. The vulnerability exists in the snippet() helper and $kirby->snippet() method when used with dynamic snippet names that depend on request or user data. A missing path traversal check allows attackers to navigate and access all files on the server accessible to the PHP process, including files outside the snippets root or even outside the Kirby installation. PHP code within such files is executed, potentially compromising both confidentiality and integrity of the server.

Sites that only use fixed calls to the snippet() helper with simple string arguments for the snippet name are not affected by this vulnerability.

Critical Impact

Attackers can exploit dynamic snippet name usage to traverse the file system and execute arbitrary PHP files, potentially leading to full server compromise through Local File Inclusion (LFI) and code execution.

Affected Products

  • Kirby versions prior to 3.9.8.3
  • Kirby versions prior to 3.10.1.2
  • Kirby versions prior to 4.7.1

Discovery Timeline

  • 2025-05-13 - CVE-2025-30159 published to NVD
  • 2025-08-26 - Last updated in NVD database

Technical Details for CVE-2025-30159

Vulnerability Analysis

This path traversal vulnerability (CWE-22) allows attackers to escape the intended snippets directory by manipulating dynamic snippet names. When a Kirby site uses patterns such as snippet('tags-' . get('tags')) where the snippet name incorporates user-controlled input, an attacker can inject path traversal sequences to access arbitrary files on the server.

The vulnerability requires an existing attack vector in the site code—specifically, the use of dynamic snippet names that incorporate request or user data without proper validation. While exploitation also typically requires knowledge of the site structure and server file system, attackers can discover vulnerable setups through automated fuzzing techniques.

The impact is significant: successful exploitation allows reading of sensitive files and execution of PHP code outside the intended snippets directory, potentially compromising the entire server.

Root Cause

The root cause of CVE-2025-30159 is the absence of a path traversal validation check when resolving snippet paths. When the snippet() helper or $kirby->snippet() method receives a dynamically constructed snippet name, it fails to verify that the resolved path remains within the configured snippets root directory. This allows path traversal sequences (such as ../) embedded in user input to escape the intended directory boundary.

Attack Vector

The attack is network-based and requires no authentication. An attacker identifies a Kirby site using dynamic snippet names with user-controllable input, then crafts a malicious request containing path traversal sequences to access files outside the snippets root.

For example, if a site uses snippet('tags-' . get('tags')), an attacker could provide a tags parameter containing path traversal sequences like ../../config/config to access configuration files or ../../../etc/passwd to read system files. If the traversed path points to a PHP file, that code will be executed in the context of the web server.

The vulnerability mechanism works as follows: when user input such as ../../../malicious-file is passed to the snippet function, the resulting path escapes the snippets directory, allowing file access and PHP code execution outside intended boundaries. See the GitHub Security Advisory for complete technical details.

Detection Methods for CVE-2025-30159

Indicators of Compromise

  • HTTP requests containing path traversal sequences (../, ..%2f, ..%5c) in GET or POST parameters used by snippet functions
  • Unusual file access patterns in web server logs indicating attempts to reach files outside the web root
  • PHP errors or warnings related to file inclusion from unexpected directories

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block path traversal sequences in request parameters
  • Monitor web server access logs for requests containing encoded or unencoded directory traversal patterns
  • Review application code for usage of snippet() or $kirby->snippet() with dynamic, user-controlled parameters

Monitoring Recommendations

  • Enable detailed PHP error logging and monitor for file inclusion warnings from unexpected paths
  • Configure intrusion detection systems to alert on path traversal attack signatures
  • Implement file integrity monitoring on sensitive server directories to detect unauthorized access

How to Mitigate CVE-2025-30159

Immediate Actions Required

  • Upgrade Kirby to version 3.9.8.3, 3.10.1.2, or 4.7.1 or later immediately
  • Audit site code for usage of dynamic snippet names with user-controlled input
  • Implement input validation to sanitize any user data used in snippet name construction

Patch Information

The Kirby maintainers have addressed this vulnerability in versions 3.9.8.3, 3.10.1.2, and 4.7.1. The fix adds a validation check for snippet paths that ensures the resulting path is contained within the configured snippets root directory. Snippet paths that point outside of the snippets root will not be loaded.

Patch releases are available:

  • Kirby 3.9.8.3
  • Kirby 3.10.1.2
  • Kirby 4.7.1

Workarounds

  • Avoid using dynamic snippet names that incorporate user-controlled input until patching is complete
  • Implement strict allowlisting for any user input that affects snippet selection
  • Use a web application firewall to block requests containing path traversal patterns
bash
# Example: Updating Kirby via Composer to patched version
composer update getkirby/kirby --with-dependencies
# Verify installed version
composer show getkirby/kirby | grep version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechGetkirby

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.87%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Release 3.10.1.2

  • GitHub Release 3.9.8.3

  • GitHub Release 4.7.1
  • Vendor Resources
  • GitHub Security Advisory GHSA-fw82-87p8-v6hp
  • Related CVEs
  • CVE-2025-31493: Getkirby Kirby Path Traversal Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English