6.2

CVE-2021-21290: Local Information Disclosure Vulnerability in Netty on Unix-Like systems due temporary files

Modified
AliasesMGASA-2021-0136RHSA-2022:0190UBUNTU-CVE-2021-21290
Published 08-02-2021Last modified 08-10-2026

Vulnerability summary

CVE-2021-21290 is a medium (CVSS 6.2) vulnerability in debian debian_linux. EPSS estimates a 1.80% chance of exploitation in the next 30 days, higher than 78.5% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6.2, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.2/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.80%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 12 · Related 10

Timeline

  1. 08-02-2021
    PublishedVulnerability first disclosed.
  2. 08-10-2026
    Last modifiedVulnerability information updated.

Description

Netty is an open-source, asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. In Netty before version 4.1.59.Final there is a vulnerability on Unix-like systems involving an insecure temp file. When netty's multipart decoders are used local information disclosure can occur via the local system temporary directory if temporary storing uploads on the disk is enabled. On unix-like systems, the temporary directory is shared between all user. As such, writing to this directory using APIs that do not explicitly set the file/directory permissions can lead to information disclosure. Of note, this does not impact modern MacOS Operating Systems. The method "File.createTempFile" on unix-like systems creates a random file, but, by default will create this file with the permissions "-rw-r--r--". Thus, if sensitive information is written to this file, other local users can read this information. This is the case in netty's "AbstractDiskHttpData" is vulnerable. This has been fixed in version 4.1.59.Final. As a workaround, one may specify your own "java.io.tmpdir" when you start the JVM or use "DefaultHttpDataFactory.setBaseDir(...)" to set the directory to something that is only readable by the current user.

CVSS metrics

9 scores · 8 sources · 2 versions

EPSS trend

Probability

1.80%

Chance of exploitation in the next 30 days

Percentile

79%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 1.78% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Netty

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Oracle7 products
Chainguard4 products
  • druidAll versions (No fix recorded)
  • hadoop-fips-3.3.6All versions (No fix recorded)
  • hadoop-fips-3.4.2All versions (No fix recorded)
  • hadoop-fips-3.5All versions (No fix recorded)
Redhat4 products
  • satellite< 0:6.10.2-1.el7sat
  • satellite-capsule< 0:6.10.2-1.el7sat
  • satellite-cli< 0:6.10.2-1.el7sat
  • satellite-common< 0:6.10.2-1.el7sat
Netapp3 products
Debian2 products
  • netty< 1:4.1.48-2 | < 1:4.1.7-2+deb9u3
  • debian_linuxEOL9.0 | 10.0
Io.netty2 products
  • nettyAll versions (No fix recorded)
  • netty-codec-http≥ 4.0.0, < 4.1.59.Final
Mageia1 product
  • netty< 4.1.51-1.1.mga8
Netty1 product
  • netty< 4.1.59.Final | < 4.1.59
Org.jboss.netty1 product
  • nettyAll versions (No fix recorded)
Quarkus1 product
Ubuntu1 product
  • nettyAll versions (No fix recorded) | < 1:4.0.34-1ubuntu0.1~esm1 | < 1:4.1.7-4ubuntu0.1+esm2 | < 1:4.1.45-1ubuntu0.1~esm1 | < 1:4.1.48-4+deb11u1build0.22.04.1
Wolfi1 product
  • druidAll versions (No fix recorded)

12 vendors · 28 products

References

90 links
Show all 90 references