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-31493

CVE-2025-31493: Getkirby Kirby Path Traversal Flaw

CVE-2025-31493 is a path traversal vulnerability in Getkirby Kirby CMS affecting sites using dynamic collection names. Attackers can access server files and execute PHP code. This article covers technical details, impact, and fixes.

Published: March 18, 2026

CVE-2025-31493 Overview

CVE-2025-31493 is a path traversal vulnerability affecting Kirby, an open-source content management system. The vulnerability exists in the collection() helper and $kirby->collection() method when used with dynamic collection names that depend on request or user-supplied data. A missing path traversal check allows attackers to navigate outside the intended collections root directory and access arbitrary files on the server that are accessible to the PHP process.

Critical Impact

Attackers can read and potentially execute PHP code from any file accessible to the web server process, compromising the confidentiality and integrity of the entire server environment.

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-31493 published to NVD
  • 2025-08-26 - Last updated in NVD database

Technical Details for CVE-2025-31493

Vulnerability Analysis

This path traversal vulnerability (CWE-22) specifically impacts Kirby CMS installations that utilize dynamic collection names in their site code. The vulnerability requires an attack vector within the site's implementation where user-controlled input influences the collection name parameter. While sites using fixed, hardcoded collection names remain unaffected, those incorporating request parameters or user data into collection names are vulnerable to exploitation.

The attack surface is constrained by several factors: the attacker must first identify a vulnerable code pattern in the target site, possess knowledge of the server's file system structure, and understand the Kirby installation layout. However, automated discovery techniques such as fuzzing can potentially identify vulnerable configurations without extensive prior knowledge.

Root Cause

The root cause of this vulnerability is the absence of proper path validation in Kirby's collection loading mechanism. When processing collection requests, the CMS failed to verify that the resolved file path remained within the configured collections root directory. This oversight allowed specially crafted input containing directory traversal sequences (such as ../) to escape the intended directory boundary and reference files elsewhere on the file system.

Attack Vector

The attack exploits dynamic collection name handling where user input is concatenated into the collection path. When a vulnerable pattern exists, such as collection('tags-' . get('tags')), an attacker can manipulate the tags parameter to include path traversal sequences. By supplying a crafted value containing multiple ../ sequences, the attacker can navigate the file system hierarchy and access sensitive files outside the collections directory.

The network-based attack requires no authentication and can be executed remotely. Once a vulnerable endpoint is identified, the attacker can potentially:

  1. Read configuration files containing database credentials or API keys
  2. Access application source code revealing business logic
  3. Execute arbitrary PHP code if the attacker can control the content of an accessible PHP file
  4. Compromise other applications hosted on the same server

Detection Methods for CVE-2025-31493

Indicators of Compromise

  • HTTP requests containing ../ or URL-encoded variants (%2e%2e%2f, %2e%2e/) in query parameters that feed collection names
  • Access logs showing unusual patterns targeting collection-related endpoints with traversal sequences
  • File access logs indicating PHP reading files outside the Kirby collections directory
  • Error logs showing failed attempts to access non-existent files outside the web root

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block path traversal patterns in request parameters
  • Monitor application logs for requests containing directory traversal sequences targeting Kirby endpoints
  • Deploy file integrity monitoring on sensitive configuration files and directories outside the web root
  • Use runtime application self-protection (RASP) solutions to detect path traversal attempts at the application layer

Monitoring Recommendations

  • Enable verbose logging for the Kirby CMS application to capture collection loading events
  • Configure alerting for any file access attempts originating from the web server process targeting files outside expected directories
  • Implement anomaly detection for request patterns that include encoded special characters in collection-related parameters
  • Review web server access logs regularly for reconnaissance or exploitation attempts

How to Mitigate CVE-2025-31493

Immediate Actions Required

  • Update Kirby CMS to version 3.9.8.3, 3.10.1.2, or 4.7.1 depending on your current major version
  • Audit site code for dynamic collection name usage and identify vulnerable patterns
  • Implement input validation to sanitize user-supplied data before use in collection names
  • Restrict PHP process file system permissions to limit accessible files

Patch Information

The Kirby maintainers have released security patches in versions 3.9.8.3, 3.10.1.2, and 4.7.1. These updates add a path containment check that verifies the resolved collection path remains within the configured collections root directory. Collection paths that attempt to reference files outside this boundary are rejected and will not be loaded.

For detailed patch information, refer to the GitHub Security Advisory GHSA-x275-h9j4-7p4h and the respective release notes:

  • Kirby 3.9.8.3 Release
  • Kirby 3.10.1.2 Release
  • Kirby 4.7.1 Release

Workarounds

  • Replace dynamic collection names with fixed, hardcoded collection name strings where possible
  • Implement strict allowlist validation for any user input used in collection names, accepting only known-safe values
  • Use PHP's realpath() function to resolve and validate paths before passing them to the collection helper
  • Deploy a WAF with path traversal protection rules as a temporary defense layer while planning the upgrade
bash
# Configuration example - verify Kirby version after update
php -r "echo Kirby\\Cms\\App::version();"

# Check for vulnerable patterns in your codebase
grep -r "collection(.*\$" site/templates/ site/controllers/ site/snippets/

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.77%

  • 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 Kirby Release 3.10.1.2

  • GitHub Kirby Release 3.9.8.3

  • GitHub Kirby Release 4.7.1
  • Vendor Resources
  • GitHub Security Advisory GHSA-x275-h9j4-7p4h
  • Related CVEs
  • CVE-2025-30159: 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