Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Kirby media endpoint on nginx or AllowEncodedSlashes Apache
-
DeliverySubmit filename with %2f-encoded traversal sequence
-
ExploitServer decodes %2f and resolves path outside media directory
-
ExecutionProbe response differences to enumerate .json file existence
-
PersistLocate job .json with valid filename key
-
ImpactRetrieve referenced image file contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the Kirby instance to run on nginx (which decodes %2f by default and cannot be configured to preserve it without breaking routing), PHP's built-in web server, or Apache with AllowEncodedSlashes explicitly set to On or NoDecode - a non-default Apache directive. Apache deployments with the default AllowEncodedSlashes Off are not exploitable via the encoded-slash vector. The CVSS 4.0 vector PR:N confirms no authentication is required; the media endpoint is publicly reachable in typical Kirby deployments. The information disclosure is constrained: attackers learn whether a targeted .json file exists (not arbitrary file read), and retrieval of image content via the job-file mechanism requires a .json file at the traversed path with a valid filename key - limiting impact to scenarios where such files are present or can be influenced. |
| Impact | The CVSS 4.0 score of 8.2 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N) accurately captures the tension here: exploitation is straightforward once the precondition is met (AT:P), but that precondition - a specific web server configuration - is non-trivial. Standard Apache installations with the default AllowEncodedSlashes Off are not vulnerable; only nginx, PHP's built-in server, and explicitly misconfigured Apache deployments fall within scope. The confidentiality impact is high (VC:H) but is bounded: the primary gain is knowledge of whether a .json file exists at an arbitrary path, with a secondary path to retrieve image file content via a pre-planted job file - not arbitrary file read. No EPSS score is available in the input data, making statistical exploitation probability assessment impossible; this absence should be noted. KEV status is absent, confirming no CISA-attributed active exploitation. The practical priority is highest for Kirby deployments on nginx (where %2f decoding is the default server behavior, with no safe configuration toggle short of upgrading), and lower for Apache operators who can verify AllowEncodedSlashes is Off. |
| Exploit ScenarioDerived | An attacker sends an HTTP GET request to the Kirby media endpoint with a filename parameter containing URL-encoded slash sequences (e.g., %2f..%2f..%2f) targeting a guessed or enumerated .json file path outside the media directory. By comparing server response characteristics for existing versus nonexistent thumbnail configurations, the attacker confirms whether the .json file is present - leaking filesystem structure. If the attacker can influence or predict the content of a .json job file (e.g., via a prior write primitive or knowledge of Kirby's job file format), the server will retrieve and return the referenced image file. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 31, 2026
Path traversal in Kirby CMS's media handler exposes arbitrary .json file existence and potentially image file contents to remote unauthenticated attackers on affected server configurations. The vulnerability exists in two code paths - Media::thumb() in src/Cms/Media.php and the file::version path in src/Filesystem/Asset.php - both of which failed to reject URL-encoded slash characters or literal ../ sequences before resolving paths relative to validated media directories. Fixed in versions 4.9.5 and 5.5.2; no public exploit code has been identified at time of analysis, and CISA KEV listing is absent.
RemediationAI
Vendor-released patches are available: upgrade to Kirby 4.9.5 (4.x line) or 5.5.2 (5.x line) as appropriate; release notes and binaries are at https://github.com/getkirby/kirby/releases/tag/4.9.5 and https://github.com/getkirby/kirby/releases/tag/5.5.2, with fixes across commits 22fbaedb7e6d, a40808f5c2ee, cd7abb68d298, and e0dca5f709ad. If immediate upgrade is blocked, Apache operators should confirm AllowEncodedSlashes is absent or explicitly set to Off (the default) - this eliminates the %2f decoding path with no functional trade-off for standard Kirby usage. No equivalent configuration toggle exists for nginx or PHP's built-in server; on those stacks, upgrade is the only reliable mitigation. As a defense-in-depth measure, restricting public network access to Kirby's media endpoint (e.g., via reverse-proxy ACL) reduces exposure but will break legitimate thumbnail serving for unauthenticated users.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) manifests here in Kirby's PHP media pipeline. The thumb() function in Media.php appended user-supplied filenames to a validated parent directory path without stripping encoded traversal sequences; because nginx and PHP's built-in server decode %2f before PHP receives the request (and Apache does so when AllowEncodedSlashes is On/NoDecode), the decoded path escapes the intended directory boundary. A parallel flaw in src/Filesystem/Asset.php's file::version handler accepted literal ../ and ..\ sequences against the index root. The patch (commits 22fbaedb, a40808f5, cd7abb68, e0dca5f7) adds explicit Str::contains() checks for ../ and ..\ in both code paths before any filesystem operation. The CPE cpe:2.3:a:getkirby:kirby:*:*:*:*:*:*:*:* covers all versions prior to the patched releases across both the 4.x and 5.x lines.
Know when Kirby gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
AC:H reflects the specific server configuration prerequisite (nginx or Apache AllowEncodedSlashes On); confidentiality-only impact with no integrity or availability effect.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Kirby is an open-source content management system. Prior to 4.9.5 and 5.5.2, depending on the release line, Kirby's media handler in src/Cms/Media.php allowed Kirby\Cms\Media::thumb() to append a path-bearing filename to a validated parent media directory. On nginx, PHP's built-in server, or Apache with AllowEncodedSlashes enabled, a remote attacker could submit encoded slash characters such as %2f in the filename and traverse outside the parent's media directory. Differences between responses for existing and nonexistent thumbnail configurations disclosed whether an arbitrary .json file existed, and a .json file containing a valid filename key could cause the referenced image to be returned and the job file to be deleted. The related file::version path in src/Filesystem/Asset.php also accepted ../ sequences outside the intended index root. This issue is fixed in versions 4.9.5 and 5.5.2.
Articles & Coverage 1
Technical POC Analysis
CWE-22 (Improper Limitation of a Pathname to a Restricted Directory).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Kirby CMS versions prior to 4.9.5 and 5.5.2 contain a path traversal vulnerability in the media handler that permits unauthenticated remote attackers to disclose arbitrary .json files and potentially view image contents. No public exploit has been identified at time of analysis. Organizations running affected versions face immediate information disclosure risk.
Apply vendor patch by upgrading to Kirby CMS version 4.9.5 or 5.5.2 as appropriate for your deployment.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
An arbitrary file upload vulnerability in the Profile Image module of Kirby CMS v4.1.0 allows attackers to execute arbit
An HTML injection vulnerability exists in the Edit Content Layout module of Kirby CMS v4.1.0. Rated high severity (CVSS
Kirby is an open-source content management system. Rated medium severity (CVSS 6.3), this vulnerability is remotely expl
A stored cross-site scripting (XSS) vulnerability in the Edit Content Layout module of Kirby CMS v4.1.0 allows attackers
panel/login in Kirby v2.5.12 allows Host header injection via the "forget password" feature. Rated medium severity (CVSS
Kirby is a content management system. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitable, n
Kirby is an open source CMS. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack co
panel/login in Kirby v2.5.12 allows XSS via a blog name. Rated medium severity (CVSS 5.4), this vulnerability is remotel
Kirby is a CMS. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable, low attack complexity. T
Kirby is a content management system. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low at
Kirby v2.5.12 allows XSS by using the "site files" Add option to upload an SVG file. Rated medium severity (CVSS 4.8), t
Stored cross-site scripting in Kirby CMS 5.0.0 through 5.6.3 lets authenticated users with file upload permissions race
EUVD-2026-68813
GHSA-9vx2-j98c-p72w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB