Skip to main content

Netty Unix Socket CVE-2026-45536

| EUVDEUVD-2026-36439 MEDIUM
Information Exposure (CWE-200)
2026-06-08 https://github.com/netty/netty GHSA-w573-9ffj-6ff9
4.0
CVSS 3.1 · Vendor: https://github.com/netty/netty
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify Netty process using FILE_DESCRIPTORS mode
  2. Delivery
    Connect to accessible Unix domain socket
  3. Exploit
    Craft SCM_RIGHTS cmsg with two file descriptors
  4. Install
    Kernel installs both FDs, cmsg_len mismatch skips close
  5. C2
    Two FDs leak per message, repeat at volume
  6. Execute
    Process FD table exhausted
  7. Impact
    Service fails to allocate new FDs, denial of service achieved

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Three conditions must be simultaneously true for exploitation: (1) The application must explicitly configure the DomainSocketChannel to use DomainSocketReadMode.FILE_DESCRIPTORS - this is a non-default, opt-in mode; all Netty deployments using the default channel read mode are not affected by this vulnerability. (2) The attacker must have local access to the Unix domain socket endpoint, governed by the socket file's filesystem permissions - remote network-based exploitation is not possible since Unix domain sockets are inherently local. (3) The receiving process must run long enough for accumulated FD leaks to approach the OS-level file descriptor limit (commonly 1024 for unprivileged processes, configurable via ulimit). The CVSS PR:N designation confirms no OS-level privileges are required beyond socket connectivity. Exploitation is strictly a local, availability-only attack; there is no code execution, credential access, or data exfiltration pathway.

Impact

CVSS 4.0 (Low) with vector AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L accurately represents the constrained blast radius. The local attack vector (AV:L) is the dominant limiting factor: exploitation requires a process on the same host with the ability to connect to the Unix domain socket endpoint, which is governed by filesystem permissions on the socket file. The PR:N designation means no elevated OS privileges are needed beyond socket connectivity. The non-default DomainSocketReadMode.FILE_DESCRIPTORS configuration further restricts the affected population to applications that explicitly opt into Unix FD-passing mode - the large majority of Netty deployments are unaffected. No EPSS score was provided in the input data; KEV status is not confirmed. No public exploit code has been identified. Automatable exploitation is constrained by the local-only attack surface, making mass exploitation impractical. For long-running services that do use FILE_DESCRIPTORS mode, the realistic risk is a slow, resource-exhaustion denial of service achievable by any local socket peer - a meaningful concern in multi-tenant or shared-host environments. The CVSS C:N/I:N rating is consistent with the description: no credentials are exposed and no code is executed.

Exploit ScenarioDerived

A local attacker with access to the target Netty application's Unix domain socket (e.g., a co-tenant process on the same host, or a compromised service account with socket-file read permission) connects to the socket and repeatedly sends SCM_RIGHTS control messages each containing exactly two file descriptors. Each message causes the Netty process to absorb two additional unclosed FDs without detection, silently exhausting the process's file descriptor limit over time. Once the limit is reached, the Netty application fails to open new connections, log files, or perform any FD-dependent I/O, resulting in service disruption. No public exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

File descriptor exhaustion in Netty's Unix domain socket native transport allows a local peer to leak two file descriptors per crafted SCM_RIGHTS message into the receiving process, with neither FD ever closed. Affected are applications explicitly configured with DomainSocketReadMode.FILE_DESCRIPTORS on Epoll or KQueue DomainSocketChannel - a non-default opt-in setting. Sustained message flooding by a local socket peer can exhaust the Netty process's file descriptor table, ultimately causing denial of service. No public exploit identified at time of analysis and not listed in CISA KEV; CVSS scores this at 4.0 (Low) reflecting the local-only attack surface and low availability impact.

RemediationAI

Upgrade to io.netty:netty-transport-native-epoll or io.netty:netty-transport-native-kqueue version 4.1.135.Final (for 4.1.x users) or 4.2.15.Final (for 4.2.x users); these are confirmed fixed releases per the Netty project's GHSA-w573-9ffj-6ff9 advisory and official release notes at https://github.com/netty/netty/releases/tag/netty-4.1.135.Final and https://github.com/netty/netty/releases/tag/netty-4.2.15.Final. For applications that cannot immediately upgrade, the most effective compensating control is to avoid enabling DomainSocketReadMode.FILE_DESCRIPTORS - reverting the channel to its default read mode entirely removes the vulnerable code path, with no trade-off unless the application specifically requires Unix FD-passing semantics. Applications that must retain FILE_DESCRIPTORS mode should monitor for FD exhaustion by tracking /proc/self/fd count or configuring ulimit alerts, and should restrict Unix socket access via filesystem permissions (chmod/chown on the socket file) to the minimum required set of local peers. Rate-limiting connections or messages on the socket can slow leak accumulation but does not eliminate it.

Affected VersionsENISA

netty 4.2.0.Final, < 4.2.15.Final
netty < 4.1.135.Final

Affected Packages

maven io.netty:netty-transport-native-epoll fix: 4.1.135.Final, 4.2.15.Final
maven io.netty:netty-transport-native-kqueue fix: 4.1.135.Final, 4.2.15.Final
euvd netty fix: 4.1.135.Final
euvd netty_4_2_0_final fix: 4.2.15.Final

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the native C function netty_unix_socket_recvFd within Netty's JNI transport modules: io.netty:netty-transport-native-epoll (Linux/epoll) and io.netty:netty-transport-native-kqueue (BSD/macOS). At line 940, the control buffer is allocated as CMSG_SPACE(sizeof(int)) = 24 bytes - sized for exactly one file descriptor. When a peer sends an SCM_RIGHTS ancillary message containing two integers (two FDs), the resulting cmsg_len is CMSG_LEN(8) = 24 bytes, which fits exactly in the 24-byte buffer. Because the buffer is not overflowed, the kernel does not set MSG_CTRUNC, and both peer-supplied FDs are silently installed into the receiving process's file descriptor table. The validation at line 972 checks cmsg->cmsg_len == CMSG_LEN(sizeof(int)) (expected value: 20), which fails for the two-FD message (actual: 24), so the fd-reading branch is skipped. Critically, neither installed FD is closed. The for(;;) loop then calls recvmsg again on the non-blocking socket, receives EAGAIN, which the Java layer maps to 0 and treats as normal loop exit - leaving two untracked, unclosed file descriptors per message. There is no MSG_CTRUNC handling in the code path. While NVD assigns CWE-200 (Information Exposure), the primary mechanism is more precisely CWE-775 (Missing Release of File Descriptor or Handle after Effective Lifetime); the CWE-200 classification may reflect that the peer's file descriptors are installed into the process without authorization.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/netty/netty) PRIMARY 4.0 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
SUSE MEDIUM
Red Hat 4.0 MEDIUM

Primary rating from Vendor (https://github.com/netty/netty).

CVSS VectorVendor: https://github.com/netty/netty

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

DescriptionCVE.org

netty_unix_socket_recvFd sets msg_control to char control[CMSG_SPACE(sizeof(int))] (line 940) - 24 bytes on 64-bit Linux. A peer-sent SCM_RIGHTS cmsg carrying two ints has cmsg_len = CMSG_LEN(8) = 24, which fits exactly with no MSG_CTRUNC, so the kernel installs both fds in the receiving process. The subsequent check cmsg->cmsg_len == CMSG_LEN(sizeof(int)) (line 972, expected 20) fails, the branch that would read the fd is skipped, and neither installed fd is closed. The for(;;) loop calls recvmsg again (non-blocking → EAGAIN → Java maps to 0 → read loop exits normally), leaving two leaked fds per message. There is no MSG_CTRUNC handling. Reachable via Epoll/KQueue DomainSocketChannel when the application opts into DomainSocketReadMode.FILE_DESCRIPTORS (non-default).

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy