cve.bz

CVE-2021-21290 Exposure of Resource to Wrong Sphere

5.5 mediumExploit referenceEPSS 1.8%Fix available

Medium (5.5). EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in io.netty:netty-codec-http 4.1.59.Final.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-668 Exposure of Resource to Wrong Sphere
CWE-378 Creation of Temporary File With Insecure Permissions
CWE-379 Creation of Temporary File in Directory with Insecure Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21290 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21290?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21290?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21290 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-21290

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-21290](https://cve.bz/cve/badge/CVE-2021-21290.svg)](https://cve.bz/cve/CVE-2021-21290)

HTML:

<a href="https://cve.bz/cve/CVE-2021-21290"><img src="https://cve.bz/cve/badge/CVE-2021-21290.svg" alt="CVE-2021-21290"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
netty:nettybefore 4.1.59
debian:debian_linux9.0
debian:debian_linux10.0
quarkus:quarkusthrough 1.13.7
oracle:banking_corporate_lending_process_management14.2.0
oracle:banking_corporate_lending_process_management14.3.0
oracle:banking_corporate_lending_process_management14.5.0
oracle:banking_credit_facilities_process_management14.2.0
oracle:banking_credit_facilities_process_management14.3.0
oracle:banking_credit_facilities_process_management14.5.0
oracle:banking_trade_finance_process_management14.2.0
oracle:banking_trade_finance_process_management14.3.0
oracle:banking_trade_finance_process_management14.5.0
oracle:communications_brm_-_elastic_charging_engine12.0.0.3
oracle:communications_design_studio7.4.2
oracle:communications_messaging_server8.1
oracle:nosql_databasebefore 20.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5mcr-gq6c-3hq2Mavenio.netty:netty-codec-http>=4.0.0 <4.1.59.Final4.1.59.Final
GHSA-5mcr-gq6c-3hq2Mavenorg.jboss.netty:nettyall versionsno fix published
GHSA-5mcr-gq6c-3hq2Mavenio.netty:nettyall versionsno fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9netty1:4.1.7-2+deb9u3DLA-2555-1
Debian10netty1:4.1.33-1+deb10u2DSA-4885-1
Debian12, 13, 14netty1:4.1.48-2DEBIAN-CVE-2021-21290
Ubuntu22.04:LTSnetty1:4.1.48-4+deb11u1build0.22.04.1UBUNTU-CVE-2021-21290 USN-6049-1
UbuntuPro:16.04:LTSnetty1:4.0.34-1ubuntu0.1~esm1UBUNTU-CVE-2021-21290 USN-6049-1
UbuntuPro:18.04:LTSnetty1:4.1.7-4ubuntu0.1+esm2UBUNTU-CVE-2021-21290 USN-6049-1
UbuntuPro:20.04:LTSnetty1:4.1.45-1ubuntu0.1~esm1UBUNTU-CVE-2021-21290 USN-6049-1
Red Hata_mq_clients:2::el7qpid-proton, qpid-proton-c, qpid-proton-cpp and 9 more0:0.33.0-6.el7_9RHSA-2021:1511
Red Hata_mq_clients:2::el8qpid-proton, qpid-proton-c, qpid-proton-cpp and 14 more0:0.33.0-8.el8RHSA-2021:1511
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-artemis-wildfly-integration0:1.0.4-1.redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-bouncycastle, eap7-bouncycastle-mail, eap7-bouncycastle-pkix and 1 more0:1.68.0-2.redhat_00005.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-hal-console0:3.2.14-1.Final_redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-infinispan, eap7-infinispan-core, eap7-infinispan-commons and 6 more0:9.4.22-3.Final_redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-ironjacamar, eap7-ironjacamar-jdbc, eap7-ironjacamar-core-api and 6 more0:1.4.30-1.Final_redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-genericjms0:2.0.9-1.Final_redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-marshalling, eap7-jboss-marshalling-river0:2.0.11-1.Final_redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-server-migration, eap7-jboss-server-migration-cli, eap7-jboss-server-migration-core and 19 more0:1.7.2-6.Final_redhat_00007.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-weld-3.1-api, eap7-jboss-weld-3.1-api-weld-api, eap7-jboss-weld-3.1-api-weld-spi0:3.1.0-6.SP3_redhat_00001.1.el6eapRHSA-2021:2046
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jgroups-kubernetes0:1.0.16-1.Final_redhat_00001.1.el6eapRHSA-2021:2046
72 more for Red Hat in the JSON and on Red Hat's page.
SUSEManager Server Module 4.1netty4.1.44.Final-150200.3.4.2SUSE-SU-2022:3793-1
SUSEManager Server Module 4.2netty4.1.44.Final-150300.4.3.2SUSE-SU-2022:3617-1
SUSEManager Server Module 4.3netty4.1.44.Final-150400.3.3.2SUSE-SU-2022:3760-1
openSUSELeap 15.3netty4.1.75-150200.4.6.2SUSE-SU-2022:1271-1
openSUSETumbleweednetty4.1.60-1.4openSUSE-SU-2024:11085-1
Rocky Linux8libdb0:5.3.28-42.el8_4RLSA-2022:5498

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
AMQ Clients 2.y for RHEL 7qpid-proton-0:0.33.0-6.el7_9Fixed 2021-05-06RHSA-2021:1511
AMQ Clients 2.y for RHEL 8qpid-proton-0:0.33.0-8.el8Fixed 2021-05-06RHSA-2021:1511
Red Hat AMQ 7.8.2nettyFixed 2021-07-12RHSA-2021:2689
Red Hat AMQ 7.9.0Fixed 2021-09-30RHSA-2021:3700
Red Hat AMQ Online 1.7.0 GAnettyFixed 2021-03-25RHSA-2021:0986
Red Hat AMQ Streams 1.8.0nettyFixed 2021-08-19RHSA-2021:3225
Red Hat build of Eclipse Vert.x 4.0.3nettyFixed 2021-03-31RHSA-2021:0943
Red Hat build of Quarkus 2.2.3nettyFixed 2021-10-20RHSA-2021:3880
Red Hat Data Grid 8.2.0nettyFixed 2021-05-26RHSA-2021:2139
Red Hat EAP-XP 2.0.0 via EAP 7.3.x basenettyFixed 2021-07-15RHSA-2021:2755
Red Hat JBoss A-MQ 6nettyOut of support scope
Red Hat JBoss Data Grid 7nettyOut of support scope
Red Hat JBoss Enterprise Application Platform 5nettyOut of support scope
Red Hat JBoss Enterprise Application Platform 6nettyOut of support scope
Red Hat JBoss Enterprise Application Platform Expansion PacknettyAffected
Red Hat JBoss Fuse 6nettyOut of support scope
Red Hat JBoss Operations Network 3nettyOut of support scope
Red Hat OpenShift Application RuntimesnettyWill not fix
Red Hat OpenShift Container Platform 3.11openshift3/ose-logging-elasticsearch5Will not fix
Red Hat OpenShift Container Platform 4openshift4/ose-logging-elasticsearch5Out of support scope
76 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-21290.

References

Check your stackJSON