# CVE-2024-37051: Information disclosure in Aqua

> JetBrains IDEs may expose GitHub access tokens to third-party sites, allowing attackers to read data or take over accounts.

- **Severity:** Critical 9.3 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/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:** 10 Jun 2024
- **Updated:** 13 Feb 2025
- **Also known as:** GHSA-vfg9-hgrq-rjhq

## What is CVE-2024-37051?

CVE-2024-37051 is a critical vulnerability in Jetbrains Intellij Idea, published on 10 Jun 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

GitHub access token could be exposed to third-party sites in JetBrains IDEs after version 2023.1 and less than: IntelliJ IDEA 2023.1.7, 2023.2.7, 2023.3.7, 2024.1.3, 2024.2 EAP3; Aqua 2024.1.2; CLion 2023.1.7, 2023.2.4, 2023.3.5, 2024.1.3, 2024.2 EAP2; DataGrip 2023.1.3, 2023.2.4, 2023.3.5, 2024.1.4; DataSpell 2023.1.6, 2023.2.7, 2023.3.6, 2024.1.2, 2024.2 EAP1; GoLand 2023.1.6, 2023.2.7, 2023.3.7, 2024.1.3, 2024.2 EAP3; MPS 2023.2.1, 2023.3.1, 2024.1 EAP2; PhpStorm 2023.1.6, 2023.2.6, 2023.3.7, 2024.1.3, 2024.2 EAP3; PyCharm 2023.1.6, 2023.2.7, 2023.3.6, 2024.1.3, 2024.2 EAP2; Rider 2023.1.7, 2023.2.5, 2023.3.6, 2024.1.3; RubyMine 2023.1.7, 2023.2.7, 2023.3.7, 2024.1.3, 2024.2 EAP4; RustRover 2024.1.1; WebStorm 2023.1.6, 2023.2.7, 2023.3.7, 2024.1.4

Weakness: CWE-522 (Insufficiently Protected Credentials)

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

It affects 13 products.


Products: Jetbrains Aqua, Jetbrains Clion, Jetbrains Datagrip, Jetbrains Dataspell, Jetbrains Goland, Jetbrains Intellij Idea, Jetbrains Mps, Jetbrains Phpstorm, Jetbrains Pycharm, Jetbrains Rider, Jetbrains Rubymine, Jetbrains Rustrover, Jetbrains Webstorm.

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

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

## Is CVE-2024-37051 being exploited?

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

Public exploit code:

- CVE-2024-37051 poc and exploit (github_poc): https://github.com/LeadroyaL/CVE-2024-37051-EXP
- Users of JetBrains IDEs at risk of GitHub access token compromise (CVE-2024-37051) (github_poc): https://github.com/mrblackstar26/CVE-2024-37051

## Fix prompt for AI coding agents

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

What it is: CVE-2024-37051 is a critical vulnerability in Jetbrains Intellij Idea, published on 10 Jun 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: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-37051 exists.

Affected product: Jetbrains Intellij Idea. 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-37051/ (Markdown: https://insights.sbomify.com/CVE-2024-37051/index.md)
```

## Sources

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

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