Skip to content
Heist/ feed
High

Grav before 2.0.2 Config Exfiltration via offsetGet Filter

Type: advisorySource: Official CVE List1 source record

Grav before 2.0.2 contains a Twig sandbox bypass that allows a page author (any admin.pages user, or anyone able to write to user/pages) to exfiltrate configuration secrets. Although the sandbox replaces the 'config' variable with a redacted facade and strips Config::get/toArray from the method allowlist, the raw container remains accessible via the allow-listed grav.offsetGet('config'), which returns the real Config object. Allow-listed object-dumping filters (json_encode, print_r, yaml_encode) then serialize that object at the PHP level without invoking the sandbox method gate, exposing the full config tree including plugin secrets such as SMTP credentials, API keys, and plugin DB credentials. This is an incomplete fix for GHSA-j274-39qw-32c9.

Announced Source revision 1
Original source ↗

CVE-2026-61450

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-61450

grav

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "getgrav",
    "product": "grav",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "2.0.2",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "2.0.2",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:composer/getgrav/grav",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-61450

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#12770 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement