VDB
Sign up
HIGH7.5

GHSA-grg4-wf29-r9vv

Bzip2Decoder doesn't allow setting size restrictions for decompressed data

Quick fix

GHSA-grg4-wf29-r9vv — 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 Bzip2 decompression decoder function doesn't allow setting size restrictions on the decompressed output data (which affects the allocation size used during decompression).

All users of Bzip2Decoder are affected. The malicious input can trigger an OOME and so a DoS attack

### Workarounds No workarounds other than not using the `Bzip2Decoder`

### References

Relevant code areas:

https://github.com/netty/netty/blob/netty-4.1.67.Final/codec/src/main/java/io/netty/handler/codec/compression/Bzip2Decoder.java#L80 https://github.com/netty/netty/blob/netty-4.1.67.Final/codec/src/main/java/io/netty/handler/codec/compression/Bzip2Decoder.java#L294 https://github.com/netty/netty/blob/netty-4.1.67.Final/codec/src/main/java/io/netty/handler/codec/compression/Bzip2Decoder.java#L305

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/io.netty:netty-codec
Introduced in: 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