# CVE-2024-20945: Information disclosure in Java SE JDK and JRE

> A local attacker with low privileges can exploit a vulnerability in Oracle Java SE to gain unauthorized access to critical data.

- **Severity:** Medium 4.7 (`CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 17 Feb 2024
- **Updated:** 4 Nov 2025
- **Also known as:** BELL-CVE-2024-20945, BIT-java-2024-20945, BIT-java-min-2024-20945, BIT-jre-2024-20945, CLEANSTART-2026-ND32244, CLEANSTART-2026-XS18614, DEBIAN-CVE-2024-20945, GHSA-qj64-r5h2-w6f9, MINI-3c87-v73q-2jgc, MINI-3hqc-75x3-7vxq, MINI-735p-5xwh-p2gm, MINI-7g65-mvw6-p35m, MINI-7wv3-hwpx-h73w, MINI-83rc-wc56-j2rj, MINI-9m97-c4cx-2fq3, MINI-c9gg-h29x-vfc8, MINI-m24h-8p7m-qggr, MINI-xqw6-9g5f-mf2v, UBUNTU-CVE-2024-20945

## What is CVE-2024-20945?

CVE-2024-20945 is a medium-severity vulnerability in Oracle Graalvm, published on 17 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

Vulnerability in the Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition product of Oracle Java SE (component: Security).  Supported versions that are affected are Oracle Java SE: 8u391, 8u391-perf, 11.0.21, 17.0.9, 21.0.1; Oracle GraalVM for JDK: 17.0.9, 21.0.1; Oracle GraalVM Enterprise Edition: 20.3.12, 21.3.8 and  22.3.4. Difficult to exploit vulnerability allows low privileged attacker with logon to the infrastructure where Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition executes to compromise Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition.  Successful attacks of this vulnerability can result in  unauthorized access to critical data or complete access to all Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition accessible data. Note: This vulnerability can be exploited by using APIs in the specified Component, e.g., through a web service which supplies data to the APIs. This vulnerability also applies to Java deployments, typically in clients running sandboxed Java Web Start applications or sandboxed Java applets, that load and run untrusted code (e.g., code that comes from the internet) and rely on the Java sandbox for security. CVSS 3.1 Base Score 4.7 (Confidentiality impacts).  CVSS Vector: (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N).

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

3 open source packages ship an affected version, including java, java-min and jre. It affects 4 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `java` | Bitnami | All versions | 1.8.0, 8.0.401, 11.0.22, 17.0.10, 21.0.2 |
| `java-min` | Bitnami | All versions | 1.8.0, 8.0.401, 11.0.22, 17.0.10, 21.0.2 |
| `jre` | Bitnami | All versions | 1.8.0, 8.0.401, 11.0.22, 17.0.10, 21.0.2 |

Products: Oracle Graalvm, Oracle Graalvm for Jdk, Oracle Jdk, Oracle Jre.

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

Upgrade java to a fixed version for your release line: 1.8.0, 8.0.401, 11.0.22 or 17.0.10.

## Is CVE-2024-20945 being exploited?

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

## Other vulnerabilities in Oracle Graalvm

- [CVE-2025-50059](https://insights.sbomify.com/CVE-2025-50059/): Security feature bypass in Oracle GraalVM Enterprise Edition (high 8.6)
- [CVE-2021-32803](https://insights.sbomify.com/CVE-2021-32803/): Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning (high 8.2)
- [CVE-2021-32804](https://insights.sbomify.com/CVE-2021-32804/): Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization (high 8.2)
- [CVE-2025-30749](https://insights.sbomify.com/CVE-2025-30749/): Code injection in Oracle GraalVM Enterprise Edition (high 8.1)
- [CVE-2025-50106](https://insights.sbomify.com/CVE-2025-50106/): Code injection in Oracle GraalVM Enterprise Edition (high 8.1)

## Fix prompt for AI coding agents

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

What it is: CVE-2024-20945 is a medium-severity vulnerability in Oracle Graalvm, published on 17 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-20945 in the wild and no public exploit code.

Affected packages and fixed versions:
- java (Bitnami): affected all versions; fixed in 1.8.0, 8.0.401, 11.0.22, 17.0.10, 21.0.2
- java-min (Bitnami): affected all versions; fixed in 1.8.0, 8.0.401, 11.0.22, 17.0.10, 21.0.2
- jre (Bitnami): affected all versions; fixed in 1.8.0, 8.0.401, 11.0.22, 17.0.10, 21.0.2

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

## Sources

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

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