All vulnerabilities

Servers and applications

GHSA-f839-hcfg-jjpw

Publishers can overwrite pages their page permissions deny through the page language on multi-language sites

Severity
Medium
Published
25 Nov 2026
Last changed
25 Nov 2026
Added to UpHeron
25 Nov 2026
Fixed in
2.2.35
Weakness
Path traversal (CWE-22)Incorrect authorization (CWE-863)
Sources
Project advisories (GitHub)

Description

On a multi-language Grav site that uses regular pages, a page editor (publisher) who may edit any one page can overwrite pages whose page permissions deny them every change. The path travels through the language value in the page's frontmatter: core accepts any string there, and when the API plugin changes a page's template it builds the new file name from that language, so a language of x/../../policy/default makes the save land on user/pages/policy/default.md. The overwrite replaces the protected page's frontmatter and body, including its permissions block, and because child pages inherit that block, the editor then also reads and edits the rest of the protected subtree. The same write reaches any other .md file in a web-writable folder. It needs a publisher account, languages.supported set (multi-language is off by default), and regular rather than Flex pages.

From getgrav/grav's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
GravServers and applications · github:getgrav/grav
  • From 2.0.0 before 2.2.35

About Grav

free software content management system written in PHP

From Wikidata, CC0 1.0.
Monthly downloads (Packagist)
1,832Packagist, 22 Nov 2026
Total downloads (Packagist)
93,086Packagist, 22 Nov 2026
GitHub stars
15,733GitHub, 22 Nov 2026
Forks
1,428GitHub, 22 Nov 2026
Latest release
2.2.32GitHub, 22 Nov 2026
Released
20 Nov 2026GitHub
License
MIT LicenseWikidata
Written in
PHPWikidata
First published on GitHub
2 Aug 2014GitHub

References