AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

AppleGHSA-xhhr-p2r9-jmm7

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

Apple

CVE-2020-9840 · Published May 2, 2020

High
Fix: upgrade to 1.4.1 or later
GitHub advisory

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.

Affected versions

PackageAffectedFixed in
swift-nio-extras
Product
< 1.4.11.4.1
Details and references

More Apple advisories

All Apple