Cyber Security News

Attackers Can Backdoor CODESYS Applications by Chaining Vulnerabilities

Multiple vulnerabilities in the CODESYS Control runtime, one of the world’s most widely adopted software-based programmable logic controller (Soft PLC) platforms.

According to Nozomi Networks Labs researchers, by chaining these security flaws, an authenticated attacker can replace a legitimate industrial control application with a backdoored version, thereby escalating their privileges to full administrative control of the targeted device.

CODESYS is utilized across diverse industrial sectors, from water treatment facilities and energy grids to automated manufacturing lines.

Because these PLCs directly govern physical processes, an exploited vulnerability can result in halted production, equipment damage, or hazardous operating conditions.

The CODESYS Control runtime manages real-time input/output processing and network communications for automated systems.

CODESYS Control for Raspberry Pi (Source: nozominetworks)

The newly discovered vulnerabilities impact how the runtime handles file permissions and backup restorations.

CVE-2025-41658 (5.5, Medium): Incorrect default permissions allow local users to read CODESYS password hashes.

CVE-2025-41659 (8.3, High): Improper permissions allow low-privilege users to access sensitive cryptographic data.

CVE-2025-41660 (8.8, High): Flawed resource transfer allows restoration of a tampered boot application.

The Attack Chain Workflow

CODESYS Attack Scenario (Source: nozominetworks)

To execute this attack, a threat actor first needs valid Service-level credentials.

Standard security controls usually prevent this, but attackers can steal credentials via default passwords, a compromised engineering workstation, or by exploiting CVE-2025-41658 to extract hashes.

Once authenticated, the attack unfolds in several stages:

  • Download the Application: The attacker uses the platform’s backup functionality to download the active boot application from the PLC.
  • Steal Cryptographic Keys: By exploiting CVE-2025-41659, the attacker extracts the necessary cryptographic material to bypass optional code encryption and signing protections.
  • Tamper and Restore: The attacker injects malicious machine code into the binary, re-signs it if necessary, and exploits CVE-2025-41660 to upload the backdoored application back to the device.
  • Achieve Root Execution: The attacker waits for an operator to restart the application or reboot the system. Upon restart, the injected backdoor runs with root privileges.
  • Escalate Privileges: With root access, the attacker modifies the local user database to grant themselves full Administrator rights.

A compromised Soft PLC allows adversaries to alter actuator behavior, change safety setpoints, and override critical system interlocks.

Detection of a vulnerable device in Nozomi Vantage (Source: nozominetworks)

This attack aligns with several MITRE ATT&CK for ICS techniques, including Manipulation of Control (T0831), Module Firmware modification (T0839), and Theft of Operational Information (T0882).

CODESYS Group has fully resolved these issues in CODESYS Control Runtime version 4.21.0.0 and Toolkit version 3.5.22.0.

According to Nozomi Networks, to prevent further tampering, CODESYS has made code signing mandatory by default for all PLC code before it can be deployed or executed.

Administrators should apply these updates immediately, enforce strict network segmentation, and continuously monitor industrial network traffic for suspicious activity.

Follow us on Google News, LinkedIn, and X for daily cybersecurity updates. Contact us to feature your stories.

Abinaya

Abi is a Security Editor and fellow reporter with Cyber Security News. She is covering various cyber security incidents happening in the Cyber Space.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

5 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

5 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

6 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

6 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

6 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

8 hours ago