CRLF Injection Affecting github.com/swift-server/async-http-client package, versions <1.4.1>=1.5.0 <1.9.1>=1.10.0 <1.12.1>=1.13.0 <1.13.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about CRLF Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-SWIFT-SWIFTSERVERASYNCHTTPCLIENT-3237994
  • published19 Jan 2023
  • disclosed19 Jan 2023
  • creditAlessio Della Libera

Introduced: 19 Jan 2023

CVE-2023-0040  (opens in a new tab)
CWE-93  (opens in a new tab)

How to fix?

Upgrade swift-server/async-http-client to version 1.4.1, 1.9.1, 1.12.1, 1.13.2 or higher.

Overview

swift-server/async-http-client is a HTTP Client library built on top of SwiftNIO

Affected versions of this package are vulnerable to CRLF Injection due to 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 sanitization. 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.

CVSS Scores

version 3.1