Skip to content

CVE-2023-0040 Async HTTP Client has CRLF Injection vulnerability in HTTP request headers

HighCVSS 7.5 EPSS 0.59%
Published
Updated
Exploit status
No public exploit known

Description

Versions of Async HTTP Client prior to 1.13.2 are vulnerable to a form of targeted request manipulation called CRLF injection. This vulnerability was the result of insufficient validation of HTTP header field values before sending them to the network. Users are vulnerable if they pass untrusted data into HTTP header field values without prior sanitisation. Common use-cases here might be to place usernames from a database into HTTP header fields. This vulnerability allows attackers to inject new HTTP header fields, or entirely new requests, into the data stream. This can cause requests to be understood very differently by the remote server than was intended. In general, this is unlikely to result in data disclosure, but it can result in a number of logical errors and other misbehaviours.

Affected products

ProductAffected versionsFixed in
swifturl github.com/swift-server/async-http-client(SwiftURL) >= 1.13.0, < 1.13.2 1.13.2
swifturl github.com/swift-server/async-http-client(SwiftURL) >= 1.10.0, < 1.12.1 1.12.1
swifturl github.com/swift-server/async-http-client(SwiftURL) >= 1.5.0, < 1.9.1 1.9.1
swifturl github.com/swift-server/async-http-client(SwiftURL) < 1.4.1 1.4.1
Swift Project Async HTTP Client <= 1.13.1 No fix listed
asynchttpclient project async-http-client < 1.4.1 1.4.1
asynchttpclient project async-http-client >= 1.5.0, < 1.9.1 1.9.1
asynchttpclient project async-http-client >= 1.10.0, < 1.12.1 1.12.1
asynchttpclient project async-http-client >= 1.13.0, < 1.13.2 1.13.2

References