All vulnerabilities

Servers and applications

GHSA-68qm-j78c-xpxx

Publishers can read server files through the asset pipeline

Severity
High
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)CWE-73CWE-644
Sources
Project advisories (GitHub)

Description

Grav's asset pipeline reads every asset it treats as local straight from disk and writes the contents into a public bundle, without checking that the path stays inside the site or that the file is a stylesheet or script. A page editor (publisher) can steer a remote-looking asset URL onto that local read, and so copy any file the web server user can read into a public /assets/.js bundle. That includes account files with password hashes, security-private.php and the API plugin's token signing secret, which leads to a forged super-admin token. This only works when system.assets.js_pipeline is on, the request arrives over HTTPS, system.custom_base_url is empty (the default), the Form plugin is installed, and the web server passes an unknown Host header through to Grav, as Apache does with a single virtual host.

isRemoteLink() calls any link that starts with the site's root URL local, and without a custom_base_url that root is built from the request's scheme and Host header, with no…

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