CVE-2026-75592

Kirby: Access to image files outside of the site root via path traversal in the media handling

Published Aug 31, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Kirby CMS contains a path traversal flaw in its media thumbnail generator. The flaw is caused by incomplete containment checks that compare the real path of a requested file to the site root. The checks allow a sibling directory whose path contains the root string but does not end with a directory separator to be treated as inside the site. By sending a crafted thumbnail request to Kirby\Cms\Media::thumb() with a path that points to such a sibling directory, an attacker can cause Kirby to resolve a file located outside the site root and return it to the client. The flaw also deletes the thumbnail job file during processing, which can remove staging or backup job files. This enables unauthorized read and deletion of files that belong to other sites or internal staging areas.

Affected Systems

Any getkirby:kirby installation running a version earlier than 4.9.5 on the legacy line or earlier than 5.5.2 on the current line is affected. The vulnerability applies regardless of hosting environment because the weakness is in the core media handling code.

Risk and Exploitability

The CVSS score of 6.9 labels the vulnerability as moderate and the EPSS score is unavailable. The attack vector requires only a crafted HTTP request to the thumbnail endpoint and does not need additional credentials. No public exploit or proof‑of‑concept code is known and the vulnerability is not listed in the CISA KEV catalog, but the ease of triggering it over the web makes it a realistic threat for any exposed Kirby installation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Kirby CMS to version 4.9.5 on the legacy line or version 5.5.2 on the current line to apply the vendor fix.
  • Remove or relocate any .json thumbnail job files that are stored outside the intended site root, as these files can trigger the path traversal during thumbnail generation.
  • Configure the web server and file system permissions so that the web application has read/write access only to the site root and its subdirectories, reducing the potential impact of future path traversal weaknesses.

Generated by OpenCVE AI on August 31, 2026 at 23:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6j4c-mgqr-qv76 Kirby: Access to image files outside of the site root via path traversal in the media handling
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Getkirby
Getkirby kirby
Vendors & Products Getkirby
Getkirby kirby
Type Values Removed Values Added
Description 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.
Title Kirby: Access to image files outside of the site root via path traversal in the media handling
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 6.9, 'vector': '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'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 1, 2026, 1:41 PM
Reserved
Aug 17, 2026, 11:49 PM
Status
Deferred
Published
Aug 31, 2026, 9:17 PM
Modified
Sep 8, 2026, 9:11 PM