Unchecked Input for Loop Condition Affecting github.com/apple/swift-nio-extras package, versions <1.9.2>=1.10.0 <1.10.3>=1.11.0 <1.14.0


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.09% (40th 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 IDSNYK-SWIFT-APPLESWIFTNIOEXTRAS-3097826
  • published6 Nov 2022
  • disclosed2 Nov 2022
  • creditVojtech Rylko

Introduced: 2 Nov 2022

CVE-2022-3252  (opens in a new tab)
CWE-606  (opens in a new tab)

How to fix?

Upgrade apple/swift-nio-extras to version 1.9.2, 1.10.3, 1.14.0 or higher.

Overview

apple/swift-nio-extras is an useful code around SwiftNIO.

Affected versions of this package are vulnerable to Unchecked Input for Loop Condition. SwiftNIO Extras provides a pair of helpers for transparently decompressing received HTTP request or response bodies. These two objects (HTTPRequestDecompressor and HTTPResponseDecompressor) failed to detect when the decompressed body was considered complete. If trailing junk data was appended to the HTTP message body, the code would repeatedly attempt to decompress this data and fail. This would lead to an infinite loop making no forward progress, leading to livelock of the system and denial-of-service.

CVSS Scores

version 3.1