MODERATE 5.3

CVE-2021-28169

Jetty Utility Servlets ConcatServlet Double Decoding Information Disclosure Vulnerability

Description

Requests to the ConcatServlet and WelcomeFilter are able to access protected resources within the WEB-INF directory. For example a request to the ConcatServlet with a URI of /concat?/%2557EB-INF/web.xml can retrieve the web.xml file. This can reveal sensitive information regarding the implementation of a web application.

This occurs because both ConcatServlet and WelcomeFilter decode the supplied path to verify it is not within the WEB-INF or META-INF directories. It then uses this decoded path to call RequestDispatcher which will also do decoding of the path. This double decoding allows paths with a doubly encoded WEB-INF to bypass this security check.

Impact

This affects all versions of ConcatServlet and WelcomeFilter in versions before 9.4.41, 10.0.3 and 11.0.3.

Workarounds

If you cannot update to the latest version of Jetty, you can instead deploy your own version of the ConcatServlet and/or the WelcomeFilter by using the code from the latest version of Jetty.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.eclipse.jetty » jetty-servlets
< 9.4.41>= 10.0.0, < 10.0.3>= 11.0.0, < 11.0.3
9.4.41, 10.0.3, 11.0.3

Blast radius

1affected artifacts
311affected versions
6,677dependent artifacts (est.)
393,738dependent versions

53% of the dependent artifacts (3,556) still pull an affected version in their latest release.

DepthDependent versions
Direct
43,668
2 hops
115,471
3 hops
125,314
4 hops
60,066
5 hops
27,105
6 hops
22,114

Most used dependents

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