{"id":"CVE-2026-61842","published":"2026-08-19T15:23:27Z","modified":"2026-08-19T18:18:54Z","title":"Grav: Twig sandbox config exfiltration via grav.offsetGet + dump filter (CVE-2026-44738 bypass)","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"Grav is a file-based Web platform. Prior to 2.0.2, the Grav Twig content sandbox permits grav.offsetGet('config') to return the raw configuration object and permits json_encode, print_r, yaml_encode, and string filters to serialize that object without passing through GravSecurityPolicy::checkMethodAllowed. A user with page-author permissions can render sandboxed content that exposes plugins.* configuration secrets, including SMTP credentials, API keys, and plugin database credentials. This issue is fixed in version 2.0.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00438,"percentile":0.38924,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6","tags":["x_refsource_MISC"]},{"url":"https://github.com/getgrav/grav/releases/tag/2.0.2","tags":["x_refsource_MISC"]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":7.78},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":["< 2.0.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-19T18:03:38.784330Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"getgrav/grav","vulnerableRanges":["<2.0.2"],"patched":["2.0.2"],"from":["GHSA-mc5q-6hpj-rp7j"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-62535","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-getgrav-grav-cve-2022-2073","parents":[{"from":"CVE-2026-61450","to":"CVE-2026-61842","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-mc5q-6hpj-rp7j","via":"reference","url":"https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j"}]},{"from":"CVE-2022-2073","to":"CVE-2026-61842","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Extension/GravExtension.php"],"commits":["https://github.com/getgrav/grav/commit/9d6a2dba09fd4e56f5cdfb9a399caea355bfeb83","https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6"],"basis":"shared function","functions":["getFilters"]}]},{"from":"CVE-2023-34251","to":"CVE-2026-61842","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Extension/GravExtension.php"],"commits":["https://github.com/getgrav/grav/commit/244758d4383034fe4cd292d41e477177870b65ec","https://github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5","https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6"],"basis":"shared function","functions":["getFilters","getFunctions"]}]},{"from":"CVE-2023-34252","to":"CVE-2026-61842","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Extension/GravExtension.php"],"commits":["https://github.com/getgrav/grav/commit/244758d4383034fe4cd292d41e477177870b65ec","https://github.com/getgrav/grav/commit/71bbed12f950de8335006d7f91112263d8504f1b","https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6"],"basis":"shared function","functions":["getFilters","getFunctions"]}]},{"from":"CVE-2023-34253","to":"CVE-2026-61842","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Extension/GravExtension.php"],"commits":["https://github.com/getgrav/grav/commit/244758d4383034fe4cd292d41e477177870b65ec","https://github.com/getgrav/grav/commit/71bbed12f950de8335006d7f91112263d8504f1b","https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6"],"basis":"shared function","functions":["getFilters","getFunctions"]}]},{"from":"CVE-2023-34448","to":"CVE-2026-61842","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Extension/GravExtension.php"],"commits":["https://github.com/getgrav/grav/commit/8c2c1cb72611a399f13423fc6d0e1d998c03e5c8","https://github.com/getgrav/grav/commit/244758d4383034fe4cd292d41e477177870b65ec","https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6"],"basis":"shared function","functions":["getFilters","getFunctions"]}]}],"packageHistory":[{"cve":"CVE-2026-61453","published":"2026-07-15","fixed":"2.0.1","kev":false},{"cve":"CVE-2026-61690","published":"2026-08-19","fixed":"2.0.1","kev":false,"link":{"from":"CVE-2026-61690","to":"CVE-2026-61842","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.1","toFixed":"2.0.2","daysApart":0}]}},{"cve":"CVE-2026-61449","published":"2026-07-15","fixed":"2.0.2","kev":false},{"cve":"CVE-2026-61842","published":"2026-08-19","fixed":"2.0.2","kev":false},{"cve":"CVE-2026-62669","published":"2026-08-19","fixed":"2.0.4","kev":false,"link":{"from":"CVE-2026-61842","to":"CVE-2026-62669","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.2","toFixed":"2.0.4","daysApart":0}]}},{"cve":"CVE-2026-62672","published":"2026-08-19","fixed":"2.0.4","kev":false,"link":{"from":"CVE-2026-61842","to":"CVE-2026-62672","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.2","toFixed":"2.0.4","daysApart":0},{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Extension/GravExtension.php"],"commits":["https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6","https://github.com/getgrav/grav/commit/907116268ad4f48be7472c57f64981918578599a"],"basis":"shared file"}]}},{"cve":"CVE-2026-62673","published":"2026-08-19","fixed":"2.0.4","kev":false,"link":{"from":"CVE-2026-61842","to":"CVE-2026-62673","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.2","toFixed":"2.0.4","daysApart":0}]}}],"package":"Packagist:getgrav/grav"}}