CVE-2026-85604
Last modified
CVE-2026-85604 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. Grav before 2.0.18 (affected versions <= 2.0.17) contains a remote code execution vulnerability in the Twig sort filter. The sortFunc wrapper in GravExtension.php hardcodes Twig's isSandboxed argument to false, so unlike |map/|filter/|reduce, |sort accepts a plain function name inside the sandbox; the remaining denylist misses spl_autoload, which performs a PHP include.
Description
Grav before 2.0.18 (affected versions <= 2.0.17) contains a remote code execution vulnerability in the Twig sort filter. The sortFunc wrapper in GravExtension.php hardcodes Twig's isSandboxed argument to false, so unlike |map/|filter/|reduce, |sort accepts a plain function name inside the sandbox; the remaining denylist misses spl_autoload, which performs a PHP include. An authenticated user with only page-write rights (admin.pages or api.pages.write) can supply a crafted payload (e.g., via form frontmatter rendered by the Email plugin) that invokes spl_autoload through the sort filter, resulting in arbitrary PHP execution as the web server user.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| getgrav | grav | < 2.0.18 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-85604?
How severe is CVE-2026-85604?
How do I fix CVE-2026-85604?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-85599Grav Shortcode Core before 6.2.5 contains stored cross-site …7.2
- CVE-2026-8560Heap buffer overflow in SwiftShader in Google Chrome on Mac …4.3
- CVE-2026-85600Grav Admin (getgrav/grav-plugin-admin2) versions <= 2.0.19 c…5.4
- CVE-2026-85601Grav Admin before 2.0.20 fails to sanitize output from marke…5.4
- CVE-2026-85602The Grav Form plugin (getgrav/grav-plugin-form) versions 8.0…5.3
- CVE-2026-85603Grav versions before 1.10.55 contain a path traversal vulner…6.5
- CVE-2026-85605Slink before 1.12.3 fails to properly authorize access to im…5.3
- CVE-2026-85606firecrawl-mcp-server 3.20.2 contains an arbitrary local file…7.5
- CVE-2026-85607Blinko 1.8.7 contains an authorization bypass (IDOR) vulnera…8.8
- CVE-2026-85608Douyin_TikTok_Download_API through 4.1.2 contains a server-s…7.5
- CVE-2026-85609Openpanel before 2.3.0 contains an unauthenticated full-read…7.5
- CVE-2026-8561Incorrect security UI in Fullscreen in Google Chrome prior t…5.4
Are you affected by CVE-2026-85604?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
