CVE-2021-28163 — jetty-deploy
LOWCVE-2021-28163 is a low-severity (CVSS 2.7) Information Exposure vulnerability in org.eclipse.jetty:jetty-deploy. 1 public exploit reference exists, so weaponization risk is real. A fix is available for org.eclipse.jetty:jetty-deploy — see the affected versions and patch details below.
Directory exposure in jetty
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2021-28163 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,738 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
org.eclipse.jetty:jetty-deploy☕org.eclipse.jetty:jetty-deploy☕org.eclipse.jetty:jetty-deployReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Impact
If the ${jetty.base} directory or the ${jetty.base}/webapps directory is a symlink (soft link in Linux), the contents of the ${jetty.base}/webapps directory may be deployed as a static web application, exposing the content of the directory for download.
For example, the problem manifests in the following ${jetty.base}:
demo-base/
├── etc
├── lib
├── resources
├── start.d
├── deploy
│ └── async-rest.war
└── webapps -> deploy
Workarounds
Do not use a symlink
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.eclipse.jetty:jetty-deploy | ≥ 9.4.32&&< 9.4.39 | 9.4.39org.eclipse.jetty:jetty-deploy:9.4.39 |
| ☕Maven | org.eclipse.jetty:jetty-deploy | ≥ 10.0.0&&< 10.0.2 | 10.0.2org.eclipse.jetty:jetty-deploy:10.0.2 |
| ☕Maven | org.eclipse.jetty:jetty-deploy | ≥ 11.0.0&&< 11.0.2 | 11.0.2org.eclipse.jetty:jetty-deploy:11.0.2 |
Affected Products
igniteapachesolrapachejettyeclipsefedorafedoraprojectcloud managernetappe-series performance analyzernetappResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.eclipse.jetty:jetty-deploy, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.eclipse.jetty:jetty-deploy to 9.4.39 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-28163 is resolved across your whole dependency graph.
Workarounds
Assume what was exposed is already known: rotate any credential, token or key that the affected component could return, restrict the endpoint to callers that genuinely need it, and strip sensitive fields from responses and error output at the boundary rather than relying on the client not to read them.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
In OpenShift Container Platform (OCP), the hive/presto/hadoop components that comprise the OCP metering stack, ship the vulnerable version of jetty. Since the release of OCP 4.6, the metering product has been deprecated [1], hence the affected components are marked as wontfix. This may be fixed in the future. [1]…
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat AMQ 7.8.2 | jetty-server | RHSA-2021:2689 |
| Red Hat AMQ 7.9.0 | see advisory | RHSA-2021:3700 |
| Red Hat AMQ Streams 1.6.4 | see advisory | RHSA-2021:1560 |
| Red Hat AMQ Streams 1.8.0 | jetty-server | RHSA-2021:3225 |
| Red Hat Developer Tools | rh-eclipse-jetty-0:9.4.40-1.1.el7_9 | RHSA-2021:1509 |
| Red Hat Fuse 7.10 | jetty | RHSA-2021:5134 |
| Red Hat Integration Camel Quarkus 2 | see advisory | RHSA-2021:4767 |
| Red Hat OpenShift Container Platform 4.7 | jenkins-0:2.277.3.1620393611-1.el8 | RHSA-2021:1551 |
Frequently Asked Questions
Is CVE-2021-28163 in your dependencies?
Find it across Maven, including transitive dependencies.