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: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in Grav’s Twig content sandbox, which is meant to restrict the execution of user‑generated content. Before version 2.0.2 the sandbox allows the function grav.offsetGet('config') to retrieve the raw configuration object. That object can be serialized via json_encode, print_r, yaml_encode, or string filters without the sandbox’s security policy check. As a result an attacker with page‑author permissions can render a page that exposes any plugin‑specific configuration values, such as SMTP credentials, API keys, and database credentials.

Affected Systems

All Grav installations using the Twig sandbox version prior to 2.0.2 are affected, which includes Grav 2.0.1 and earlier releases. The fix is delivered in Grav 2.0.2 and later releases.

Risk and Exploitability

The CVSS score is 6.5, and the EPSS score is listed as less than 1 %, indicating a very low but nonzero chance of exploitation. The vulnerability is not in the CISA KEV catalog. Exploitation requires only the ability to render sandboxed content with page‑author permissions; no higher administrative or remote network access is needed. The attack path is straightforward: an attacker creates or edits a page to include a template that triggers the exposed serialization, leading to disclosure of sensitive configuration data.

Generated by OpenCVE AI on August 20, 2026 at 16:11 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.
  • Restrict page‑author permission to users who truly need it, and audit existing author accounts to eliminate unnecessary privileges.
  • If upgrading is not immediately possible, disable the dump filter or other serialization filters in the Twig sandbox to prevent serialization of configuration data until the patch is applied.

Generated by OpenCVE AI on August 20, 2026 at 16:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-mc5q-6hpj-rp7j Grav: Twig sandbox config exfiltration via grav.offsetGet + dump filter (CVE-2026-44738 bypass)
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 : Deferred

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

Modified: 2026-09-09T21:13:25.910

Link: CVE-2026-61842

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T16:15:03Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor