Originally published on CyberNetSec.
Executive Summary
In a coordinated disclosure with Siemens, researchers from Palo Alto Networks Unit 42 have detailed a critical, three-stage exploit chain affecting Siemens RUGGEDCOM ROX II operational technology (OT) switches. The three chained zero-day vulnerabilities are tracked as CVE-2025-40948 (Arbitrary File Disclosure, CVSS 6.8), CVE-2025-40947 (Privilege Escalation, CVSS 7.5), and CVE-2025-40949 (Persistence via Scheduled Tasks, CVSS 9.1). When combined, these flaws allow an attacker to escalate privileges to root and establish persistent control over a compromised switch.
These devices are integral to network security and communication in industrial environments. A successful exploit could transform a trusted network device into a malicious platform, enabling attackers to pivot deeper into critical infrastructure networks, disrupt operations, or exfiltrate sensitive data. Siemens has issued security advisories and released firmware version V2.17.1 to remediate these vulnerabilities. All operators of affected ROX II devices are strongly advised to apply the update immediately.
Vulnerability Details
The attack unfolds in a three-step sequence, leveraging each vulnerability to progressively deepen the compromise. This chain demonstrates how seemingly moderate flaws can be combined to achieve a critical impact.
Stage 1: Information Disclosure (CVE-2025-40948)
- CVE ID: CVE-2025-40948
- CVSS 3.1 Score: 6.8 (Medium)
- Description: This arbitrary file disclosure vulnerability exists within a privileged daemon running on the ROX II operating system. Researchers found that they could abuse the legitimate
xzLinux utility, which is accessible to the daemon. By passing specific parameters (-f,-c,-d), an attacker can force thexzcommand to act like thecatcommand, printing the contents of arbitrary files on the system. This allows an attacker to read sensitive information, such as configuration files, password hashes, or network topology data, which is then used to plan the next stage of the attack.
Stage 2: Privilege Escalation (CVE-2025-40947)
- CVE ID: CVE-2025-40947
- CVSS 3.1 Score: 7.5 (High)
- Description: This is the core vulnerability in the chain. After gaining initial information, an attacker can exploit a flaw in the switch's feature key functionality. This mechanism is designed to unlock optional software capabilities on the device. Through reverse engineering, researchers discovered a logical flaw that could be manipulated to execute code with root privileges. This successfully bypasses all standard security measures and grants the attacker complete control over the switch's operating system.
Stage 3: Persistence (CVE-2025-40949)
- CVE ID: CVE-2025-40949
- CVSS 3.1 Score: 9.1 (Critical)
- Description: To ensure their access survives a system reboot, the attacker leverages this third vulnerability. An authenticated attacker with root privileges can exploit the switch's task scheduling functionality. This allows them to schedule malicious scripts or commands to run automatically at specified intervals with root permissions. This establishes a persistent foothold on the device, making the compromise difficult to detect and eradicate. The persistent access can be used for long-term data exfiltration, ongoing denial-of-service attacks, or to maintain a launchpad for further attacks within the OT network.
Affected Systems
The vulnerabilities affect the following products:
- Siemens RUGGEDCOM ROX II portfolio: All versions prior to
V2.17.1.
Siemens has released firmware version V2.17.1 to address these issues. Customers are directed to consult Siemens Security Advisories SSA-973901, SSA-078743, and SSA-081142 for detailed information.
Exploitation Status
These vulnerabilities were discovered by Unit 42 researchers and responsibly disclosed to Siemens through a collaborative partnership. At the time of disclosure, there is no evidence of these vulnerabilities being actively exploited in the wild. However, with the public release of technical details, the risk of exploitation by malicious actors increases significantly. The availability of a clear, three-step path to root access makes these vulnerabilities an attractive target for threat actors focusing on industrial environments.
Impact Assessment
A successful exploit of this vulnerability chain poses a severe threat to any organization relying on Siemens ROX II switches. As core components of an OT network, these switches manage traffic between critical assets like Human-Machine Interfaces (HMIs) and Programmable Logic Controllers (PLCs).
Compromising the switch itself has several critical impacts:
- Loss of Network Integrity: The switch can no longer be trusted to enforce network segmentation, potentially exposing sensitive control systems to unauthorized access.
- Platform for Attack Pivoting: An attacker can use the compromised switch as a persistent base of operations to launch further attacks against other devices within the OT network.
- Denial of Service (DoS): The attacker could disrupt, manipulate, or block traffic, potentially halting industrial processes and causing significant operational downtime and financial loss.
- Data Exfiltration: Sensitive operational data, network configurations, and intellectual property could be exfiltrated from the network.
Given their role in critical infrastructure sectors like manufacturing and energy, the compromise of these devices could lead to physical safety risks and widespread service disruption.
IOCs — Directly from Articles
No specific Indicators of Compromise (IOCs) such as IP addresses, domains, or file hashes were provided in the source article.
Cyber Observables — Hunting Hints
The following patterns could indicate related malicious activity or attempts to exploit these vulnerabilities:
| Type | Value | Description |
|---|---|---|
| Command Line Pattern | xz -f -c -d |
The xz utility being used with parameters that cause it to output file contents. This is highly anomalous. |
| Log Source | Shell command history, auditd logs | These logs may capture suspicious command executions on the device. |
| File Path | Modifications to cron jobs or task scheduler configurations | Unexpected changes could indicate persistence attempts (/etc/cron.d/, /etc/crontab). |
| Network Traffic | Anomalous outbound connections from the switch management interface | Connections to unknown external IPs could signify data exfiltration or C2 communication. |
Detection & Response
Security teams should focus on both endpoint and network-level detection strategies.
- Vulnerability Scanning: Use vulnerability management tools to scan for Siemens ROX II devices running firmware versions prior to
V2.17.1. -
Log Analysis: Ingest and monitor system logs from ROX II switches. Create detection rules to alert on the anomalous use of the
xzcommand as described in the T1212 - Exploitation for Information Disclosure technique. A sample detection logic could be:
title: Suspicious XZ Command for File Disclosure description: Detects the use of 'xz -f -c -d' which can be abused to read file contents, as seen in the Siemens ROX II vulnerability chain. logsource: product: linux service: auditd detection: selection: process.name: 'xz' process.command_line|contains_all: - '-f' - '-c' - '-d' condition: selection level: high File Integrity Monitoring (FIM): Deploy FIM on critical system files and directories, particularly those related to scheduled tasks, to detect unauthorized modifications indicative of T1543.003 - Create or Modify System Process: Systemd Timers.
Network Monitoring: Implement Network Traffic Analysis (D3-NTA) to baseline normal traffic patterns from the switch's management interface. Alert on any deviations, such as connections to unusual ports or external IP addresses.
Mitigation
Immediate and long-term mitigation actions are crucial to defend against this threat.
- Patch Immediately: The primary mitigation is to update all affected Siemens RUGGEDCOM ROX II devices to firmware version
V2.17.1or later. This is the most effective way to eliminate the vulnerabilities. This corresponds to M1051 - Update Software. - Restrict Network Access: As a compensating control, strictly limit network access to the device's management interface. Use firewalls or access control lists to ensure that only dedicated, trusted administrative workstations can communicate with the switch. This aligns with M1035 - Limit Access to Resource Over Network.
- Implement Network Segmentation: Employ robust Network Segmentation (D3-NI) to isolate the OT network from the IT network. This can help contain the impact of a compromised device and prevent lateral movement. This is a key principle of M1030 - Network Segmentation.
- Enforce Strong Credential Policies: While not a direct fix, ensuring strong, unique credentials for all network devices, including switches, makes initial access and lateral movement more difficult for attackers. This falls under M1026 - Privileged Account Management.
Top comments (0)