
Safe PHP proof of concept and technical analysis for CVE-2026-108924, an authorization bypass in Kirby CMS dynamic field options that discloses restricted model metadata.
English | Português do Brasil
Safe proof of concept and technical analysis for an authorization bypass in Kirby CMS. Query-backed Panel fields can render metadata from models the current user is not permitted to list or access.
The issue was researched and reported by Fernando Viana (capivara-research). VulDB accepted submission #997196, created VDB-416748, assigned CVE-2026-108924, and credits Fernando Viana as reporter.
| Item | Detail |
|---|---|
| Vulnerability | Restricted model metadata disclosed in dynamic field options |
| Component | Kirby\Option\OptionsQuery::resolve() |
| File | src/Option/OptionsQuery.php |
| Weaknesses | CWE-285, CWE-639 |
| Attacker | Authenticated Panel user with limited permissions |
| User interaction | None |
| Official severity | Medium — CVSS 4.0 5.3 / CVSS 3.1 4.3 |
| Official affected range | Kirby 4.9.0–4.9.5 and 5.5.0–5.5.3 |
| Official fixed versions | 4.9.6 and 5.6.0 |
| Local observation | The supplied PoC also reproduced on 5.6.0 and 5.6.1 |
The official CVE record lists Kirby 4.9.6 and 5.6.0 as unaffected. However, the synthetic reproducer in this repository was executed locally against Composer-installed 5.5.3, 5.6.0, and 5.6.1; all three exposed the restricted marker.
This repository therefore distinguishes between:
4.9.5/5.5.3, fixed in 4.9.6/5.6.0.OptionsQuery path remained reproducible in 5.6.0 and 5.6.1.The latter is a test result, not an unsupported expansion of the official range. Vendor/CNA review is needed to reconcile the records. See validated results.
Kirby blueprints can populate fields such as select, multiselect, checkboxes, and radio from a query:
fields:
related:
type: select
options:
type: query
query: site.index
The Panel needs a text/value pair for every result. OptionsQuery::resolve() executes the query and maps each returned model into an option. Page defaults include its title and ID; file and user defaults can similarly include identifying metadata.
The authorization boundary and option-generation path are separate:
limited Panel user
-> opens an allowed form
-> query evaluates site.index
-> result includes a restricted page
-> OptionsQuery::resolve() maps every result
-> restricted title and ID become option text/value
-> Panel user receives metadata they cannot list or access directly
In the tested path, the collection returned by the query is converted into options without filtering each model through the current user's list/access permissions.
The security assertion is not merely that a secret model exists in site.index. The PoC establishes both sides under the same user:
secret->isListable() is false.secret->isAccessible() is false.text, value, info, or icon templates may expose other model properties.The reproducer constructs a synthetic Kirby application entirely in memory. It creates:
editor role;select field;access and list permissions are denied to that role;It makes no HTTP requests, needs no live Panel session, reads no production content, and performs no persistent write.
Run it against a local Plainkit tree:
php poc.php /path/to/kirby-plainkit
Expected vulnerable assertion:
"secret_listable": false
"secret_accessible": false
"restricted_option_disclosed": true
[VULNERABLE] restricted model metadata was rendered as a field option
Exit codes:
| Code | Meaning |
|---|---|
1 | Restricted metadata was disclosed; vulnerable behavior reproduced |
0 | Restricted metadata was not disclosed |
2 | Usage or laboratory setup error |
docker build --build-arg KIRBY_VERSION=5.5.3 -t cve-2026-108924:5.5.3 .
docker run --rm cve-2026-108924:5.5.3
The container exits with 1 when the security regression is found. This is intentional so the PoC can be used as a CI regression test.
To verify the recorded discrepancy with the same harness:
docker build --build-arg KIRBY_VERSION=5.6.0 -t cve-2026-108924:5.6.0 .
docker run --rm cve-2026-108924:5.6.0
docker build --build-arg KIRBY_VERSION=5.6.1 -t cve-2026-108924:5.6.1 .
docker run --rm cve-2026-108924:5.6.1
The related GHSA-8r9g-hhm3-5jfh concerns permission checks when files, pages, and users fields resolve values that are already stored, plus related dialogs and breadcrumbs. CVE-2026-108924 concerns dynamic option generation through OptionsQuery::resolve() for fields such as select, multiselect, checkboxes, and radio.
| Aspect | Stored-value advisory | CVE-2026-108924 |
|---|---|---|
| Trigger | Resolve a previously stored model reference | Build options from a blueprint query |
| Main path | Model fields and related Panel views | FieldOptions → OptionsQuery::resolve() |
| Exposed object | Referenced stored value | Any restricted model returned by the query |
| PoC field | Not applicable here | Query-backed select |
Follow vendor guidance and upgrade to a supported Kirby version. Because the supplied PoC reproduced beyond the official fixed 5.x version, administrators with affected blueprint patterns should also run the regression test in a local copy of their exact release and configuration.
At code level, query results that represent permission-aware models should be filtered before their properties are converted into options. Regression coverage should include:
select, multiselect, checkboxes, and radio fields;Options results;As a temporary configuration-level mitigation, avoid query-backed fields whose result set can include models hidden from the roles allowed to open the form. This reduces exposure but is not a replacement for a code-level authorization check.
.
├── README.md
├── README.pt-BR.md
├── poc.php
├── Dockerfile
├── evidence/
│ └── validated-results.md
├── SECURITY.md
└── LICENSE