Skip to content

Request/response decompression checks the size of compressed instead of decompressed bytes

High
weissi published GHSA-xhhr-p2r9-jmm7 May 2, 2020

Package

swift-nio-extras (SwiftPM)

Affected versions

1.3.0 ... 1.4.0

Patched versions

1.4.1

Description

Impact

When using the .size decompression limit, request & response decompression checks the size of compressed instead of decompressed bytes which allows to remotely cause a denial-of-service in a client/server.

Patches

Released on swift-nio-extras version 1.4.1.

Workarounds

Use the .ratio decompression limit.

Thanks

Many thanks to @adtrevor for the bug report & fix.

Severity

High

CVE ID

CVE-2020-9840

Weaknesses

No CWEs

Credits