Skip to content

GHSA-58qw-p7qm-5rvh Eclipse Jetty XmlParser allows arbitrary DOCTYPE declarations

LowCVSS 3.9
Published
Updated
Exploit status
No public exploit known

Description

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
org.eclipse.jetty/jetty-xml(Maven) < 9.4.52.v20230823; <= 9.4.51; = 7.0.0.M0; = 7.0.0.M1 +355 more 9.4.52.v20230823, 10.0.16, 11.0.16, 12.0.0 Fixed

Affected products

ProductAffected versionsFixed in
org.eclipse.jetty/jetty-xml(Maven) >= 10.0.0-alpha0, < 10.0.16 10.0.16
org.eclipse.jetty/jetty-xml(Maven) = 10.0.0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.0-alpha0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.0.alpha1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.0.alpha2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.0.beta0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.0.beta1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.0.beta2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.0.beta3 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.10 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.11 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.12 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.13 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.14 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.15 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.3 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.4 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.5 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.6 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.7 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.8 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 10.0.9 No fix listed
org.eclipse.jetty/jetty-xml(Maven) >= 11.0.0-alpha0, < 11.0.16 11.0.16
Show 175 more
ProductAffected versionsFixed in
org.eclipse.jetty/jetty-xml(Maven) = 11.0.0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.0-alpha0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.0.beta1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.0.beta2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.0.beta3 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.10 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.11 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.12 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.13 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.14 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.15 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.3 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.4 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.5 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.6 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.7 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.8 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 11.0.9 No fix listed
org.eclipse.jetty/jetty-xml(Maven) >= 12.0.0.alpha0, < 12.0.0 12.0.0
org.eclipse.jetty/jetty-xml(Maven) = 12.0.0.alpha0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 12.0.0.alpha1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 12.0.0.alpha2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 12.0.0.alpha3 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 12.0.0.beta0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 12.0.0.beta1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 12.0.0.beta2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 12.0.0.beta3 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 12.0.0.beta4 No fix listed
org.eclipse.jetty/jetty-xml(Maven) < 9.4.52.v20230823 9.4.52.v20230823
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.M0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.M1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.M2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.M3 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.M4 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.RC0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.RC1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.RC2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.RC3 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.RC4 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.RC5 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.RC6 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.0.v20091005 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.1.v20091125 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.2.RC0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.0.2.v20100331 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.1.0.RC0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.1.0.RC1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.1.0.v20100505 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.1.1.v20100517 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.1.2.v20100523 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.1.3.v20100526 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.1.4.v20100610 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.1.5.v20100705 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.1.6.v20100715 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.2.0.RC0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.2.0.v20101020 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.2.1.v20101111 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.2.2.v20101205 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.3.0.v20110203 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.3.1.v20110307 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.4.0.RC0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.4.0.v20110414 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.4.1.v20110513 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.4.2.v20110526 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.4.3.v20110701 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.4.4.v20110707 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.4.5.v20110725 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.5.0.RC0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.5.0.RC1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.5.0.RC2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.5.0.v20110901 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.5.1.v20110908 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.5.2.v20111006 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.5.3.v20111011 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.5.4.v20111024 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.0.RC0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.0.RC1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.0.RC2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.0.RC3 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.0.RC4 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.0.RC5 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.0.v20120127 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.1.v20120215 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.10.v20130312 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.11.v20130520 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.12.v20130726 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.13.v20130916 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.14.v20131031 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.15.v20140411 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.16.v20140903 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.17.v20150415 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.18.v20150929 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.19.v20160209 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.2.v20120308 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.20.v20160902 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.21.v20160908 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.3.v20120416 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.4.v20120524 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.5.v20120716 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.6.v20120903 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.7.v20120910 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.8.v20121106 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 7.6.9.v20130131 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.0.0.M0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.0.0.M1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.0.0.M2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.0.0.M3 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.0.0.RC0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.0.0.v20110901 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.0.1.v20110908 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.0.2.v20111006 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.0.3.v20111011 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.0.4.v20111024 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.0.RC0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.0.RC1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.0.RC2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.0.RC4 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.0.RC5 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.0.v20120127 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.1.v20120215 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.10.v20130312 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.11.v20130520 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.12.v20130726 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.13.v20130916 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.14.v20131031 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.15.v20140411 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.16.v20140903 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.17.v20150415 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.18.v20150929 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.19.v20160209 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.2.v20120308 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.20.v20160902 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.21.v20160908 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.22.v20160922 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.3.v20120416 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.4.v20120524 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.5.v20120716 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.6.v20120903 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.7.v20120910 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.8.v20121106 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.1.9.v20130131 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 8.2.0.v20160908 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.0.M0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.0.M1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.0.M2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.0.M3 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.0.M4 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.0.M5 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.0.RC0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.0.RC1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.0.RC2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.0.v20130308 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.1.v20130408 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.2.v20130417 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.3.v20130506 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.4.v20130625 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.5.v20130815 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.6.v20130930 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.0.7.v20131107 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.1.0.M0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.1.0.RC0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.1.0.RC1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.1.0.RC2 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.1.0.v20131115 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.1.1.v20140108 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.1.2.v20140210 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.1.3.v20140225 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.1.4.v20140401 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.1.5.v20140505 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.1.6.v20160112 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.2.0.M0 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.2.0.M1 No fix listed
org.eclipse.jetty/jetty-xml(Maven) = 9.2.0.RC0 No fix listed

References