# CVE-2021-34429: Encoded URIs can access WEB-INF directory in Eclipse Jetty

> Attackers can craft encoded URIs to access WEB-INF content and bypass security constraints in Eclipse Jetty.

- **Severity:** Medium 5.3 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 15 Jul 2021
- **Updated:** 4 Aug 2024
- **Also known as:** DEBIAN-CVE-2021-34429, GHSA-vjv5-gp2w-65vm, SUSE-SU-2021:2838-1, UBUNTU-CVE-2021-34429, openSUSE-SU-2021:2838-1

## What is CVE-2021-34429?

CVE-2021-34429 is a medium-severity path traversal vulnerability in Eclipse Jetty, published on 15 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

For Eclipse Jetty versions 9.4.37-9.4.42, 10.0.1-10.0.5 & 11.0.1-11.0.5, URIs can be crafted using some encoded characters to access the content of the WEB-INF directory and/or bypass some security constraints. This is a variation of the vulnerability reported in CVE-2021-28164/GHSA-v7ff-8wcx-gmc5.

Weakness: CWE-551 (Incorrect Behavior Order: Authorization Before Parsing and Canonicalization), CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor)

## Which versions are affected by CVE-2021-34429?

6 open source packages ship an affected version, including org.eclipse.jetty:jetty-webapp. It affects 18 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.eclipse.jetty:jetty-webapp` | Maven | From 10.0.1 | 10.0.6 |
| `org.eclipse.jetty:jetty-webapp` | Maven | From 10.0.1 | 10.0.6 |
| `org.eclipse.jetty:jetty-webapp` | Maven | From 11.0.1 | 11.0.6 |
| `org.eclipse.jetty:jetty-webapp` | Maven | From 11.0.1 | 11.0.6 |
| `org.eclipse.jetty:jetty-webapp` | Maven | From 9.4.37 | 9.4.43 |
| `org.eclipse.jetty:jetty-webapp` | Maven | From 9.4.37 | 9.4.43 |
| `jetty-minimal` | SUSE:Linux Enterprise Module for Development Tools 15 SP2 | All versions | 9.4.43-3.12.2 |
| `jetty-minimal` | SUSE:Linux Enterprise Module for Development Tools 15 SP3 | All versions | 9.4.43-3.12.2 |
| `jetty-minimal` | openSUSE:Leap 15.3 | All versions | 9.4.43-3.12.2 |
| `jetty-websocket` | openSUSE:Leap 15.3 | All versions | 9.4.43-3.12.2 |

Products: Eclipse Jetty, Netapp E-Series Santricity Os Controller, Netapp E-Series Santricity Web Services, Netapp Element Plug-in for Vcenter Server, Netapp Hci Management Node, Netapp Snap Creator Framework, Netapp Snapcenter Plug-In, Netapp Solidfire, Oracle Autovue for Agile Product Lifecycle Management, Oracle Communications Cloud Native Core Binding Support Function, Oracle Communications Cloud Native Core Security Edge Protection Proxy, Oracle Communications Cloud Native Core Service Communication Proxy, Oracle Communications Cloud Native Core Unified Data Repository, Oracle Communications Diameter Signaling Router, Oracle Financial Services Crime and Compliance Management Studio, Oracle Rest Data Services, Oracle Retail Eftlink, Oracle Stream Analytics.

## How do I fix CVE-2021-34429?

Upgrade org.eclipse.jetty:jetty-webapp to a fixed version for your release line: 10.0.6, 11.0.6 or 9.4.43.

## Is CVE-2021-34429 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-34429 exists.

Public exploit code:

- POC for CVE-2021-34429 - Eclipse Jetty 11.0.5 Sensitive File Disclosure (github_poc): https://github.com/ColdFusionX/CVE-2021-34429
- Jetty WEB-INF File Disclosure (metasploit)
- Eclipse Jetty 11.0.5 - Sensitive File Disclosure (exploitdb)
- Eclipse Jetty - Information Disclosure (nuclei): http/cves/2021/CVE-2021-34429.yaml

## Other vulnerabilities in Eclipse Jetty

- [CVE-2016-4800](https://insights.sbomify.com/CVE-2016-4800/): Jetty contains an alias issue that could allow unauthenticated remote code execution due to specially crafted request (critical 9.8)
- [CVE-2019-17638](https://insights.sbomify.com/CVE-2019-17638/): Operation on a Resource after Expiration or Release in Jetty Server (critical 9.4)
- [CVE-2018-12538](https://insights.sbomify.com/CVE-2018-12538/): Access and integrity issue within Eclipse Jetty (high 8.8)
- [CVE-2026-10050](https://insights.sbomify.com/CVE-2026-10050/): Digest authentication lossy encoding (high 8.7)
- [CVE-2025-5115](https://insights.sbomify.com/CVE-2025-5115/): MadeYouReset HTTP/2 vulnerability (high 7.7)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-34429 and fix it if it is affected.

What it is: CVE-2021-34429 is a medium-severity path traversal vulnerability in Eclipse Jetty, published on 15 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-34429 exists.

Affected packages and fixed versions:
- org.eclipse.jetty:jetty-webapp (Maven): affected from 10.0.1; fixed in 10.0.6
- org.eclipse.jetty:jetty-webapp (Maven): affected from 10.0.1; fixed in 10.0.6
- org.eclipse.jetty:jetty-webapp (Maven): affected from 11.0.1; fixed in 11.0.6
- org.eclipse.jetty:jetty-webapp (Maven): affected from 11.0.1; fixed in 11.0.6
- org.eclipse.jetty:jetty-webapp (Maven): affected from 9.4.37; fixed in 9.4.43
- org.eclipse.jetty:jetty-webapp (Maven): affected from 9.4.37; fixed in 9.4.43

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2021-34429/ (Markdown: https://insights.sbomify.com/CVE-2021-34429/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2021-34429
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2021-34429
- OSV: https://osv.dev/vulnerability/CVE-2021-34429

---
From sbomify Insights: https://insights.sbomify.com/CVE-2021-34429/
Summaries are generated and may contain mistakes; the official description above is the record.
