# CVE-2026-61842: Grav: Twig sandbox config exfiltration via grav.offsetGet + dump filter (CVE-2026-44738 bypass)

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-08-19T15:23:27.038Z
- Modified: 2026-09-09T21:13:25.910Z
- Also known as: GHSA-mc5q-6hpj-rp7j
- Related: CVE-2026-61450
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- getgrav grav: < 2.0.2
- getgrav/grav (Packagist): before 2.0.2

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j> (web)
- <https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6> (web)
- <https://github.com/getgrav/grav/releases/tag/2.0.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61842> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

- CVE List: [CVE-2026-61842](https://www.cve.org/CVERecord?id=CVE-2026-61842), CVE Terms of Use, modified 2026-08-19
- GitHub Advisory Database: [GHSA-mc5q-6hpj-rp7j](https://github.com/advisories/GHSA-mc5q-6hpj-rp7j), CC-BY-4.0, modified 2026-09-02
- NVD: [CVE-2026-61842](https://nvd.nist.gov/vuln/detail/CVE-2026-61842), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-61842 · Whole record: https://cve.day/CVE-2026-61842.json · Rebuilt by cve.day 2026-11-25T22:59:33.970Z
