Skip to main content

CODESYS Modbus CVE-2026-35227

| EUVDEUVD-2026-29390 HIGH
Missing Release of Resource after Effective Lifetime (CWE-772)
2026-05-12 CERTVDE GHSA-qc33-pwh4-j9rq
8.2
CVSS 4.0 · Vendor: CERTVDE
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain network access to OT segment
  2. Delivery
    Identify CODESYS Modbus TCP Server on port 502
  3. Exploit
    Send timed burst of TCP connection requests
  4. Execution
    Trigger race condition in connection handler
  5. Persist
    Exhaust TCP connection pool
  6. Impact
    Deny service to legitimate clients

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup on lifecycle end
Exploitation Conditions

Requires network access to CODESYS Modbus TCP Server on port 502/TCP. No authentication required (PR:N) - the Modbus TCP protocol itself typically lacks authentication mechanisms. Attack Complexity Present (AT:P) indicates the attacker must successfully time connection requests to exploit the specific race condition window in the connection handler, which requires some trial-and-error or protocol timing knowledge. Not as simple as a volumetric SYN flood; the race must be triggered to prevent resource release. No user interaction required (UI:N). Exploitation is limited to environments where the Modbus TCP server is reachable from the attacker's network position - mitigated by proper OT network segmentation and firewall rules restricting access to authorized industrial control clients only.

Impact

Real-world risk is MODERATE-HIGH for operational technology environments. CVSS 8.2 correctly reflects high availability impact (VA:H) with network attack vector (AV:N) and no authentication required (PR:N). However, Attack Complexity Present (AT:P) indicates successful exploitation requires precise timing to trigger the race condition - not as trivial as a simple flood attack. No EPSS score provided, but absence from CISA KEV suggests no widespread exploitation observed. The 'Information Disclosure' tag in input metadata appears inconsistent with the pure availability impact described (CVSS shows VC:N/VI:N) - likely a metadata error; this is a denial-of-service issue, not data exfiltration. Critical consideration: in ICS/SCADA contexts, availability disruptions can have safety implications (loss of process visibility/control). Attack is automatable once the race window is identified, making this a viable target for ICS-focused threat actors. Priority is HIGH for environments where CODESYS Modbus TCP Server is exposed to untrusted networks or where operational continuity is safety-critical. Lower priority if Modbus TCP is properly segmented behind OT firewalls with strict access controls.

Exploit ScenarioDerived

An attacker on the plant network or via compromised IT/OT boundary sends a rapid burst of TCP SYN packets to the CODESYS Modbus server (port 502), carefully timed to trigger the race condition in connection state management. Successfully exploiting the race window causes connection objects to remain allocated without proper cleanup, exhausting the limited TCP connection pool (typically 5-10 connections). Legitimate HMI operators and SCADA polling systems receive TCP connection refused errors, losing visibility and control over the industrial process until the device is manually restarted or the attack ceases.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 12, 2026

TCP connection exhaustion in CODESYS Modbus TCP Server allows remote unauthenticated attackers to trigger a race condition in connection handling, depleting all available TCP connections and denying service to legitimate industrial automation clients. CVSS 8.2 (High) reflects high availability impact. No active exploitation confirmed (not in CISA KEV), but attack complexity is low with present race condition opportunity (AT:P). Patch available from vendor for versions prior to 4.6.0.0.

RemediationAI

Upgrade CODESYS Modbus to version 4.6.0.0 or later, which addresses the race condition in TCP connection handling. Consult device manufacturer for firmware update procedures, as CODESYS Modbus is typically embedded in third-party industrial hardware. If immediate patching is not feasible, implement network-level compensating controls: (1) Deploy Modbus TCP gateway or proxy with connection rate limiting (e.g., max 2 new connections/second per source IP) to prevent rapid connection attempts needed to exploit the race window - trade-off: may slow legitimate client reconnections during network events; (2) Configure stateful firewall rules restricting Modbus TCP (port 502) access to explicitly authorized HMI/SCADA IP addresses only - eliminates remote unauthenticated attack surface but requires maintaining accurate IP allowlists; (3) Enable connection monitoring/alerting for abnormal Modbus TCP connection patterns (connection attempts exceeding normal baseline) to detect exploitation attempts. Workarounds reduce but do not eliminate risk; patching remains the definitive fix. Advisory: https://certvde.com/de/advisories/VDE-2026-042.

Affected VersionsENISA

CODESYS Modbus 1.0.0.0 <4.6.0.0

Affected Packages

euvd codesys_modbus fix: 4.6.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CODESYS Modbus TCP Server implements the Modbus TCP protocol (TCP/502), a widely-used industrial automation protocol for SCADA and PLC communication. The vulnerability stems from CWE-772 (Missing Release of Resource after Effective Lifetime) - a classic resource exhaustion flaw where connection objects are not properly released after use. A race condition in the TCP connection handler allows an attacker to trigger simultaneous connection attempts that bypass normal resource cleanup, causing file descriptor or socket pool exhaustion. This affects the CODESYS Modbus stack (CPE: cpe:2.3:a:codesys:codesys_modbus), a commercial Modbus server library integrated into industrial control systems. Modbus TCP typically maintains a limited connection pool (often 5-10 concurrent connections); exhausting this pool renders the device unresponsive to legitimate HMI clients, engineering workstations, or supervisory systems.

Know when Codesys gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CERTVDE) PRIMARY 8.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (CERTVDE) · only source for this CVE.

CVSS VectorVendor: CERTVDE

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Patch available
May 12, 2026 - 09:01 EUVD
CVSS changed
May 12, 2026 - 08:22 NVD
8.2 (HIGH)
CVE Published
May 12, 2026 - 07:14 nvd
UNKNOWN (no severity yet)
CVE Published
May 12, 2026 - 07:14 nvd
HIGH 8.2

DescriptionCVE.org

An unauthenticated remote attacker may exhaust all available TCP connections in the CODESYS Modbus TCP Server stack if a race condition in connection handling is successfully exploited, preventing legitimate clients from establishing new connections.

Executive ViewAI

Why It Matters

CODESYS Modbus TCP Server versions prior to 4.6.0.0 are vulnerable to remote TCP connection exhaustion attacks that can completely disable industrial automation systems without requiring authentication. An unauthenticated attacker can trigger a race condition to consume all available connections, halting communication between control systems and their devices-a direct threat to production availability in manufacturing and critical infrastructure environments.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations if patching cannot be immediately deployed: (1) Restrict network access to Modbus TCP ports (default 502) using firewalls or network segmentation to only authorized industrial control network segments; (2) Implement connection-rate limiting and TCP timeout tuning at the network edge; (3) Monitor TCP connection state on affected systems for anomalous connection patterns indicative of exploitation attempts; (4) Consider temporary operational bypass using alternative communication protocols if available within automation architecture.

Threat Intelligence Overview

EPSS Score
0.1%
Top 72% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2020-10245 CRITICAL POC
9.8 Mar 26

CODESYS V3 web server before 3.5.15.40, as used in CODESYS Control runtime systems, has a buffer overflow. Rated critica

CVE-2019-18858 CRITICAL POC
9.8 Nov 20

CODESYS 3 web server before 3.5.15.20, as distributed with CODESYS Control runtime systems, has a Buffer Overflow. Rated

CVE-2021-34584 CRITICAL POC
9.1 Oct 26

Crafted web server requests can be utilised to read partial stack or heap memory or may trigger a denial-of- service con

CVE-2020-6081 HIGH POC
8.8 May 07

An exploitable code execution vulnerability exists in the PLC_Task functionality of 3S-Smart Software Solutions GmbH COD

CVE-2021-21869 HIGH POC
7.8 Aug 25

An unsafe deserialization vulnerability exists in the Engine.plugin ProfileInformation ProfileData functionality of CODE

CVE-2021-21868 HIGH POC
7.8 Aug 18

An unsafe deserialization vulnerability exists in the ObjectManager.plugin Project.get_MissingTypes() functionality of C

CVE-2021-21867 HIGH POC
7.8 Aug 18

An unsafe deserialization vulnerability exists in the ObjectManager.plugin ObjectStream.ProfileByteArray functionality o

CVE-2021-21866 HIGH POC
7.8 Aug 02

A unsafe deserialization vulnerability exists in the ObjectManager.plugin ProfileInformation.ProfileData functionality o

CVE-2021-21864 HIGH POC
7.8 Aug 02

A unsafe deserialization vulnerability exists in the ComponentModel ComponentManager.StartupCultureSettings functionalit

CVE-2021-29240 HIGH POC
7.8 May 04

The Package Manager of CODESYS Development System 3 before 3.5.17.0 does not check the validity of packages before insta

CVE-2021-34593 HIGH POC
7.5 Oct 26

In CODESYS V2 Runtime Toolkit 32 Bit full and PLCWinNT prior to versions V2.4.7.56 unauthenticated crafted invalid reque

CVE-2021-34586 HIGH POC
7.5 Oct 26

In the CODESYS V2 web server prior to V1.1.9.22 crafted web server requests may cause a Null pointer dereference in the

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy