Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEnumerate sibling directories sharing installation path prefix
-
DeliveryConfirm valid .json thumbnail job file is present
-
ExploitSend crafted HTTP request to Media::thumb() endpoint
-
ExecutionBypass Dir/F realpath() containment check via missing separator boundary
-
PersistTrigger thumbnail generation from sibling image file
-
ImpactRetrieve disclosed image content; job file deleted
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 | Three specific conditions must all be satisfied simultaneously for exploitation to succeed. First, the target Kirby installation must be running a version prior to 4.9.5 (4.x) or 5.5.2 (5.x). Second, a PHP-readable sibling directory must exist whose absolute filesystem path shares the string prefix of the Kirby installation root without an intervening directory separator - for example, |
| Impact | The CVSS 4.0 score of 6.9 with vector AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H captures the split nature of this risk: network-accessible and unauthenticated, yet bounded by a hard precondition (AT:P) requiring a PHP-readable sibling directory with a valid |
| Exploit ScenarioDerived | An attacker identifies a Kirby installation at |
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 filesystem containment logic allows remote unauthenticated attackers to access image files in PHP-readable sibling directories that share a string prefix with the Kirby installation root, and to create thumbnails from those files via the media handler. Versions prior to 4.9.5 (4.x line) and 5.5.2 (5.x line) are affected, with the impact limited to subsequent-system confidentiality exposure - staging sites, backups, or co-hosted internal sites - rather than the Kirby instance itself. No public exploit code has been identified and this vulnerability is not listed in the CISA KEV catalog; the CVSS 4.0 AT:P metric confirms specific environmental preconditions must exist for exploitation.
RemediationAI
Upgrade to Kirby CMS 4.9.5 (4.x line) or 5.5.2 (5.x line), as confirmed by the vendor GitHub release tags at https://github.com/getkirby/kirby/releases/tag/4.9.5 and https://github.com/getkirby/kirby/releases/tag/5.5.2. If immediate patching is not feasible, the most effective compensating control is ensuring no PHP-readable sibling directory shares a string prefix with the Kirby installation root - for example, renaming /var/www/site2 to a path that does not begin with /var/www/site (such as /var/www/staging-site2) eliminates the naming-based bypass; note this may require updating server vhost configurations and any hardcoded internal references. Restricting OS-level filesystem permissions so the PHP process cannot read adjacent sibling directories eliminates the vulnerability independent of directory naming, though care must be taken not to inadvertently break legitimate application paths. Removing any stale .json thumbnail job files from sibling directories removes the specific precondition that enables exploitation with no functional trade-off. These workarounds should be treated as temporary bridges to the patched release rather than permanent mitigations.
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
The root cause (CWE-22, Improper Limitation of a Pathname) exists in Kirby's filesystem abstraction layer: both Kirby\Filesystem\Dir::realpath() in src/Filesystem/Dir.php and Kirby\Filesystem\F::realpath() in src/Filesystem/F.php enforced containment using a bare string-prefix comparison - substr($realpath, 0, strlen($parent)) !== $parent - without requiring a trailing directory separator boundary. This allowed a sibling path such as /var/www/site2 to pass the containment check for an intended parent of /var/www/site because the string begins with the parent prefix. The exploit entry point is Kirby\Cms\Media::thumb(), which drives thumbnail generation and internally resolves paths through the vulnerable realpath functions. Confirmed fix commits (2b6fab9 and e0dca5f) replace the substring check with an explicit separator-bounded test: str_starts_with($realpath, $parent . DIRECTORY_SEPARATOR), correctly rejecting any sibling whose name merely starts with the parent's name. The affected CPE is cpe:2.3:a:getkirby:kirby:*:*:*:*:*:*:*:* covering all releases before the patched versions.
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:N/VI:N/VA:N/SC:H/SI:N/SA:N
AC:H reflects the required sibling-directory naming precondition plus the .json job file; S:C and C:H capture high confidentiality impact on the neighboring system; I:L accounts for job file deletion on the subsequent system.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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 used incomplete filesystem containment checks in src/Filesystem/Dir.php and src/Filesystem/F.php through Kirby\Filesystem\Dir::realpath() and Kirby\Filesystem\F::realpath(). The checks accepted a sibling directory whose path shared the intended root's string prefix, such as /var/www/site2 next to /var/www/site, because they did not require an exact match or a DIRECTORY_SEPARATOR boundary. A remote attacker could use Kirby\Cms\Media::thumb() to create and access thumbnails from image files in a PHP-readable sibling directory when that directory contained a valid .json thumbnail job file, potentially exposing staging sites, backups, or other internal sites and deleting the job file during processing. This issue is fixed in versions 4.9.5 and 5.5.2.
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-68811
GHSA-6j4c-mgqr-qv76
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB