GitHub Advisoryadvisory · Maven

GHSA-grg4-wf29-r9vv Bzip2Decoder doesn't allow setting size restrictions for decompressed data

HIGH Published 2021-09-09 Modified 2022-02-08 Official page ↗
Aliases
CVE-2021-37136
Ecosystem
Maven
Packages
io.netty:netty-codec, org.jboss.netty:netty, io.netty:netty
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-400
Reviewed
2021-09-09

Affected packages

• Maven io.netty:netty-codec: < 4.1.68.Final → fixed in 4.1.68.Final • Maven org.jboss.netty:netty: < 4.0.0 (no fix yet) • Maven io.netty:netty: < 4.0.0 (no fix yet)

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

Related

Alias · CVE (1)

  • CVE-2021-37136 The Bzip2 decompression decoder function doesn't allow setting size restrictions on the decompressed output data (which affects the… vulnerability

Weakness · CWE (1)

  • CWE-400 Uncontrolled Resource Consumption weakness

References