CVE-2021-28163 Directory exposure in jetty

Low 2.7 Published Updated

Attackers can read sensitive files if the webapps directory is a symlink, exposing deployed applications and directory contents.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-28163?

CVE-2021-28163 is a low-severity path traversal vulnerability in Eclipse Jetty, published on 1 Apr 2021. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

In Eclipse Jetty 9.4.32 to 9.4.38, 10.0.0.beta2 to 10.0.1, and 11.0.0.beta2 to 11.0.1, if a user uses a webapps directory that is a symlink, the contents of the webapps directory is deployed as a static webapp, inadvertently serving the webapps themselves and anything else that might be in that directory.

Weakness: CWE-59, CWE-200

Which versions are affected by CVE-2021-28163?

7 open source packages ship an affected version, including org.eclipse.jetty:jetty-deploy and solr. It affects 23 products.

PackageAffectedFixed in
org.eclipse.jetty:jetty-deploy MavenFrom 10.0.010.0.2
org.eclipse.jetty:jetty-deploy MavenFrom 10.0.010.0.2
org.eclipse.jetty:jetty-deploy MavenFrom 11.0.011.0.2
org.eclipse.jetty:jetty-deploy MavenFrom 11.0.011.0.2
org.eclipse.jetty:jetty-deploy MavenFrom 9.4.329.4.39
org.eclipse.jetty:jetty-deploy MavenFrom 9.4.329.4.39
1 more packages
solr BitnamiFrom 8.8.18.8.2

Products include Apache Ignite, Apache Solr, Eclipse Jetty, Fedoraproject Fedora, Netapp Cloud Manager, Netapp E-Series Performance Analyzer and 17 more.

How do I fix CVE-2021-28163?

Upgrade org.eclipse.jetty:jetty-deploy to a fixed version for your release line: 10.0.2, 11.0.2 or 9.4.39.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-28163 being exploited?

There is no known exploitation of CVE-2021-28163 in the wild and no public exploit code.

All Eclipse Jetty vulnerabilities

Sources

Also known as BIT-solr-2021-28163, DEBIAN-CVE-2021-28163, GHSA-j6qj-j888-vvgq, UBUNTU-CVE-2021-28163.

Is CVE-2021-28163 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free