High

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

  • Disclosed: 09.09.2021
  • Updated: 11.10.2026 12:22

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

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) io.netty:netty all versions no fix
Java / Kotlin (Maven) io.netty:netty-codec >= 4.0.0, < 4.1.68.Final 4.1.68.Final
Java / Kotlin (Maven) org.jboss.netty:netty all versions no fix

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-400
Platform
Java / Kotlin (Maven)
Package
io.netty:netty, io.netty:netty-codec, org.jboss.netty:netty
Disclosed
09.09.2021
Updated
11.10.2026 12:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-9vjp-v76f-g363 - CC BY 4.0

Vulnerability history: io.netty:netty

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (11) in the archive
Total entries
11
First → latest
10.2019 05.2022
Without a fix
9
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 4
  • Medium 6

Disclosures per year

  1. 2019: 1
  2. 2020: 3
  3. 2021: 6
  4. 2022: 1
  5. 2023: 0
  6. 2024: 0
  7. 2025: 0
  8. 2026: 0
Severity:
  1. SnappyFrameDecoder doesn't restrict chunk length any may buffer skippable chunks in an unnecessary way this entry
    High · 7.5 CVE-2021-37137 all versions no fix
  2. High · 7.5 CVE-2015-2156 >= 3.10.0, < 3.10.3.Final, < 3.9.8.Final 3.10.3.Final, 3.9.8.Final
  3. Critical · 9.1 CVE-2019-20444 all versions no fix
  4. High · 7.5 CVE-2019-16869 >= 3.3.0.Final, <= 4.0.0.Alpha8 no fix

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.