REDHAT-BUG-2583440: High severity Erlang inets vulnerability
Allocation of Resources Without Limits or Throttling vulnerability in Erlang OTP inets (httpdscriptenv module) allows an unauthenticated remote attacker to exhaust the atom table of an httpd server that serves ESI scripts.
When modesi builds the environment for an ESI callback, httpdscriptenv:httpenvelement/3 checks that a request header name already exists as an atom, then creates the atom http<header-name> with listtoatom/1. Atoms are never garbage collected, and each new atom passes the existence check on a later request. So a header named node creates httpnode, a header named httpnode creates httphttpnode, and so on. A stream of requests to any ESI URL grows the atom table until it reaches its limit (+t), and then the whole Erlang VM aborts, together with every application on the node.
This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to inets from 5.10 before 9.3.2.9, 9.6.2.5, and 9.8.2. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to remote exploitation?
An httpd server is exposed if it serves ESI scripts through mod_esi. The attacker does not need authentication and can target any ESI URL.
What does an attacker need to send to trigger the failure?
The attacker can send a stream of requests with header names that cause new http_<header-name> atoms to be created. Repeating and nesting names such as node and http_node allows the atom table to grow until the Erlang VM reaches its configured atom limit and aborts.
What is the operational impact when exploitation succeeds?
The entire Erlang VM aborts when its atom table reaches the +t limit. This stops every application running on that Erlang node, not only the affected httpd service.
Which releases are known to be affected?
Known affected releases are OTP 17.0 through versions before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3. The corresponding affected inets ranges begin at 5.10 and end before 9.3.2.9, 9.6.2.5, and 9.8.2; the status of OTP before 17.0 and inets before 5.10 is unknown.