VDB
Sign up
HIGH7.5

GHSA-9vjp-v76f-g363

SnappyFrameDecoder doesn't restrict chunk length any may buffer skippable chunks in an unnecessary way

Quick fix

GHSA-9vjp-v76f-g363 — io.netty:netty-codec: upgrade to the fixed version with the command below.

# pom.xml: bump <version>4.1.68.Final</version> for io.netty:netty-codec

Details

### Impact The Snappy frame decoder function doesn't restrict the chunk length which may lead to excessive memory usage. Beside this it also may buffer reserved skippable chunks until the whole chunk was received which may lead to excessive memory usage as well.

This vulnerability can be triggered by supplying malicious input that decompresses to a very big size (via a network stream or a file) or by sending a huge skippable chunk.

### Impact

All users of SnappyFrameDecoder are affected and so the application may be in risk for a DoS attach due excessive memory usage.

### References https://github.com/netty/netty/blob/netty-4.1.67.Final/codec/src/main/java/io/netty/handler/codec/compression/SnappyFrameDecoder.java#L79 https://github.com/netty/netty/blob/netty-4.1.67.Final/codec/src/main/java/io/netty/handler/codec/compression/SnappyFrameDecoder.java#L171 https://github.com/netty/netty/blob/netty-4.1.67.Final/codec/src/main/java/io/netty/handler/codec/compression/SnappyFrameDecoder.java#L185

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/io.netty:netty-codec
Introduced in: 4.0.0Fixed in: 4.1.68.Final
Fix# pom.xml: bump <version>4.1.68.Final</version> for io.netty:netty-codec
Maven/org.jboss.netty:netty
Introduced in: 0

No fixed version published yet for org.jboss.netty:netty (maven). Pin to a known-safe version or switch to an alternative.

Maven/io.netty:netty
Introduced in: 0

No fixed version published yet for io.netty:netty (maven). Pin to a known-safe version or switch to an alternative.

References