Erlang OTP
Request smuggling via first-wins Content-Length parsing in inets httpd
Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling') vulnerability in Erlang OTP (inets httpd module) allows HTTP Request Smuggling. This vulnerability is associated with program files lib/inets/src/http_server/httpd_request.erl and program routines httpd_request:parse_headers/7. The server does not reject or normalize duplicate Content-Length headers. The earliest Content-Length in the request is used for body parsing while common reverse proxies (nginx, Apache httpd, Envoy) honor the last Content-Length value. This violates RFC 9112 Section 6.3 and allows front-end/back-end desynchronization, leaving attacker-controlled bytes queued as the start of the next request. This issue affects OTP from OTP 17.0 before OTP 26.2.5.18, OTP 27.3.4.9, and OTP 28.4.1, corresponding to inets from 5.10 before 9.1.0.5, 9.3.2.3, and 9.6.1. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.10, < *
Fixed in *, 9.1.0.5, 9.3.2.3, 9.6.1
- >= 17.0, < *
Fixed in *, 26.2.5.18, 27.3.4.9, 28.4.1
- >= 84adefa331c4159d432d22840663c38f155cd4c1, < *
Fixed in *, a4b46336fd25aa100ac602eb9a627aaead7eda18, a761d391d8d08316cbd7d4a86733ba932b73c45b, e775a332f623851385ab6ddb866d9b150612ddf6
Mitigation
Upgrade OTP to * or 9.1.0.5 or 9.3.2.3 or 9.6.1 or later.
Upgrade OTP to * or 26.2.5.18 or 27.3.4.9 or 28.4.1 or later.
Upgrade OTP to * or a4b46336fd25aa100ac602eb9a627aaead7eda18 or a761d391d8d08316cbd7d4a86733ba932b73c45b or e775a332f623851385ab6ddb866d9b150612ddf6 or later.
Workaround
* Configure frontend proxy to reject requests with duplicate Content-Length headers. * Disable HTTP keep-alive on httpd by adding {keep_alive, false} to httpd configuration. Note: This impacts performance for clients making multiple requests. * Deploy a Web Application Firewall (WAF) configured to reject requests with multiple Content-Length headers.
References
- Vendor advisory github.com/erlang/otp/security/advisories/GHSA…
- Patch github.com/erlang/otp/commit/a4b46336fd25aa100…
- Patch github.com/erlang/otp/commit/a761d391d8d08316c…
1 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.