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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | libdb | 5.3.28-42.el8_4 | RLSA-2022:5498 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- RHSA-2022:5498 Red Hat Security Advisory: Satellite 6.11 Release Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2022:0190 Red Hat Security Advisory: Satellite 6.10.2 Async Bug Fix Update Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2021:2048 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.7 security update on RHEL 8 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2021:2046 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.7 security update on RHEL 6 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2021:2047 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.7 security update on RHEL 7 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2021:1511 Red Hat Security Advisory: AMQ Clients 2.9.1 release and security update Red Hat Security Advisories (RHSA) · Oct 13, 2026
- WID-SEC-2024-0794 Dell ECS: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 11, 2026
- USN-6049-1 netty vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DSA-4885-1 netty - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2555-1 netty - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2022:5498 Moderate: Satellite 6.11 Release Rocky Linux Security Advisories · Feb 5, 2026
- SUSE-SU-2022:3793-1 Security update for netty SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11085-1 netty-4.1.60-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:3760-1 Security update for netty SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:3617-1 Security update for netty SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1271-1 Security update for netty SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-1375 JFrog Artifactory: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 12, 2025
- WID-SEC-2025-1459 Dell Data Protection Advisor: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 3, 2025
- WID-SEC-2023-0809 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 19, 2024
- WID-SEC-2022-0567 Red Hat OpenShift: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 22, 2023
References
- https://github.com/netty/netty/security/advisories/GHSA-5mcr-gq6c-3hq2
- https://github.com/netty/netty/commit/c735357bf29d07856ad171c6611a2e1a0e0000ec
- [debian-lts-announce] 20210211 [SECURITY] [DLA 2555-1] netty security update mailing-list
- [kafka-jira] 20210301 [jira] [Created] (KAFKA-12389) Upgrade of netty-codec due to CVE-2021-21290 mailing-list
- [kafka-dev] 20210301 [jira] [Created] (KAFKA-12389) Upgrade of netty-codec due to CVE-2021-21290 mailing-list
- [kafka-jira] 20210301 [jira] [Assigned] (KAFKA-12389) Upgrade of netty-codec due to CVE-2021-21290 mailing-list
- [kafka-jira] 20210301 [GitHub] [kafka] dongjinleekr opened a new pull request #10235: KAFKA-12389: Upgrade of netty-codec due to CVE-2021-21290 mailing-list
- [kafka-jira] 20210301 [GitHub] [kafka] dongjinleekr commented on pull request #10235: KAFKA-12389: Upgrade of netty-codec due to CVE-2021-21290 mailing-list
- [kafka-dev] 20210302 [jira] [Resolved] (KAFKA-12389) Upgrade of netty-codec due to CVE-2021-21290 mailing-list
- [kafka-jira] 20210302 [jira] [Resolved] (KAFKA-12389) Upgrade of netty-codec due to CVE-2021-21290 mailing-list
- [kafka-jira] 20210302 [GitHub] [kafka] omkreddy closed pull request #10235: KAFKA-12389: Upgrade of netty-codec due to CVE-2021-21290 mailing-list
- [kafka-commits] 20210302 [kafka] branch 2.6 updated: KAFKA-12389: Upgrade of netty-codec due to CVE-2021-21290 mailing-list
- [kafka-commits] 20210302 [kafka] branch 2.7 updated: KAFKA-12389: Upgrade of netty-codec due to CVE-2021-21290 mailing-list
- [kafka-jira] 20210302 [GitHub] [kafka] dongjinleekr commented on pull request #10235: KAFKA-12389: Upgrade of netty-codec due to CVE-2021-21290 mailing-list
- [zookeeper-issues] 20210311 [jira] [Created] (ZOOKEEPER-4242) Upgrade Netty library to > 4.1.59 due to security vulnerability mailing-list
- [zookeeper-dev] 20210311 [jira] [Created] (ZOOKEEPER-4242) Upgrade Netty library to > 4.1.59 due to security vulnerability mailing-list
- [tinkerpop-dev] 20210316 [jira] [Created] (TINKERPOP-2535) Netty 4.1.52 flagged as medium security violation mailing-list
- [ranger-dev] 20210317 [jira] [Created] (RANGER-3209) Upgrade netty to 4.1.60+ due to CVE-2021-21290 and CVE-2021-21295 mailing-list
- [ranger-dev] 20210317 [jira] [Assigned] (RANGER-3209) Upgrade netty to 4.1.60+ due to CVE-2021-21290 and CVE-2021-21295 mailing-list
- [pulsar-commits] 20210329 [GitHub] [pulsar] yaswanthnadella opened a new issue #10071: CVE-2021-21295 & CVE-2021-21290 mailing-list
- [pulsar-commits] 20210329 [GitHub] [pulsar] aahmed-se opened a new pull request #10073: Upgrade Netty version to 4.1.60.final mailing-list
- [pulsar-commits] 20210329 [GitHub] [pulsar] merlimat closed issue #10071: CVE-2021-21295 & CVE-2021-21290 mailing-list
- [bookkeeper-issues] 20210330 [GitHub] [bookkeeper] eolivelli opened a new issue #2669: Update Netty to 4.1.60.final mailing-list
- [zookeeper-dev] 20210330 [jira] [Created] (ZOOKEEPER-4272) Upgrade Netty library to > 4.1.60 due to security vulnerability CVE-2021-21295 mailing-list
- [kafka-dev] 20210330 [jira] [Created] (KAFKA-12583) Upgrade of netty-codec due to CVE-2021-21295 mailing-list
- [kafka-jira] 20210330 [jira] [Updated] (KAFKA-12583) Upgrade of netty-codec due to CVE-2021-21295 mailing-list
- [zookeeper-issues] 20210330 [jira] [Created] (ZOOKEEPER-4272) Upgrade Netty library to > 4.1.60 due to security vulnerability CVE-2021-21295 mailing-list
- [kafka-jira] 20210330 [jira] [Created] (KAFKA-12583) Upgrade of netty-codec due to CVE-2021-21295 mailing-list
- [zookeeper-issues] 20210330 [jira] [Updated] (ZOOKEEPER-4272) Upgrade Netty library to > 4.1.60 due to security vulnerability CVE-2021-21295 mailing-list
- [zookeeper-issues] 20210402 [jira] [Commented] (ZOOKEEPER-4272) Upgrade Netty library to > 4.1.60 due to security vulnerability CVE-2021-21295 mailing-list
- DSA-4885 vendor-advisory
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://lists.apache.org/thread.html/r0053443ce19ff125981559f8c51cf66e3ab4350f47812b8cf0733a05%40%3Cdev.kafka.apache.org%3E
- [activemq-users] 20210715 Next ActiveMQ Artemis Release - CVE-2021-21290 vulnerability mailing-list
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- [pulsar-commits] 20211020 [GitHub] [pulsar] Shoothzj opened a new pull request #12437: [Security] Bump grpc to 1.41.0 mailing-list
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.netapp.com/advisory/ntap-20220210-0011/