PT-2021-5819

CVE-2021-21290

·

Published

2021-02-08

·

Updated

2026-11-10

Description by

CVSS 3.1
6.2
Medium
MetricsAV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Netty versions prior to 4.1.77.Final
Description The issue is related to the creation of temporary files with insecure permissions in Netty, an open-source network application framework. 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. This affects applications running on Unix-like systems, where the temporary directory is shared between all users. The method File.createTempFile creates a random file with default permissions "-rw-r--r--", allowing other local users to read sensitive information written to this file.
Recommendations For versions prior to 4.1.77.Final, update to 4.1.77.Final to resolve the issue. As a temporary workaround, 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. Consider updating to Java 7 or above to mitigate the risk.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-269Q-HMXG-M83Q
GHSA-5MCR-GQ6C-3HQ2
CLEANSTART-2026-LZ91805
DHI-GFZI-MWMT-VWUK-QNBP
DLA-2555-1
DSA-4885-1
ECHO-CD72-3071-DB26
MGASA-2021-0136
OESA-2021-1143
OPENSUSE-SU-2022_1271-1
OPENSUSE-SU-2024:11085-1
RHSA-2021:1511
RHSA-2021:2046
RHSA-2021:2047
RHSA-2021:2048
RHSA-2022:0190
RHSA-2022:5498
RLSA-2022:5498
SUSE-SU-2022:1271-1
SUSE-SU-2022:3617-1
SUSE-SU-2022:3760-1
SUSE-SU-2022:3793-1
USN-6049-1
Found an issue in the description? Have something to add? Feel free to write us 👾