Skip to content
DoS Advisory Intermediate CVE-2025-53476

OpenPLC OpenPLC_v3 ModbusTCP server denial of service vulnerability

The ModbusTCP server in OpenPLC_v3 does not release socket file descriptors when clients close connections without sending data, leaving them in CLOSE_WAIT. An attacker can exhaust the process's file descriptor limit by opening many such connections, then hold one final connection open to block the server from processing new Modbus requests.

A member Follow

Originally disclosed on Cisco Talos

Medium 5.3 View original

A denial of service vulnerability exists in the ModbusTCP server functionality of OpenPLC v3 a931181e8b81e36fadf7b74d5cba99b73c3f6d58. A specially crafted series of network connections can lead to the server not processing subsequent Modbus requests.

a member, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server sets the client socket to blocking mode and then calls read without handling the case where the client has already closed the connection, so the thread blocks forever and the file descriptor is never released.

Impact

An attacker could exhaust the server's file descriptors and prevent it from processing new Modbus requests, causing a denial of service.

What the attacker needed

Network access to the Modbus port (default 502)

How it was found

  1. Open many TCP connections to the Modbus port (default 502) and close them without sending any data.
  2. Observe that the server holds these connections in CLOSE_WAIT state, consuming file descriptors.
  3. Repeat until the process reaches its open file limit (e.g., 1024).
  4. Open one final connection and keep it open without sending a Modbus request.
  5. The server blocks waiting for data on that connection and cannot process new connections.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A file descriptor is a small number the operating system uses to track an open connection or file. The server opens one for each incoming Modbus connection but never closes it when the client disconnects early, so the supply runs out. Once exhausted, the server cannot accept new connections, effectively denying service to legitimate users.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by A member

View all

110 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.