CVE-2022-2047
Jetty invalid URI parsing may produce invalid HttpURI.authority
Description
Description
URI use within Jetty's HttpURI class can parse invalid URIs such as http://localhost;/path as having an authority with a host of localhost;.
A URIs of the type http://localhost;/path should be interpreted to be either invalid or as localhost; to be the userinfo and no host.
However, HttpURI.host returns localhost; which is definitely wrong.
Impact
This can lead to errors with Jetty's HttpClient, and Jetty's ProxyServlet / AsyncProxyServlet / AsyncMiddleManServlet wrongly interpreting an authority with no host as one with a host.
Patches
Patched in PR #8146 for Jetty version 9.4.47. Patched in PR #8014 for Jetty versions 10.0.10, and 11.0.10
Workarounds
None.
For more information
If you have any questions or comments about this advisory:
- Email us at security@webtide.com.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.eclipse.jetty » jetty-http | < 9.4.47>= 10.0.0, < 10.0.10>= 11.0.0, < 11.0.10 | 9.4.47, 10.0.10, 11.0.10 |
Blast radius
58% of the dependent artifacts (13,854) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 40,936 |
| 2 hops | 278,336 |
| 3 hops | 410,414 |
| 4 hops | 326,683 |
| 5 hops | 197,318 |
| 6 hops | 124,215 |
Most used dependents
- org.scalatest » scalatest20,465 usages
- org.apache.maven.plugins » maven-site-plugin9,107 usages
- org.eclipse.jetty » jetty-server4,598 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.kafka » kafka-clients3,135 usages
- org.eclipse.jetty » jetty-servlet2,979 usages
- org.apache.spark » spark-core2,899 usages
- org.seleniumhq.selenium » selenium-java2,089 usages
- org.eclipse.jetty » jetty-webapp2,060 usages
- com.typesafe.play » play-test1,902 usages
- com.github.tomakehurst » wiremock1,838 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.apache.kafka » kafka1,450 usages
- org.jenkins-ci.tools » maven-hpi-plugin1,404 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/eclipse/jetty.project/security/advisories/GHSA-cj7v-27pg-wf7q
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-2047
- Packagehttps://github.com/eclipse/jetty.project
- Webhttps://lists.debian.org/debian-lts-announce/2022/08/msg00011.html
- Webhttps://security.netapp.com/advisory/ntap-20220901-0006
- Webhttps://www.debian.org/security/2022/dsa-5198
