{"schemaVersion":3,"id":"CVE-2026-61450","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-07-10T13:58:08.307Z","modified":"2026-10-08T15:23:35.167Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.1,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.1,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.05421,"percentile":0.92674,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":5.012,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00409},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.05421,"percentile":0.92674}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00409,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.05421,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.05421,"percentile":0.92674}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"getgrav","product":"grav","name":"grav","label":"grav","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.2","eol":null,"hubHref":"/vendor/getgrav/grav"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j","label":"github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j","hostname":"github.com","tags":["Vendor Advisory"]},{"url":"https://www.vulncheck.com/advisories/grav-before-config-exfiltration-via-offsetget-filter","label":"www.vulncheck.com/advisories/grav-before-config-exfiltration-via-offsetget-filter","hostname":"www.vulncheck.com","tags":["Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-07-10T13:58:08.307Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-08T15:23:35.167Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T15:40:44.187Z","stale":false,"partial":false}}