CVE-2026-124293: Net::Server::Thread versions through 2.018 for Perl start a handler thread for every connection regardless of max_servers and exit when thread creation fails
Net::Server::Thread versions through 2.018 for Perl start a handler thread for every connection regardless of maxservers and exit when thread creation fails.
The accept loop waits while threads->list() exceeds maxservers, but each handler thread is detached as soon as it is created, and threads->list() does not count detached threads. The count stays near zero, so the limit never applies. When thread creation fails, the loop calls detach on an undefined value and dies.
A remote client that holds connections open makes the server clone a Perl interpreter for each one until memory or thread limits are reached, and the server process then exits.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Servers using Net::Server::Thread through version 2.018 are exposed if remote clients can establish connections to the service. An attacker can hold connections open to cause a new handler thread, including a cloned Perl interpreter, to be created for each connection.
Does setting max_servers limit the impact?
No. Handler threads are detached immediately, and detached threads are not counted by threads->list(), so the accept loop sees a count near zero and does not enforce max_servers.
What happens when system thread or memory capacity is exhausted?
Thread creation eventually fails. The server then attempts to detach an undefined value and exits, causing a denial of service.
What can be done if patching is not immediately possible?
Restrict or rate-limit incoming connections and enforce connection limits outside the affected process. This reduces an attacker's ability to hold enough simultaneous connections open to exhaust thread or memory resources.