CVE-2026-76839: Insufficiently Protected Credentials in getgrav grav
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.
CVSS v4.0
Score 8.7high
Affected software
getgrav
grav
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists because Grav's Twig sandbox policy allow-lists offsetGet and offsetExists methods for the UserInterface, but the concrete User class does not filter sensitive fields in offsetGet, exposing hashed_password, secret (2FA seed), and twofa_secret directly to sandboxed templates. This bypasses the redaction applied in jsonSerialize, enabling any sandboxed template with access to a User object to read sensitive credential data. The issue was confirmed by live testing with Grav's real Twig sandbox environment and security policy configuration, demonstrating that offsetGet calls return sensitive data while direct property access is blocked.
Potential Impact
An attacker able to inject or control sandboxed Twig templates can read sensitive user credential data including password hashes and two-factor authentication secrets. This exposure could lead to credential compromise and unauthorized account access. The vulnerability has a high CVSS score of 8.7 due to network attack vector, no required privileges or user interaction, and high impact on confidentiality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid allowing untrusted users to supply or control Twig templates with access to User objects. Review and restrict Twig sandbox policies to prevent allow-listing offsetGet and offsetExists methods on UserInterface or ensure these methods properly redact sensitive fields. Monitor vendor channels for an official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-19T20:34:19.723Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a8cf57bacd9273b498428ae
Added to database: 08/25/2026, 01:52:59 UTC
Last enriched: 09/18/2026, 01:27:34 UTC
Last updated: 10/08/2026, 18:48:48 UTC
Views: 68
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.