CVE-2021-21290: Local Information Disclosure Vulnerability in Netty on Unix-Like systems due temporary files
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.
Not severe (CVSS 6.2, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 12 · Related 10Timeline
- 08-02-2021PublishedVulnerability first disclosed.
- 08-10-2026Last 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- OSV · Red hatEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · MavenEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NDiffers
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
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundNetty
Maturity: poc
Weaknesses
CWE · root cause- CWE-378Creation of Temporary File With Insecure PermissionsOpening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack.
- CWE-379Creation of Temporary File in Directory with Insecure PermissionsThe product creates a temporary file in a directory whose permissions allow unintended actors to determine the file's existence or otherwise access that file.
- CWE-668Exposure of Resource to Wrong SphereThe product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.
Affected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Oracle7 products
- banking_corporate_lending_process_management14.2.0 | 14.3.0 | 14.5.0
- banking_credit_facilities_process_management14.2.0 | 14.3.0 | 14.5.0
- banking_trade_finance_process_management14.2.0 | 14.3.0 | 14.5.0
- communications_brm_-_elastic_charging_engine12.0.0.3
- communications_design_studio7.4.2
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
- quarkus≤ 1.13.7
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- github.com/netty/netty/security/advisories/GHSA-5mcr-gq6c-3hq2X Refsource CONFIRMAdvisoryREPORTEVIDENCEWEBExploitThird Party Advisory
- github.com/netty/netty/commit/c735357bf29d07856ad171c6611a2e1a0e0000ecX Refsource MISCREPORTFIXWEBPatchThird Party Advisory
- lists.debian.org/debian-lts-announce/2021/02/msg00016.htmlMailing ListX Refsource MLISTAdvisoryWEBThird Party Advisory
Show all 90 references
- www.debian.org/security/2021/dsa-4885Vendor AdvisoryX Refsource DEBIANAdvisoryWEBThird Party Advisory
- github.com/netty/nettyPACKAGE