Skip to main content
Vulnerability Database/CVE-2026-109315

CVE-2026-109315: Grav CMS Information Disclosure Vulnerability

CVE-2026-109315 is an information disclosure flaw in Grav CMS that exposes the Clockwork debugger token to page editors, allowing unauthorized access to profiler records. This post covers technical details, affected versions, impact, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109315 Overview

CVE-2026-109315 is an information disclosure vulnerability in Grav flat-file CMS versions 2.0.22 through 2.1.6. The flaw allows authenticated page editors to read the Clockwork debugger token because the Twig sandbox redaction list omits system.debugger.token. Attackers who can author Twig in page content can render the token and submit it via the X-Clockwork-Auth header to retrieve profiler records. Those records contain configuration data, request metadata, and executed database queries. The weakness is categorized under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.

Critical Impact

Authenticated editors can exfiltrate configuration, request metadata, and database query contents from the Clockwork profiler, exposing sensitive runtime data.

Affected Products

  • Grav CMS versions 2.0.22 through 2.1.6
  • Installations exposing the Clockwork debugger endpoint
  • Grav sites with editor-level accounts able to author Twig templates

Discovery Timeline

  • 2026-10-12 - CVE-2026-109315 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-109315

Vulnerability Analysis

Grav embeds the Clockwork profiler to assist developers with runtime diagnostics. Access to profiler records is gated by a token stored at system.debugger.token. Grav exposes a Twig sandbox for editors, with a redaction list intended to prevent sensitive configuration values from being read through templates.

The redaction list omits the system.debugger.token key. Any user with page-editor privileges can author Twig that resolves the configuration path and renders the token value in page output. Once the attacker obtains the token, they submit it in the X-Clockwork-Auth request header to fetch profiler data.

The profiler returns configuration dumps, HTTP request metadata, session contents, and the full text of executed database queries. This data can expose credentials, API keys, and internal application state, enabling follow-on attacks against the host or connected services.

Root Cause

The Twig sandbox redaction allowlist is incomplete. The maintainers did not include system.debugger.token among the keys stripped from sandboxed configuration access, so editor-authored Twig can read it as a normal configuration value.

Attack Vector

Exploitation requires authenticated editor privileges and network access to the Grav admin and the Clockwork endpoint. The attacker edits a page, inserts Twig that references the debugger token configuration path, saves and renders the page to retrieve the token, then issues an HTTP request to the Clockwork profiler endpoint with the X-Clockwork-Auth header set to that token. The server returns the profiler record, disclosing runtime data.

See the GitHub Security Advisory GHSA-5qv7-9gjc-4vfh and the VulnCheck advisory for technical details.

Detection Methods for CVE-2026-109315

Indicators of Compromise

  • HTTP requests to Clockwork profiler endpoints such as /__clockwork/* carrying an X-Clockwork-Auth header from unexpected client addresses.
  • Page revisions in Grav that contain Twig expressions referencing system.debugger.token or the config object in editor-authored content.
  • Access patterns in which an editor account retrieves and renders pages immediately before issuing requests to the Clockwork endpoint.

Detection Strategies

  • Audit Grav page storage and version history for Twig snippets that resolve configuration paths or output the debugger token.
  • Correlate web server logs for sequential activity: editor save or render actions followed by requests to /__clockwork/ paths carrying X-Clockwork-Auth.
  • Alert on any production host where the Clockwork debugger endpoint is reachable, as the component is not intended for production use.

Monitoring Recommendations

  • Enable verbose access logging on the Grav admin plugin and the Clockwork profiler endpoint, including headers and source IP.
  • Monitor for unexpected 200 responses to /__clockwork/* requests originating from non-developer networks.
  • Review editor account activity for anomalous page edits that introduce Twig code into content fields.

How to Mitigate CVE-2026-109315

Immediate Actions Required

  • Upgrade Grav to version 2.1.7 or later, which extends the Twig sandbox redaction list to include system.debugger.token.
  • Disable the Clockwork debugger in production by setting system.debugger.enabled to false until the upgrade is applied.
  • Rotate the current system.debugger.token value and any credentials or API keys that may have been exposed through profiler records.
  • Review editor accounts and remove unnecessary Twig-authoring privileges from low-trust users.

Patch Information

The maintainers fixed CVE-2026-109315 in Grav 2.1.7 by adding system.debugger.token to the Twig sandbox redaction list. Refer to the GitHub Security Advisory GHSA-5qv7-9gjc-4vfh for upgrade guidance and the full patch description.

Workarounds

  • Set system.debugger.enabled: false in system.yaml to disable the Clockwork profiler endpoint entirely.
  • Block external access to /__clockwork/* paths at the reverse proxy or web application firewall.
  • Restrict page-editing permissions so that only trusted administrators can author Twig expressions until the patch is deployed.
bash
# Configuration example: disable Clockwork debugger in system.yaml
debugger:
  enabled: false
  provider: clockwork
  censored: true

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.