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.
Published: 2026-08-31
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Mon, 31 Aug 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Getkirby
Getkirby kirby
Vendors & Products Getkirby
Getkirby kirby

Mon, 31 Aug 2026 21:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-31T20:49:41.341Z

Reserved: 2026-08-17T23:49:03.448Z

Link: CVE-2026-75592

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-31T21:17:48.613

Modified: 2026-08-31T21:17:48.613

Link: CVE-2026-75592

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-31T23:45:06Z

Weaknesses
  • CWE-22

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