CVE-2026-44177
JSON

8.8high

Kirby: Pre-authentication path traversal and PHP file inclusion during user lookup

Severity
8.8high CVSS:4.0 by GitHub_M
Exploit likelihood
1.36% (higher than 72% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9hx7-c53c-v6x8

Description

Kirby is an open-source content management system. In versions 5.3.0 and above but prior to 5.4.1, Kirby did not correctly validate the provided user ID, resulting in a path traversal vulnerability. Version 5.3.0 introduced a performance improvement to the Users collection that loaded user objects lazily when first needed. Users were queried by their ID, which was then used to locate the corresponding account directory under site/accounts. This affected the authentication API (accessible to unauthenticated requests), the users API (accessible only to authenticated users), and any other place that uses $users->find() to look up an individual user by a request-provided email or ID. As a result, an attacker could trigger arbitrary PHP file inclusion of files named  index.php (for example, the main PHP files of plugins), the impact of which depends on the logic those files contain. It also allowed probing for the existence of arbitrary directories on the server, letting attackers fingerprint the server and site setup, including installed plugins and the content structure. This issue has been fixed in version 5.4.1.

Affected

Product or packageVersionsReported by
getkirby kirby>= 5.3.0, < 5.4.1CVE List
getkirby/cms (Packagist)from 5.3.0 before 5.4.1GitHub Advisory Database

All scores

GitHub_M8.8high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Classification

CWE-22CWE-98

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Kirby is an open-source content management system. In versions 5.3.0 and above but prior to 5.4.1, Kirby did not correctly validate the provided user ID, resulting in a path traversal vulnerability. Version 5.3.0 introduced a performance improvement to the Users collection that loaded user objects lazily when first needed. Users were queried by their ID, which was then used to locate the corresponding account directory under site/accounts. This affected the authentication API (accessible to unauthenticated requests), the users API (accessible only to authenticated users), and any other place that uses $users->find() to look up an individual user by a request-provided email or ID. As a result, an attacker could trigger arbitrary PHP file inclusion of files named  index.php (for example, the main PHP files of plugins), the impact of which depends on the logic those files contain. It also allowed probing for the existence of arbitrary directories on the server, letting attackers fingerprint the server and site setup, including installed plugins and the content structure. This issue has been fixed in version 5.4.1.

GitHub Advisory Database
TL;DR

This vulnerability affects all Kirby sites on Kirby 5.3.0-5.4.0 and is independent from setup conditions and authentication.

This vulnerability is of high severity for all Kirby sites.


Introduction

Path traversal is a type of attack that allows to access arbitrary filesystem paths. By using special elements such as .. and / separators, attackers can escape outside of the restricted location to access files or directories that are elsewhere on the system. One of the most common special elements is the ../ sequence, which in most modern operating systems is interpreted as the parent directory of the current location. Path traversal can give attackers information about the filesystem and directory structure on the server and can lead to additional attacks depending on the nature of the accessible files and directories.

PHP file inclusion is a type of attack that allows to load and execute PHP files on the server that are not intended for direct inclusion. Depending on the logic inside the PHP files, this can lead to disclosure of sensitive information or unintended, malicious actions.

Affected components

Kirby's Users collection received a performance improvement in Kirby 5.3.0. Starting in this release, Kirby loads user objects lazily when they are first needed. Users are queried by their user ID, which is then used to look up the user's account directory in the site/accounts directory.

This applies to the authentication API (accessible to unauthenticated requests), the users API (accessible to authenticated users only) as well as to other places that use $users->find() to look up an individual user with a request-provided email or user ID.

Impact

In affected releases, Kirby did not correctly validate the provided user ID, causing a path traversal vulnerability. This vulnerability results in the following impact:

  • Arbitrary PHP file inclusion of files with the filename index.php (e.g. the main PHP files of plugins), the impact of which depends on the contents and logic inside the includable files.
  • Probing of the existence of arbitrary directories on the server, which can allow attackers to fingerprint the server and site setup, including installed plugins and the content structure.
Patches

The problem has been patched in Kirby 5.4.1. Please update to this or a later version to fix the vulnerability.

In the mentioned release, Kirby has added additional checks to the user lookup that ensure that the provided user ID only contains valid characters and that the resulting path to the account directory is contained in the site/accounts directory.

Credits

Kirby thanks @offset for responsibly reporting the identified issue.

NVD (es)

Kirby es un sistema de gestión de contenido de código abierto. En las versiones 5.3.0 y superiores, pero anteriores a la 5.4.1, Kirby no validaba correctamente el ID de usuario proporcionado, lo que resultaba en una vulnerabilidad de salto de ruta. La versión 5.3.0 introdujo una mejora de rendimiento en la colección de Usuarios que cargaba los objetos de usuario de forma perezosa cuando se necesitaban por primera vez. Los usuarios eran consultados por su ID, que luego se utilizaba para localizar el directorio de cuenta correspondiente bajo site/accounts. Esto afectó a la API de autenticación (accesible a solicitudes no autenticadas), la API de usuarios (accesible solo a usuarios autenticados), y cualquier otro lugar que utilice $users -> find() para buscar un usuario individual por un correo electrónico o ID proporcionado en la solicitud. Como resultado, un atacante podría desencadenar la inclusión de ficheros PHP arbitrarios llamados index.php (por ejemplo, los ficheros PHP principales de los plugins), cuyo impacto depende de la lógica que contengan esos ficheros. También permitía sondear la existencia de directorios arbitrarios en el servidor, permitiendo a los atacantes identificar la configuración del servidor y del sitio, incluyendo los plugins instalados y la estructura de contenido. Este problema ha sido solucionado en la versión 5.4.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-44177 changed 2026-07-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-9hx7-c53c-v6x8 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-44177 changed 2026-10-24Public domain