Description
Grav before 2.0.16 allows sandboxed Twig templates to access sensitive User fields through allow-listed offsetGet() and offsetexists() methods that lack field filtering. Attackers with page-edit permissions can call offsetGet() on User objects to extract hashed passwords and 2FA secrets, enabling offline password cracking and authentication bypass.
Published: 2026-08-25
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure
Action: Patch Immediately
AI Analysis

Impact

Sandboxed Twig templates in Grav can call the offsetGet() and offsetexists() methods on User objects without proper filtering. Users with page‑edit permissions can use these calls to read sensitive fields such as hashed passwords and 2FA secrets, which can then be cracked offline or used to bypass authentication. The vulnerability therefore mainly threatens confidentiality and allows credential compromise.

Affected Systems

The flaw exists in Grav versions released before 2.0.16. All installations using getgrav:grav prior to that patch level are vulnerable when sandboxed Twig templates are enabled and page‑edit permissions are granted to potential attackers.

Risk and Exploitability

The CVSS score of 8.7 designates the weakness as high severity. EPSS data is not available, but the lack of mitigation and the capability to obtain hashed credentials make exploitation plausible. The attack requires a user with page‑edit rights and the ability to execute or add a qualified Twig template; it is not a remote code execution flaw. The vulnerability is not currently listed in the CISA KEV catalog, but the potential impact warrants prompt attention.

Generated by OpenCVE AI on August 25, 2026 at 03:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Grav CMS to version 2.0.16 or later.
  • Restrict page‑edit permissions to trusted administrators only, preventing non‑privileged users from altering templates.
  • Configure or patch the Twig sandbox to disallow offsetGet() and offsetexists() on User objects if an immediate upgrade is not possible.

Generated by OpenCVE AI on August 25, 2026 at 03:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 26 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 25 Aug 2026 02:00:00 +0000

Type Values Removed Values Added
Description Grav before 2.0.16 allows sandboxed Twig templates to access sensitive User fields through allow-listed offsetGet() and offsetexists() methods that lack field filtering. Attackers with page-edit permissions can call offsetGet() on User objects to extract hashed passwords and 2FA secrets, enabling offline password cracking and authentication bypass.
Title Grav before 2.0.16 Information Disclosure via offsetGet
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-522
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
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'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-25T15:45:24.322Z

Reserved: 2026-08-19T20:34:19.723Z

Link: CVE-2026-76839

cve-icon Vulnrichment

Updated: 2026-08-25T15:44:22.538Z

cve-icon NVD

Status : Deferred

Published: 2026-08-25T02:16:51.603

Modified: 2026-08-31T20:50:15.927

Link: CVE-2026-76839

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T03:45:06Z

Weaknesses
  • CWE-522

    Insufficiently Protected Credentials