The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42610

CVE-2026-42610: Getgrav Grav Auth Bypass Vulnerability

CVE-2026-42610 is an authentication bypass vulnerability in Getgrav Grav that allows low-privileged users to extract sensitive data including password hashes. This article covers the technical details, affected versions, and fixes.

Published: May 18, 2026

CVE-2026-42610 Overview

CVE-2026-42610 is an authorization flaw in Grav, a file-based content management platform. Versions prior to 2.0.0-beta.2 allow a low-privileged authenticated user, such as a Content Editor holding only pages.update permissions, to bypass the Twig sandbox by referencing the grav['accounts'] service. The bypass lets the attacker programmatically load administrative user objects and read sensitive material, including Bcrypt password hashes and the application security salt. The issue is categorized as an authorization weakness [CWE-863] and is fixed in Grav 2.0.0-beta.2.

Critical Impact

Authenticated low-privileged users can extract administrator password hashes and the security salt, enabling offline cracking and full takeover of the Grav installation.

Affected Products

  • Getgrav Grav versions prior to 2.0.0-beta.2
  • Grav 2.0.0-beta1
  • Deployments where editor-tier accounts have pages.update permission

Discovery Timeline

  • 2026-05-11 - CVE-2026-42610 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-42610

Vulnerability Analysis

Grav uses a Twig sandbox to constrain what page authors can render through templates. The sandbox blocks dangerous PHP callables and Twig internals such as call_user_func and twig_array_map. However, the sandbox did not prevent access to the dependency injection container entry grav['accounts'], which exposes the user account collection.

A Content Editor with pages.update permission can place Twig markup inside a page body. When the page renders, the editor's template can iterate the accounts service, locate the admin user, and read object properties such as the Bcrypt hashed password and the security.salt value used for token generation.

With both values in hand, the attacker can perform offline dictionary or rainbow-table attacks against the administrator hash and forge signed tokens that rely on the salt. This converts a limited content-editing privilege into full administrative compromise of the Grav site.

Root Cause

The root cause is incomplete authorization within the Twig rendering layer [CWE-863]. The sandbox enforced a denylist of function names but did not restrict service-container lookups. The grav['accounts'] accessor returned live user model objects whose properties were readable through standard Twig property access.

Attack Vector

Exploitation requires network access to the Grav admin interface and a valid low-privileged account. No user interaction beyond authoring or updating a page is required. The patch in commit c66dfeb5ff679a1667678c6335eb9ff3255dfc47 extends the dangerous callable denylist and tightens sandbox boundaries.

php
// Patch excerpt: system/src/Grav/Common/Security.php
private const CALLABLE_DANGEROUS_NAMES = [
    // Twig internals — every callback-taking helper. GHSA-vj3m-2g9h-vm4p (#5)
    // called out the missing `twig_array_reduce`; adding the other Twig 3
    // callback predicates (some/every) at the same time as defense-in-depth.
    'twig_array_map', 'twig_array_filter', 'twig_array_reduce',
    'twig_array_some', 'twig_array_every',
    'call_user_func', 'call_user_func_array',
    'forward_static_call', 'forward_static_call_array',
    // Twig environment manipulation
    'registerUndefinedFunctionCallback', 'registerUndefinedFilterCallback',
];
// Source: https://github.com/getgrav/grav/commit/c66dfeb5ff679a1667678c6335eb9ff3255dfc47

Detection Methods for CVE-2026-42610

Indicators of Compromise

  • Page content or saved Twig templates containing references to grav['accounts'], grav.accounts, or iteration over user collections
  • Unexpected edits to pages by accounts holding only pages.update permission
  • Rendered pages that output strings matching the Bcrypt prefix $2y$ or that disclose the security.salt value

Detection Strategies

  • Inspect the Grav user/pages/ directory for Markdown or Twig files that include {{ grav['accounts'] }} or similar service lookups
  • Review Grav admin audit logs for page updates by low-privileged editors immediately followed by page-view requests from the same source IP
  • Compare current page revisions against version control to flag inserted Twig expressions that reference container services

Monitoring Recommendations

  • Forward Grav admin and web access logs to a centralized log platform and alert on requests where rendered HTML contains Bcrypt hash patterns
  • Monitor for repeated GET requests to pages recently modified by non-administrator accounts
  • Track outbound authentication failures and token usage anomalies that could indicate cracked credentials being tested

How to Mitigate CVE-2026-42610

Immediate Actions Required

  • Upgrade Grav to version 2.0.0-beta.2 or later, which contains the fix in commit c66dfeb5ff679a1667678c6335eb9ff3255dfc47
  • Rotate the security.salt value and force a password reset for all administrator accounts after patching
  • Audit existing pages for Twig expressions referencing grav['accounts'] or other container services and remove them
  • Review the permissions assigned to editor-tier accounts and remove unnecessary pages.update rights

Patch Information

The vendor fix is published in the GitHub Security Advisory GHSA-3f29-pqwf-v4j4 and the corresponding GitHub commit c66dfeb. The patch hardens the Twig sandbox denylist and restricts access to sensitive service-container entries. Operators should deploy 2.0.0-beta.2 or any later release.

Workarounds

  • Restrict the pages.update permission to fully trusted administrators until the patch is applied
  • Disable Twig processing in page content by setting process: twig: false in the affected page frontmatter or site configuration
  • Place the Grav admin interface behind network access controls such as VPN or IP allowlisting to limit exposure
bash
# Configuration example: disable Twig processing on user pages in user/config/system.yaml
pages:
  process:
    markdown: true
    twig: false

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechGetgrav

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-863
  • Vendor Resources
  • GitHub Commit Overview

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-66301: Getgrav Grav Auth Bypass Vulnerability

  • CVE-2021-21425: Grav Admin Plugin Auth Bypass Vulnerability

  • CVE-2026-44738: Getgrav Grav Information Disclosure Flaw

  • CVE-2026-42609: Getgrav Grav Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English