CVE-2026-116382: Attacker-controlled ESI headers cause persistent atom-table growth in `inets`
Summary
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.
Proof of concept
1. Start httpd with {erlscriptalias, {"/esi", [Mod]}}, where Mod exports any ESI callback fun/3. 2. Send GET /esi/Mod:fun with a request header named node. The node now holds the atom httpnode. 3. Send the same request with a header named httpnode. The node now holds httphttpnode. 4. Repeat with each new name. Each request adds an atom that persists, until the atom table limit aborts the VM.
Impact
An unauthenticated remote client can permanently grow the atom table of the node with ordinary HTTP requests. When the table reaches its limit, the Erlang VM aborts and takes down every application on the node, not only httpd.
Workarounds
If you do not need ESI, remove erlscriptalias from the httpd configuration. Restrict the ESI URL prefixes to trusted clients, for example with modauth directory protection. Authenticated clients can still trigger the issue. Put httpd behind a reverse proxy that forwards only an allowlist of standard request headers to the ESI URL prefixes. For nginx, set proxypassrequestheaders off and add one proxysetheader for each allowed header.
Configurations
Only httpd servers with at least one erlscriptalias configured are affected, and only for clients that can reach an ESI URL prefix. Where modauth or modsecurity directory protection sits in front of modesi, only authenticated clients can trigger the issue. CGI scripts served by modcgi and the httpc client are not affected.
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Erlang/OTPto a version that resolves this vulnerability.Fixed in 27.3.4.20 - Upgrade
Upgrade
Erlang/OTPto a version that resolves this vulnerability.Fixed in 28.5.0.9 - Upgrade
Upgrade
Erlang/OTPto a version that resolves this vulnerability.Fixed in 29.1.3 - Configuration
If ESI is not needed, remove erl_script_alias from the httpd configuration.
Erlang OTP inets httpd erl_script_alias = removed - Compensating control
Place httpd behind a reverse proxy that forwards only an allowlist of standard request headers to ESI URL prefixes. For nginx, set proxy_pass_request_headers off and add one proxy_set_header for each allowed header.
- Compensating control
Restrict ESI URL prefixes to trusted clients, for example by using mod_auth directory protection.
Event History
Frequently Asked Questions
Which deployments are exposed to remote exploitation?
An httpd server is exposed when it serves ESI scripts, because requests to any ESI URL can trigger the vulnerable environment-building path. The attacker does not need authentication.
What does an attacker need to do to cause an outage?
The attacker sends requests with distinct header names to an ESI URL. Each new name can cause a persistent atom to be created, eventually reaching the VM atom-table limit (+t) and aborting the entire Erlang VM.
What is the impact beyond the HTTP server?
When the atom-table limit is reached, the whole Erlang VM aborts. Every application running on that node is therefore affected, not only the httpd service.
Which releases are fixed?
Fixed releases are OTP 27.3.4.20, 28.5.0.9, and 29.1.3, corresponding to inets 9.3.2.9, 9.6.2.5, and 9.8.2. Affected versions include OTP 17.0 through versions before those fixes; the status of OTP releases before 17.0 is unknown.