GitHub Advisoryadvisory · Maven

GHSA-9vjp-v76f-g363 SnappyFrameDecoder doesn't restrict chunk length any may buffer skippable chunks in an unnecessary way

HIGH Published 2021-09-09 Modified 2022-02-08 Official page ↗
Aliases
CVE-2021-37137
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.0.0, < 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 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

Related

Alias · CVE (1)

  • CVE-2021-37137 The Snappy frame decoder function doesn't restrict the chunk length which may lead to excessive memory usage. vulnerability

Weakness · CWE (1)

  • CWE-400 Uncontrolled Resource Consumption weakness

References