All vulnerabilities

Servers and applications

GHSA-62mf-c42h-rr8h

Publishers can read site secrets and a visiting admin's session through allowed Twig page calls

Severity
High
Published
25 Nov 2026
Last changed
25 Nov 2026
Added to UpHeron
25 Nov 2026
Fixed in
2.2.35
Weakness
Information exposure (CWE-200)Protection mechanism failure (CWE-693)
Sources
Project advisories (GitHub)

Description

Grav's Twig content sandbox restricts what page content can call, but it checks callable names only, not what a call does with the arguments it is given. The page metadata() and taxonomy() accessors on the allowlist store whatever they are passed after an (array) cast, which lists an object's private and protected properties, and the shared taxonomy service stores any argument as its taxonomy map. A page editor (publisher) uses either to read configuration the sandbox denies, such as the Email plugin's SMTP password, and to print it on a public page. When a super admin who is signed in through the front-end login views such a page, the page also receives that admin's password hash and session cookie, and the API plugin accepts that cookie as a super admin session.

This is a separate path from GHSA-8rhf-56h6-j77w, which made the page header() setter keep plain data only but left metadata() and the taxonomy setters alone, and another route to the cast that GHSA-59qm-58v5-gvc5 blocked…

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