llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · getgrav/grav

GHSA-3RXF-JPGC-HWPV

Page editors can overwrite pages their page permissions deny

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión2.2.18
Exposición21 dDesde la divulgación, 31 oct 2026, 4:06 p. m.
Detección18 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de la severidad declarada por GHSA (media) y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Ponle etiqueta y a la cola. Ordenadito.Respira hondo: esta no muerde… todavía.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
31 oct 26
18 nov 26
21 nov 26
31 oct 26
6 nov 26
11 nov 26
16 nov 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-3RXF-JPGC-HWPV divulgada
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Summary

A page editor (publisher) with page write access, on a site that uses per-page permissions, can overwrite a page whose permissions deny them every action. The overwrite replaces the protected page's content and its entire frontmatter, including the `permissions` block, and because child pages inherit that block, the attacker then also reads and edits the rest of the protected subtree. Two related storage bugs cause this through a front-end Flex pages form that the publisher can place on a page. It needs the Flex Objects plugin (enabled in the standard `grav-admin` download) and a site that relies on per-page permissions.

Affected versions

Grav 2.x from 2.0.0 up to and including 2.2.17. The key delimiter collision dates from Grav 1.7.0-beta.5 (the rename overwrite from 1.7.0-rc.16) and the folder reconstruction from 1.7.0-rc.1, so the code exists on 1.7. It needs a publisher account, so no 1.7 release is part of this advisory.

Details

Both variants let a Flex page save land on a destination nobody authorized. The only check that stops a save from replacing an existing page is the "already taken" test in `FolderStorage::renameRow()`, and each variant gets around it.

Delimiter collision (ANT-2026-Y69QQ2NV). `FolderStorage::getStoragePath()` formats the storage pattern with `*` as a marker in the file and extension slots and keeps everything before the first `*`. A key that itself contains `*` is cut at its own asterisks, so a page folder named `locked*` shares its storage and media path with the page `locked`, while page validation still accepts `*` in folder names. Renaming `locked*` to `locked` through a Flex form skips the collision check because both paths compare equal, and writes over `user/pages/locked/default.md`. Deleting `locked*` removes the `locked` folder. The target must be a page without child folders, in a parent where the attacker may create a sibling. In the reproducer the editor replaces the admin's ACL-protected `/locked` page, and a direct `PATCH` of `/locked` before that is refused with 403. A folder named `***` resolves to `user/pages` and makes the page index recurse until the memory limit, which makes the API's page listing answer 500 until the page is removed.

Folder reconstruction (ANT-2026-BZSTD7UK). `PageStorage::saveRow()` calls the collision check only when the page's old folder exists. It rebuilds that folder from order and slug, which drops the prefix width and pads to the configured number of digits, and emits no prefix for order 0. For a folder with any other prefix width (`1.mine`, `005.mine`, `00.mine`) the rebuilt folder does not exist, so the move and its check are skipped and the row is written straight into the target. Authorization is only requested for the publisher's own page, never for the page being replaced. In the reproducer a `02.plain` page is refused with "already taken", while the same save from `1.mine` returns 303 and replaces the protected page and its permissions. After the overwrite the editor's `GET /api/v1/pages/locked/secret` (a child of the admin's page) goes from 403 to 200.

Related cases in the same class are fixed in the same release: saving one translation with a changed `lang` or `template` over a translation that denies the account, and (with the experimental Flex pages type) creating a page below a parent whose permissions refuse the grant.

Impact

A publisher overwrites or deletes pages that the site's permissions deny them, and gains access to the protected subtree through the replaced permissions block. It stays inside the page tree and needs page write access, a site with per-page permissions and a Flex pages form, which is why the rating is Moderate. Precedent is GHSA-2pvc-r9gj-mcpf.

Patches

Fixed in Grav 2.2.18. The storage pattern is cut before the file and extension placeholders and the key is substituted afterwards, so a key can no longer introduce the marker. The existing physical folder is derived from the original storage key and the parsed prefix width is retained, so the move and its collision check run for every prefix width. Page saves also authorize against the destination parent (and, when saving another language, against the translation being replaced) and refuse to replace an existing page file.

Credits

Discovered by Anthropic's OSS Scanner (ANT-2026-Y69QQ2NV, ANT-2026-BZSTD7UK).

Versiones

Rangos afectados

Afectada Corregida
getgrav/grav≥ 2.0.0 < 2.2.18
2.0.0
2.2.18
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistgetgrav/grav
Corregida 2.2.18 — —
Versiones corregidas2.2.18
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/getgrav/grav/security/advisories/GHSA-3rxf-jpgc-hwpv

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.