Skip to content
OpenAdvisories
Medium · 6.2 CVE-2021-21290 EUVD-2021-0535GHSA-5mcr-gq6c-3hq2

Local Information Disclosure Vulnerability in Netty on Unix-Like systems due temporary files

Published Feb 8, 2021 · Updated Oct 8, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
netty netty < 4.1.59.Final —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 netty 1:4.1.48-2 —
Debian 13 netty 1:4.1.48-2 —
Debian 12 netty 1:4.1.48-2 —
Debian 10 netty 1:4.1.33-1+deb10u2 DSA-4885-1
Debian 9 netty 1:4.1.7-2+deb9u3 DLA-2555-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS netty 1:4.1.48-4+deb11u1build0.22.04.1 USN-6049-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS netty 1:4.1.45-1ubuntu0.1~esm1 USN-6049-1
Ubuntu Pro 18.04 LTS netty 1:4.1.7-4ubuntu0.1+esm2 USN-6049-1
Ubuntu Pro 16.04 LTS netty 1:4.0.34-1ubuntu0.1~esm1 USN-6049-1
ReleasePackageFixed inAdvisory
Red Hat Satellite Utils 6 foreman 3.1.1.21-2.el7sat RHSA-2022:5498
Red Hat Satellite Utils 6 satellite 6.11.0-2.el7sat RHSA-2022:5498
Red Hat Satellite Capsule 6 foreman 3.1.1.21-2.el7sat RHSA-2022:5498
Red Hat Satellite Capsule 6 libsolv 0.7.22-1.el7pc RHSA-2022:5498
Red Hat Satellite Capsule 6 python-django +1 3.2.13-1.el8pc RHSA-2022:5498
Red Hat Satellite Capsule 6 python-lxml 4.7.1-1.el8pc RHSA-2022:5498
Red Hat Satellite Capsule 6 python-sqlparse 0.4.2-2.el8pc RHSA-2022:5498
Red Hat Satellite Capsule 6 satellite +2 6.10.2-1.el7sat RHSA-2022:5498, RHSA-2022:0190
Red Hat Satellite 6 candlepin 4.1.13-1.el7sat RHSA-2022:5498
Red Hat Satellite 6 foreman 3.1.1.21-2.el7sat RHSA-2022:5498
Red Hat Satellite 6 libsolv 0.7.22-1.el7pc RHSA-2022:5498
Red Hat Satellite 6 python-django +1 3.2.13-1.el8pc RHSA-2022:5498
Red Hat Satellite 6 python-lxml 4.7.1-1.el8pc RHSA-2022:5498
Red Hat Satellite 6 python-sqlparse 0.4.2-2.el8pc RHSA-2022:5498
Red Hat Satellite 6 rubygem-actionpack 6.0.4.7-1.el8sat RHSA-2022:5498
Red Hat Satellite 6 rubygem-puma 5.6.2-1.el8sat RHSA-2022:5498
Red Hat Satellite 6 rubygem-sidekiq 5.2.10-1.el8sat RHSA-2022:5498
Red Hat Satellite 6 satellite +2 6.10.2-1.el7sat RHSA-2022:5498, RHSA-2022:0190
Red Hat Satellite 6 tfm-rubygem-actionpack 6.0.4.7-1.el7sat RHSA-2022:5498
Red Hat Satellite 6 tfm-rubygem-puma 5.6.2-1.el7sat RHSA-2022:5498
Red Hat Satellite 6 tfm-rubygem-sidekiq 5.2.10-1.el7sat RHSA-2022:5498
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat JBoss EAP 7 eap7-artemis-wildfly-integration 1.0.4-1.redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-bouncycastle +3 1.68.0-2.redhat_00005.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-hal-console 3.2.14-1.Final_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-infinispan +8 9.4.22-3.Final_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-ironjacamar +8 1.4.30-1.Final_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-jboss-genericjms 2.0.9-1.Final_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-jboss-marshalling +1 2.0.11-1.Final_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-jboss-server-migration +21 1.7.2-6.Final_redhat_00007.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-jboss-weld-3.1-api +2 3.1.0-6.SP3_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-jgroups-kubernetes 1.0.16-1.Final_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-mod_cluster 1.4.3-2.Final_redhat_00002.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-netty +1 4.1.60-1.Final_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-resteasy +19 3.11.4-1.Final_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-undertow 2.0.35-1.SP1_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-velocity +1 2.3.0-1.redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-weld-ejb +6 3.1.6-1.Final_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-wildfly +2 7.3.7-1.GA_redhat_00002.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-wildfly-elytron +1 1.10.12-1.Final_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-wildfly-http-client +4 1.0.26-1.Final_redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-wildfly-java-jdk8 +1 7.3.7-1.GA_redhat_00002.1.el7eap RHSA-2021:2047
Red Hat JBoss EAP 7 eap7-xalan-j2 2.7.1-36.redhat_00013.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat JBoss EAP 7 eap7-yasson 1.0.9-1.redhat_00001.1.el6eap RHSA-2021:2048, RHSA-2021:2047, RHSA-2021:2046
Red Hat A Mq Clients 2 python3-qpid-proton 0.33.0-8.el8 RHSA-2021:1511
Red Hat A Mq Clients 2 qpid-proton +10 0.33.0-6.el7_9 RHSA-2021:1511

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libdb 5.3.28-42.el8_4 RLSA-2022:5498
ReleasePackageFixed inAdvisory
SUSE Manager Server Module 4.3 netty 4.1.44.Final-150400.3.3.2 SUSE-SU-2022:3760-1
SUSE Manager Server Module 4.2 netty 4.1.44.Final-150300.4.3.2 SUSE-SU-2022:3617-1
SUSE Manager Server Module 4.1 netty 4.1.44.Final-150200.3.4.2 SUSE-SU-2022:3793-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed netty 4.1.60-1.4 openSUSE-SU-2024:11085-1
openSUSE Leap 15.3 netty 4.1.75-150200.4.6.2 SUSE-SU-2022:1271-1

Affected packages

EcosystemPackageAffectedFixedRecord
Maven io.netty:netty all versions — GHSA-5mcr-gq6c-3hq2
Maven io.netty:netty-codec-http >= 4.0.0, < 4.1.59.Final 4.1.59.Final GHSA-5mcr-gq6c-3hq2
Maven org.jboss.netty:netty all versions — GHSA-5mcr-gq6c-3hq2

Advisories 20

References