Security mailing lists by PureSourceCode

CVE-2024-23644

HIGH 8.1CVSS 3.1

Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') in trillium-http and trillium-client

Trillium is a composable toolkit for building internet applications with async rust. In trillium-http prior to 0.3.12 and trillium-client prior to 0.5.4, insufficient validation of outbound header values may lead to request splitting or response splitting attacks in scenarios where attackers have sufficient control over headers. This only affects use cases where attackers have control of request headers, and can insert "\r\n" sequences. Specifically, if untrusted and unvalidated input is inserted into header names or values.

Outbound trillium_http::HeaderValue and trillium_http::HeaderName can be constructed infallibly and were not checked for illegal bytes when sending requests from the client or responses from the server. Thus, if an attacker has sufficient control over header values (or names) in a request or response that they could inject \r\n sequences, they could get the client and server out of sync, and then pivot to gain control over other parts of requests or responses. (i.e. exfiltrating data from other requests, SSRF, etc.)

In trillium-http versions 0.3.12 and later, if a header name is invalid in server response headers, the specific header and any associated values are omitted from network transmission. Additionally, if a header value is invalid in server response headers, the individual header value is omitted from network transmission. Other headers values with the same header name will still be sent. In trillium-client versions 0.5.4 and later, if any header name or header value is invalid in the client request headers, awaiting the client Conn returns an Error::MalformedHeader prior to any network access. As a workaround, Trillium services and client applications should sanitize or validate untrusted input that is included in header values and header names. Carriage return, newline, and null characters are not allowed.

Published
24 Jan 2024
Last modified
12 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-113CWE-436
Also known as
GHSA-9f9p-cp3c-72jfRUSTSEC-2024-0008RUSTSEC-2024-0009
Sources
NVDJSONOSV GHSA-9f9p-cp3c-72jfJSONOSV RUSTSEC-2024-0008JSONOSV RUSTSEC-2024-0009JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.8 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.8 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD trillium trillium
cpe:2.3:a:trillium:trillium:*:*:*:*:*:rust:*:*
< 0.5.4 0.5.4
NVD trillium trillium-http
cpe:2.3:a:trillium:trillium-http:*:*:*:*:*:rust:*:*
< 0.3.12 0.3.12
OSV crates.io trillium-http < 0.3.12 0.3.12
OSV crates.io trillium-client < 0.5.4 0.5.4
OSV crates.io trillium-client >= 0.0.0-0, < 0.5.4 0.5.4
OSV crates.io trillium-http >= 0.0.0-0, < 0.3.12 0.3.12

References

History

  • 25 Nov 2026 20:54 UTC · NVD: first stored (published 24 Jan 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Jan 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Jan 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Jan 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.