Skip to main content
EPSS 0.5%top 62%

CVE-2026-76839: Insufficiently Protected Credentials in getgrav grav

0
High
Published: 08/25/2026 (08/25/2026, 01:30:31 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

getgrav

grav

Affected versions
>=0 <2.0.16
GitHub Actionsmore threats →ai
getgrav/grav
pkg:github/getgrav/grav
Affected versions
<2.0.16

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

AILast updated: 09/18/2026, 01:27:34 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses