CVE-2026-76839: Grav before 2.0.16 Information Disclosure via offsetGet

Published Aug 25, 2026
·
Updated

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.

Affected Software

1 affected component
grav<2.0.16

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade grav to a version that resolves this vulnerability.

    Fixed in 2.0.16
  2. Configuration

    Ensure sandboxed Twig templates cannot access sensitive User fields through allow-listed offsetGet() and offsetexists() (field filtering is missing in versions before 2.0.16).

    Grav Twig templating sandbox allow-listed offsetGet()/offsetexists() access to User fields = disable or remove allow-list access to sensitive User fields via offsetGet() and offsetexists()

Event History

Aug 25, 2026
CVE Published
via MITRE·01:30 AM
Data Sourced
via MITRE·01:30 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue in practice?

An attacker needs page-edit permissions and the ability to use sandboxed Twig templates. The issue is therefore most relevant where untrusted or insufficiently trusted users can edit pages or template content.

2

What data could be exposed, and why does it matter?

Affected templates can retrieve sensitive User object fields, including hashed passwords and 2FA secrets. Exposed password hashes may be cracked offline, while 2FA secrets could enable authentication bypass.

3

What should be prioritized for remediation?

Upgrade Grav to 2.0.16 or later. Until upgrading is possible, restrict page-edit permissions and prevent untrusted users from creating or modifying sandboxed Twig templates.

4

How can I determine whether an instance is affected?

Instances running Grav before 2.0.16 are affected. Review whether users with page-edit permissions can invoke allow-listed offsetGet() or offsetexists() methods from sandboxed Twig templates against User objects.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203