Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

GHSA-58qw-p7qm-5rvh

Eclipse Jetty XmlParser allows arbitrary DOCTYPE declarations
Back to all
CVE

GHSA-58qw-p7qm-5rvh

Eclipse Jetty XmlParser allows arbitrary DOCTYPE declarations

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 XmlParser to parse data from users.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
-
C
H
U
-
C
H
U
-

Related Resources

No items found.

References

Severity

3.9

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
3.9
EPSS Probability
0%
EPSS Percentile
0%
Introduced Version
0
Fix Available
9.4.52.v20230823

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading