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.
Published: 2026-08-19
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Grav's Twig sandbox is designed to limit user‑generated content, but the grav.offsetGet('config') call exposes the raw configuration object. This object can be serialized using json_encode, print_r, yaml_encode, or string filters without being checked by the sandbox’s security policy. An attacker who can create or modify a page with author permissions can therefore render a page that outputs the entire configuration, leaking SMTP credentials, API keys, and database passwords. The flaw is an instance of CWE‑200, Information Exposure.

Affected Systems

The vulnerability affects all Grav installations built with the Twig sandbox before version 2.0.2. It is present in GetGrav’s Grav product, specifically in Grav 2.0.1 and earlier releases. The issue was addressed in Grav 2.0.2 and later versions.

Risk and Exploitability

The flaw carries a CVSS score of 6.5. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires only the ability to render sandboxed content with page‑author rights, a privilege that many users on typical sites possess. No additional credentials, network access, or code execution is needed. The attack path is therefore relatively straightforward, giving a moderate but non‑negligible risk, especially for sites where several users hold page‑author permissions or where configuration secrets are kept in a single site configuration file.

Generated by OpenCVE AI on August 20, 2026 at 01:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Grav to version 2.0.2 or later, which removes the exposed object from the sandbox.
  • Audit the Twig sandbox configuration to confirm that grav.offsetGet('config') and the serialization filters are disallowed or enforce the GravSecurityPolicy::checkMethodAllowed check.
  • Limit page‑author permissions to the minimum necessary users and audit existing author accounts for unnecessary privileges.

Generated by OpenCVE AI on August 20, 2026 at 01:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 19 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 19 Aug 2026 17:00:00 +0000

Type Values Removed Values Added
First Time appeared Getgrav
Getgrav grav
Vendors & Products Getgrav
Getgrav grav

Wed, 19 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
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.
Title Grav: Twig sandbox config exfiltration via grav.offsetGet + dump filter (CVE-2026-44738 bypass)
Weaknesses CWE-200
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-19T18:18:54.336Z

Reserved: 2026-07-10T20:28:17.512Z

Link: CVE-2026-61842

cve-icon Vulnrichment

Updated: 2026-08-19T18:03:39.817Z

cve-icon NVD

Status : Received

Published: 2026-08-19T16:18:17.003

Modified: 2026-08-19T19:17:21.567

Link: CVE-2026-61842

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T01:45:03Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor