CVE-2026-56817

Netty: XML External Entity (XXE) injection via unconfigured XML factory when DTD and entity processing are enabled

Published Jul 21, 2026 CVSS 4.0 · 8.3 High EPSS < 1% KEV · Not listed
Description
Netty is a network application framework for development of protocol servers and clients. In versions 4.2.0.Final through 4.2.15.Final and 4.1.0.Final through 4.1.135.Final, any caller that can deliver bytes to a Netty channel pipeline containing `XmlDecoder` can send XML with a `DOCTYPE` declaration to an `AsyncXMLInputFactory` instantiated with no security configuration, leaving DTD and entity handling active depending on Aalto XML async parser behavior and creating conditional XML external entity risk. This issue is fixed in versions 4.1.136.Final and 4.2.16.Final.

Analysis

AI-generated

Technical impact

Netty, a Java network application framework, can be abused when it processes XML messages with the XmlDecoder handler and an AsyncXMLInputFactory that has not been explicitly secured. The factory defaults permit DTD and external entity handling, allowing an attacker to embed XML with a DOCTYPE declaration that resolves to external entities. This flaw, identified as CWE‑611, can lead to sensitive file disclosure from the server environment or even execution of arbitrary code if the external entity triggers such behavior. The vulnerability is manifest in Netty versions 4.1.0.Final through 4.1.135.Final and 4.2.0.Final through 4.2.15.Final, all of which contain the unguarded XmlDecoder.

Affected Systems

The vendor netty:netty publishes the affected library. Any application that includes Netty in these version ranges and that routes inbound XML data through the XmlDecoder in its channel pipeline is susceptible. Both the 4.1.x line up to 4.1.135 and the 4.2.x line up to 4.2.15 are affected; the issue is resolved in 4.1.136.Final and 4.2.16.Final.

Risk and Exploitability

The CVSS score of 8.3 denotes high severity, while the EPSS score of less than 1% suggests that active exploitation is currently rare. The vulnerability is not listed in CISA’s KEV catalog. To trigger the flaw an attacker must communicate with a service that accepts XML over a network connection, a typical remote delivery vector. Given the low exploitation probability but high potential impact, the recommendation is to remediate promptly by applying the vendor’s fixed releases.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Netty to at least version 4.1.136.Final or 4.2.16.Final
  • Remove or replace the XmlDecoder handler in any channel pipeline that processes user‑supplied XML
  • If an upgrade is not feasible, configure the AsyncXMLInputFactory to disable DTD and entity processing before creating the parser

Generated by OpenCVE AI on August 4, 2026 at 00:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4qhr-g3c6-fcfx Netty XML: Injection / Risky Sink — unconfigured XML factory with active DTD and entity handling
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Netty
Netty netty
Vendors & Products Netty
Netty netty
Type Values Removed Values Added
Description Netty is a network application framework for development of protocol servers and clients. In versions 4.2.0.Final through 4.2.15.Final and 4.1.0.Final through 4.1.135.Final, any caller that can deliver bytes to a Netty channel pipeline containing `XmlDecoder` can send XML with a `DOCTYPE` declaration to an `AsyncXMLInputFactory` instantiated with no security configuration, leaving DTD and entity handling active depending on Aalto XML async parser behavior and creating conditional XML external entity risk. This issue is fixed in versions 4.1.136.Final and 4.2.16.Final.
Title Netty: XML External Entity (XXE) injection via unconfigured XML factory when DTD and entity processing are enabled
Weaknesses CWE-611
References
Metrics cvssV4_0

{'score': 8.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-611

    Improper Restriction of XML External Entity Reference

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 22, 2026, 3:42 PM
Reserved
Jun 23, 2026, 2:55 PM
Status
Analyzed
Published
Jul 21, 2026, 11:17 PM
Modified
Jul 30, 2026, 2:48 PM
Severity
Important
Public date
Jul 21, 2026, 10:06 PM