Remote Code Execution Vulnerability in Grav's Twig Sort Filter
Article Content
- •Grav versions <= 2.0.17 are vulnerable to remote code execution.
- •The vulnerability allows attackers with page-write rights to execute arbitrary PHP code.
- •CVE-2026-85604 was published on September 4, 2026.
Grav versions before 2.0.19, specifically 2.0.17 and earlier, are vulnerable to a remote code execution flaw in the Twig sort filter. The vulnerability arises from the sortFunc wrapper in GravExtension.php, which hardcodes the isSandboxed argument to false, allowing an attacker to invoke spl_autoload through the sort filter. An authenticated user with only page-write rights can exploit this by submitting a crafted payload via form frontmatter rendered by the Email plugin, leading to arbitrary PHP execution as the web server user. This vulnerability is documented as CVE-2026-85604 and was published on September 4, 2026. The attack vector is particularly concerning as it does not require elevated privileges beyond page-editing rights. The flaw has a broad impact, affecting numerous internal functions and allowing various dangerous operations. Current status indicates that the vulnerability is known and has been disclosed, but no active exploitation has been reported.
Ask AI about this cluster
Answers cite the sources they use
Timeline
More articles in this cluster (2)
Following this threat?
Track CVE-2026-85604 in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.
Free account · no card needed
Continue Reading
PHP2Shell Vulnerabilities Exploited by AI-Driven Attackers Threat actors have exploited PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619) to target a government entity in Europe, gaining access to sensitive data within two hours of the initial breach. The attackers utilized AI tools for reconnaissance and post-exploitation activities, including accessing…
Lazarus APT Launches Operation FlashHole Using AI and Post-Quantum Cryptography Kaspersky has identified a cyberespionage campaign, dubbed Operation FlashHole, attributed to the Lazarus APT group, active since July 2025. The campaign has targeted at least three organizations in South Korea's construction, software, and wire-communication sectors. Attack methods include spear-phishing emails…