{"id":"EEF-CVE-2026-116295","summary":"CRLF injection in httpc request headers","details":"## Summary\n\nImproper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') vulnerability in Erlang OTP inets (`httpc` module) allows HTTP Request Splitting.\n\n`httpc` writes request header names and values to the wire without neutralizing CR, LF or NUL characters. On the default path `http_request:mk_key_value_str/2`, and with the `headers_as_is` option `httpc_request:http_headers/2`, build each header line by plain concatenation of the name, `\": \"`, the value and CRLF. A CR/LF in a name or value ends the header line early. An attacker who controls data that an application puts into a header passed to `httpc:request/4,5` can add or override request headers, or append a second request on the same connection.\n\nApplications that pass only constant or validated header names and values are not affected. The request line is not affected, because `uri_string` rejects URLs that contain raw CR/LF.\n\nThis 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.\n\n## Proof of concept\n\n1. Start a TCP listener that prints the bytes it receives, for example on `localhost:4444`.\n2. Call `httpc:request(get, {\"http://localhost:4444\", [{\"a: b\\r\\nc\", \"d\\r\\ne: f\"}]}, [], [])`.\n3. The listener receives three header lines (`a: b`, `c: d`, `e: f`) instead of one.\n4. Repeat with `[{headers_as_is, true}]` as the fourth argument and an explicit `host` header. The same three lines arrive.\n\n## Impact\n\nAn attacker who controls data in a request header can add or override headers such as `Authorization`, `Cookie`, `Host` or `X-Forwarded-For`, which may affect authentication, routing or caching decisions on the target server or on intermediaries. With an empty line, the attacker can send a second, attacker-chosen request to the target server over the connection that the application opened.\n\n## Workarounds\n\nValidate request header names and values before you pass them to `httpc:request/4,5`. Reject or replace any name or value that contains CR (`\\r`), LF (`\\n`) or NUL (`\\0`), and accept only header names made of RFC 9110 `token` characters. Where the application forwards headers from another source, use a fixed allowlist of header names.","aliases":["CVE-2026-116295","GHSA-84cc-vh37-jqpf"],"modified":"2026-11-24T15:17:36.861543794Z","published":"2026-11-24T15:05:06.420Z","database_specific":{"cpe_ids":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-113"],"capec_ids":["CAPEC-105"]},"references":[{"type":"ADVISORY","url":"https://github.com/erlang/otp/security/advisories/GHSA-84cc-vh37-jqpf"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-116295.html"},{"type":"WEB","url":"https://www.erlang.org/doc/system/versions.html#order-of-versions"},{"type":"FIX","url":"https://github.com/erlang/otp/commit/a3197fab19232e370d940cb187fa3201b2c9bd48"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/erlang/otp","events":[{"introduced":"84adefa331c4159d432d22840663c38f155cd4c1"},{"fixed":"a3197fab19232e370d940cb187fa3201b2c9bd48"}]}],"versions":["patch-base-27","OTP-27.3.4","OTP-27.0","OTP-27.3","OTP-27.3.3","OTP-26.0","OTP-25.0","OTP-27.3.2","OTP-27.2","OTP-27.3.1","OTP-27.1","OTP-27.0-rc3","OTP-27.0-rc2","OTP-27.0-rc1","OTP-24.0","OTP-26.0-rc3","OTP-26.0-rc2","OTP-26.0-rc1","OTP-23.0","OTP-21.0","OTP-25.0-rc3","OTP-25.0-rc2","OTP-25.0-rc1","OTP-22.0","OTP-24.0-rc3","OTP-24.0-rc2","OTP-24.0-rc1","OTP-23.0-rc3","OTP-23.0-rc2","OTP-23.0-rc1","OTP-20.0","OTP-22.0-rc3","OTP-22.0-rc2","OTP-22.0-rc1","OTP-19.0","OTP-21.0-rc2","OTP-18.0","OTP-21.0-rc1","OTP-17.0","OTP-20.0-rc2","OTP-20.0-rc1","OTP-19.0-rc2","OTP-19.0-rc1","OTP_R16B","OTP-18.0-rc1","OTP_17.0-rc2","OTP_17.0-rc1","OTP_R13B03","OTP_R16A_RELEASE_CANDIDATE","OTP_R14B03","OTP_R15B","OTP_R15A","OTP_R14B02","OTP_R14B01","OTP_R14B","OTP_R13B04","OTP_R14A"],"database_specific":{"source":"https://cna.erlef.org/osv/EEF-CVE-2026-116295.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","source":"CNA"}],"credits":[{"name":"Lukas Backström","type":"FINDER"},{"name":"ts-klassen","type":"FINDER"},{"name":"ts-klassen","type":"REPORTER"},{"name":"Jonatan Männchen / EEF","type":"COORDINATOR"}]}