GHSA-grg4-wf29-r9vv

Bzip2Decoder doesn't allow setting size restrictions for decompressed data

At a glance

Published
Updated
CVE
CVE-2021-37136
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Description

### 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

Affected packages

PackageVersions
Maven · io.netty:netty-codecintroduced 0, fixed 4.1.68.Final
Maven · org.jboss.netty:nettyintroduced 0
Maven · io.netty:nettyintroduced 0

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database