# CVE-2021-34427: File upload in Eclipse BIRT

> Attackers can upload malicious JSP files via query parameters in Eclipse BIRT, leading to remote code execution on the server.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 25 Jun 2021
- **Updated:** 4 Aug 2024
- **Also known as:** GHSA-c7m8-c6v2-pxw4

## What is CVE-2021-34427?

CVE-2021-34427 is a critical vulnerability in The Eclipse Foundation Eclipse BIRT, published on 25 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

In Eclipse BIRT versions 4.8.0 and earlier, an attacker can use query parameters to create a JSP file which is accessible from remote (current BIRT viewer dir) to inject JSP code into the running instance.

Weakness: CWE-434 (Unrestricted Upload of File with Dangerous Type), CWE-20 (Improper Input Validation)

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

It affects 1 product.


Products: Eclipse Business Intelligence and Reporting Tools.

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

No fix has been published for CVE-2021-34427 yet. Limit exposure of the affected software until one is available.

## Is CVE-2021-34427 being exploited?

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

Public exploit code:

- Windows POC for CVE-2021-34427 affecting Birt Viewer (github_poc): https://github.com/rt1252/CVE-2021-34427
- Eclipse BIRT Viewer - Remote Code Execution (nuclei): http/cves/2021/CVE-2021-34427.yaml

## Other vulnerabilities in The Eclipse Foundation Eclipse BIRT

- [CVE-2023-0100](https://insights.sbomify.com/CVE-2023-0100/): Improper Input Validation In Eclipse BIRT (high 8.8)
- [CVE-2019-11776](https://insights.sbomify.com/CVE-2019-11776/): Cross-site scripting in Eclipse BIRT (medium 6.1)

## Fix prompt for AI coding agents

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

What it is: CVE-2021-34427 is a critical vulnerability in The Eclipse Foundation Eclipse BIRT, published on 25 Jun 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-34427 exists.

Affected product: The Eclipse Foundation Eclipse BIRT. No package-level version data is available, so check the vendor advisory linked from the reference page.

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-34427/ (Markdown: https://insights.sbomify.com/CVE-2021-34427/index.md)
```

## Sources

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

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