All vulnerabilities

Servers and applications

GHSA-53vw-qqf5-hw58

Publishers can run PHP and read configuration secrets through a Flex page's template header

Severity
High
Published
25 Nov 2026
Last changed
25 Nov 2026
Added to UpHeron
25 Nov 2026
Fixed in
2.2.35
Weakness
Code injection (CWE-94)Information exposure (CWE-200)CWE-829
Sources
Project advisories (GitHub)

Description

A Flex page takes its blueprint from the free-text template in its frontmatter, and core passes that value to the blueprint loader without checking that it names a page type. A page editor (publisher) points template at a file they planted, which core then loads as the page's blueprint. Depending on the file, this gives PHP execution as the web server user, a read of nested values from any YAML file PHP can read (such as the SMTP password in a plugin configuration file), or a rewrite of the page's own permissions. The same lookup also reads built-in blueprint names such as user/account as a file path, which a planted file turns into a way to delete any server file and take over the site. The attacker needs page write access and the Form, Login and Flex Objects plugins, which the grav-admin download ships.

This is a gap in the fix for GHSA-3x2v-6jqq-7gq8. That fix made a blueprint file trusted only when it lies in a blueprint, plugin or theme folder, and made Pages::blueprints() fall…

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