Eclipse Jetty XmlParser allows arbitrary DOCTYPE declarations
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
### 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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | org.eclipse.jetty:jetty-xml (Maven) | 10.0.0-alpha0 to before 10.0.16 | 10.0.16 | Patch available | GHSA-58qw-p7qm-5rvh |
| — | org.eclipse.jetty:jetty-xml (Maven) | 11.0.0-alpha0 to before 11.0.16 | 11.0.16 | Patch available | GHSA-58qw-p7qm-5rvh |
| — | org.eclipse.jetty:jetty-xml (Maven) | 12.0.0.alpha0 to before 12.0.0 | 12.0.0 | Patch available | GHSA-58qw-p7qm-5rvh |
| — | org.eclipse.jetty:jetty-xml (Maven) | before 9.4.52.v20230823 | 9.4.52.v20230823 | Patch available | GHSA-58qw-p7qm-5rvh |
- org.eclipse.jetty:jetty-xml (Maven) Vendor— Affected 10.0.0-alpha0 to before 10.0.16 Fixed in 10.0.16 Patch available GHSA-58qw-p7qm-5rvh
- org.eclipse.jetty:jetty-xml (Maven) Vendor— Affected 11.0.0-alpha0 to before 11.0.16 Fixed in 11.0.16 Patch available GHSA-58qw-p7qm-5rvh
- org.eclipse.jetty:jetty-xml (Maven) Vendor— Affected 12.0.0.alpha0 to before 12.0.0 Fixed in 12.0.0 Patch available GHSA-58qw-p7qm-5rvh
- org.eclipse.jetty:jetty-xml (Maven) Vendor— Affected before 9.4.52.v20230823 Fixed in 9.4.52.v20230823 Patch available GHSA-58qw-p7qm-5rvh
Remediation
- Fix · GHSA-58qw-p7qm-5rvh org.eclipse.jetty:jetty-xml (Maven) Fixed in 10.0.16 Advisory →
- Fix · GHSA-58qw-p7qm-5rvh org.eclipse.jetty:jetty-xml (Maven) Fixed in 11.0.16 Advisory →
- Fix · GHSA-58qw-p7qm-5rvh org.eclipse.jetty:jetty-xml (Maven) Fixed in 12.0.0 Advisory →
- Fix · GHSA-58qw-p7qm-5rvh org.eclipse.jetty:jetty-xml (Maven) Fixed in 9.4.52.v20230823 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-58qw-p7qm-5rvh
References
Other 8
- https://github.com/eclipse/jetty.project/security/advisories/GHSA-58qw-p7qm-5rvh
- https://github.com/jetty/jetty.project/security/advisories/GHSA-58qw-p7qm-5rvh
- https://github.com/eclipse/jetty.project/pull/10067
- https://github.com/eclipse/jetty.project
- https://github.com/eclipse/jetty.project/releases/tag/jetty-10.0.16
- https://github.com/eclipse/jetty.project/releases/tag/jetty-11.0.16
- https://github.com/eclipse/jetty.project/releases/tag/jetty-12.0.0
- https://github.com/eclipse/jetty.project/releases/tag/jetty-9.4.52.v20230823
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences