# CVE-2024-21684: Open redirect in Bitbucket Data Center

> An unauthenticated attacker can redirect users to arbitrary sites after login, potentially facilitating phishing or further exploitation in Bitbucket Data Center.

- **Severity:** Low 3.1 (`CVSS:3.0/AV:N/AC:H/PR:N/UI:R/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:** A user has to click or open something
- **Fix available:** No
- **Published:** 24 Jul 2024
- **Updated:** 5 Nov 2024
- **Also known as:** GHSA-gg9v-4hff-mc2m

## What is CVE-2024-21684?

CVE-2024-21684 is a low-severity vulnerability in Atlassian Bitbucket Data Center, published on 24 Jul 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

There is a low severity open redirect vulnerability within affected versions of Bitbucket Data Center. Versions of Bitbucket DC from 8.0.0 to 8.9.12 and 8.19.0 to 8.19.1 are affected by this vulnerability. It is patched in 8.9.13 and 8.19.2.

This open redirect vulnerability, with a CVSS Score of 3.1 and a CVSS Vector of CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N, allows an unauthenticated attacker to redirect a victim user upon login to Bitbucket Data Center to any arbitrary site which can be utilized for further exploitation which has low impact to confidentiality, no impact to integrity, no impact to availability, and requires user interaction.

Atlassian recommends that Bitbucket Data Center customers upgrade to the version. If you are unable to do so, upgrade your instance to one of the  supported fixed versions.

Weakness: CWE-601 (URL Redirection to Untrusted Site)

## Which versions are affected by CVE-2024-21684?

It affects 1 product.


Products: Atlassian Bitbucket Data Center.

## How do I fix CVE-2024-21684?

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

## Is CVE-2024-21684 being exploited?

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

## Other vulnerabilities in Atlassian Bitbucket Data Center

- [CVE-2022-26133](https://insights.sbomify.com/CVE-2022-26133/): Deserialization in Bitbucket Data Center (critical 9.8)
- [CVE-2023-22513](https://insights.sbomify.com/CVE-2023-22513/): Code injection in Bitbucket Data Center (high 8.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-21684 and fix it if it is affected.

What it is: CVE-2024-21684 is a low-severity vulnerability in Atlassian Bitbucket Data Center, published on 24 Jul 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2024-21684 in the wild and no public exploit code.

Affected product: Atlassian Bitbucket Data Center. 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-2024-21684/ (Markdown: https://insights.sbomify.com/CVE-2024-21684/index.md)
```

## Sources

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

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