GHSA-58qw-p7qm-5rvh: Jetty xml Eclipse Jetty XmlParser Allows Arbitrary Vulnerability

LOW
CVSS 3.9
CWE-611
Published
Advisory Summary

GHSA-58qw-p7qm-5rvh is a LOW (CVSS 3.9) eclipse jetty xmlparser allows arbitrary vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Jetty xml libraries in the Maven ecosystem. The issue involves eclipse jetty xmlparser allows arbitrary doctype declarations. Remediation is available by upgrading affected packages to version 10.0.16, 11.0.16, 12.0.0, 9.4.52.v20230823.

GHSA-58qw-p7qm-5rvh at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-58qw-p7qm-5rvh
Severity LOW
CVSS v3.1 Base Score 3.9
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Jetty xml
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 3.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix GHSA-58qw-p7qm-5rvh

To remediate this vulnerability, upgrade all affected Jetty xml dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.eclipse.jetty:jetty-xml fixed: 10.0.16
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-xml</artifactId>
    <version>10.0.16</version>
</dependency>
org.eclipse.jetty:jetty-xml fixed: 11.0.16
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-xml</artifactId>
    <version>11.0.16</version>
</dependency>
org.eclipse.jetty:jetty-xml fixed: 12.0.0
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-xml</artifactId>
    <version>12.0.0</version>
</dependency>
org.eclipse.jetty:jetty-xml fixed: 9.4.52.v20230823
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-xml</artifactId>
    <version>9.4.52.v20230823</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.eclipse.jetty

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-58qw-p7qm-5rvh, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.eclipse.jetty

Analyze the terminal output to locate any version of Jetty xml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.0.16), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.eclipse.jetty command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Jetty xml, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### From the reporter > `XmlParser` is vulnerable to XML external entity (XXE) vulnerability. > XmlParser is being used when parsing Jetty’s xml configuration files. An attacker might exploit > this vulnerability in order to achieve SSRF or cause a denial of service. > One possible scenario is importing a (remote) malicious WAR into a Jetty’s server, while the > WAR includes a malicious web.xml. ### Impact There are no circumstances in a normally deployed Jetty server where potentially hostile XML is given to the XmlParser class without the attacker already having arbitrary access to the server. I.e. in order to exploit `XmlParser` the attacker would already have the ability to deploy and execute hostile code. Specifically, Jetty has no protection against malicious web application and potentially hostile web applications should only be run on an isolated virtualisation. Thus this is not considered a vulnerability of the Jetty server itself, as any such usage of the jetty XmlParser is equally vulnerable as a direct usage of the JVM supplied SAX parser. No CVE will be allocated to this advisory. However, any direct usage of the `XmlParser` class by an application may be vulnerable. The impact would greatly depend on how the application uses `XmlParser`, but it could be a denial of service due to large entity expansion, or possibly the revealing local files if the XML results are accessible remotely. ### Patches Ability to configure the SAXParserFactory to fit the needs of your particular XML parser implementation have been merged as part of PR #10067 ### Workarounds Don't use Jetty's `XmlParser` to parse data from users.

GHSA-58qw-p7qm-5rvh Affected Jetty xml Versions

4 component(s)
Fixed Versions:
10.0.1611.0.1612.0.09.4.52.v20230823
Product / Package Ecosystem Affected Versions Fixed Version
org.eclipse.jetty:jetty-xml
Maven
≥ 10.0.0-alpha0
< 10.0.16
10.0.16
org.eclipse.jetty:jetty-xml
Maven
≥ 11.0.0-alpha0
< 11.0.16
11.0.16
org.eclipse.jetty:jetty-xml
Maven
≥ 12.0.0.alpha0
< 12.0.0
12.0.0
org.eclipse.jetty:jetty-xml
Maven
< 9.4.52.v20230823
9.4.52.v20230823

References

Frequently Asked Questions

What is GHSA-58qw-p7qm-5rvh?
GHSA-58qw-p7qm-5rvh is a security vulnerability in Jetty xml involving Eclipse Jetty XmlParser allows arbitrary DOCTYPE declarations under CWE-611: Improper Restriction of XML External Entity Reference.
Which Jetty xml versions are affected?
Affected versions include releases prior to 10.0.16, 11.0.16, 12.0.0, 9.4.52.v20230823 across affected packages: org.eclipse.jetty:jetty-xml.
What version fixes GHSA-58qw-p7qm-5rvh?
Upgrading to 10.0.16, 11.0.16, 12.0.0, 9.4.52.v20230823 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jetty-xml affected?
Yes, org.eclipse.jetty:jetty-xml is affected in releases prior to 10.0.16, 11.0.16, 12.0.0, 9.4.52.v20230823. Upgrade your dependency to 10.0.16, 11.0.16, 12.0.0, 9.4.52.v20230823 or later.
What is the CVSS score of GHSA-58qw-p7qm-5rvh?
GHSA-58qw-p7qm-5rvh has a CVSS v3.1 base score of 3.9 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with GHSA-58qw-p7qm-5rvh?
GHSA-58qw-p7qm-5rvh is classified under CWE-611: Improper Restriction of XML External Entity Reference (The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.).
How can I check Maven dependencies for GHSA-58qw-p7qm-5rvh?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.eclipse.jetty'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-58qw-p7qm-5rvh",
  "modified" : "2026-02-10T20:06:17Z",
  "published" : "2023-07-10T21:52:39Z",
  "aliases" : [ ],
  "summary" : "Eclipse Jetty XmlParser allows arbitrary DOCTYPE declarations",
  "details" : "### From the reporter\n\n> `XmlParser` is vulnerable to XML external entity (XXE) vulnerability.\n>  XmlParser is being used when parsing Jetty’s xml configuration files. An attacker might exploit\n> this vulnerability in order to achieve SSRF or cause a denial of service.\n> One possible scenario is importing a (remote) malicious WAR into a Jetty’s server, while the\n> WAR includes a malicious web.xml.\n\n### Impact\nThere are no circumstances in a normally deployed Jetty server where potentially hostile XML is given to the XmlParser class without the attacker already having arbitrary access to the server. I.e. in order to exploit `XmlParser` the attacker would already have the ability to deploy and execute hostile code.  Specifically, Jetty has no protection against malicious web application and potentially hostile web applications should only be run on an isolated virtualisation.  \n\nThus this is not considered a vulnerability of the Jetty server itself, as any such usage of the jetty XmlParser is equally vulnerable as a direct usage of the JVM supplied SAX parser.  No CVE will be allocated to this advisory.\n\nHowever, any direct usage of the `XmlParser` class by an application may be vulnerable.  The impact would greatly depend on how the application uses `XmlParser`, but it could be a denial of service due to large entity expansion, or possibly the revealing local files if the XML results are accessible remotely.\n\n### Patches\nAbility to configure the SAXParserFactory to fit the needs of your particular XML parser implementation have been merged as part of PR #10067\n\n### Workarounds\nDon't use Jetty's `XmlParser` to parse data from users.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty:jetty-xml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0-alpha0"
      }, {
        "fixed" : "10.0.16"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 10.0.15"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty:jetty-xml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0-alpha0"
      }, {
        "fixed" : "11.0.16"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 11.0.15"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty:jetty-xml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0.0.alpha0"
      }, {
        "fixed" : "12.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 12.0.0.beta4"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty:jetty-xml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "9.4.52.v20230823"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 9.4.51"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/eclipse/jetty.project/security/advisories/GHSA-58qw-p7qm-5rvh"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jetty/jetty.project/security/advisories/GHSA-58qw-p7qm-5rvh"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse/jetty.project/pull/10067"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/eclipse/jetty.project"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse/jetty.project/releases/tag/jetty-10.0.16"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse/jetty.project/releases/tag/jetty-11.0.16"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse/jetty.project/releases/tag/jetty-12.0.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse/jetty.project/releases/tag/jetty-9.4.52.v20230823"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-10T21:52:39Z",
    "nvd_published_at" : null
  }
}