# CVE-2023-5384: Infinispan: credentials returned from configuration as clear text

> Attackers can read clear-text credentials from serialized cache configurations in Infinispan, exposing sensitive database and remote store passwords.

- **Severity:** High 7.2 (`CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 18 Dec 2023
- **Updated:** 20 Nov 2025
- **Also known as:** GHSA-gg57-587f-h5v6

## What is CVE-2023-5384?

CVE-2023-5384 is a high-severity vulnerability in Red Hat Data Grid 8.4.6, published on 18 Dec 2023. An attacker needs administrator access to exploit it, with no action from the victim.

### Official description

A flaw was found in Infinispan. When serializing the configuration for a cache to XML/JSON/YAML, which contains credentials (JDBC store with connection pooling, remote store), the credentials are returned in clear text as part of the configuration.

Weakness: CWE-312 (Cleartext Storage of Sensitive Information)

## Which versions are affected by CVE-2023-5384?

32 open source packages ship an affected version, including org.infinispan:infinispan-cachestore-jdbc, org.infinispan:infinispan-cachestore-jdbc-common and org.infinispan:infinispan-cachestore-remote. It affects 3 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.infinispan:infinispan-cachestore-jdbc` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-cachestore-jdbc` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-cachestore-jdbc` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-cachestore-jdbc` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-cachestore-jdbc-common` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-cachestore-jdbc-common` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-cachestore-jdbc-common` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-cachestore-jdbc-common` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-cachestore-remote` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-cachestore-remote` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-cachestore-remote` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-cachestore-remote` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-cachestore-sql` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-cachestore-sql` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-cachestore-sql` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-cachestore-sql` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-client-hotrod` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-client-hotrod` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-client-hotrod` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-client-hotrod` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-commons` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-commons` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-commons` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-commons` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-core` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-core` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-core` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-core` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-hotrod` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-hotrod` | Maven | All versions | 14.0.25.Final |
| `org.infinispan:infinispan-hotrod` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |
| `org.infinispan:infinispan-hotrod` | Maven | From 15.0.0.Dev01 | 15.0.0.Dev07 |

Products: Infinispan Infinispan, Redhat Data Grid, Redhat Jboss Data Grid.

## How do I fix CVE-2023-5384?

Upgrade org.infinispan:infinispan-cachestore-jdbc to a fixed version for your release line: 14.0.25.Final or 15.0.0.Dev07.

## Is CVE-2023-5384 being exploited?

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

## Other vulnerabilities in Red Hat Data Grid 8.4.6

- [CVE-2018-1131](https://insights.sbomify.com/CVE-2018-1131/): Deserialization of Untrusted Data in Infinispan (high 8.8)
- [CVE-2017-15089](https://insights.sbomify.com/CVE-2017-15089/): Deserialization of Untrusted Data in Infinispan (high 8.8)
- [CVE-2019-10174](https://insights.sbomify.com/CVE-2019-10174/): Use of Externally-Controlled Input to Select Classes or Code in Infinispan (high 7.5)
- [CVE-2023-3628](https://insights.sbomify.com/CVE-2023-3628/): Infispan: rest bulk ops don't check permissions (medium 6.5)
- [CVE-2020-25711](https://insights.sbomify.com/CVE-2020-25711/): Improper Access Control in infinispan-server-runtime (medium 6.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-5384 and fix it if it is affected.

What it is: CVE-2023-5384 is a high-severity vulnerability in Red Hat Data Grid 8.4.6, published on 18 Dec 2023. An attacker needs administrator access to exploit it, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-5384 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.infinispan:infinispan-cachestore-jdbc (Maven): affected all versions; fixed in 14.0.25.Final
- org.infinispan:infinispan-cachestore-jdbc (Maven): affected all versions; fixed in 14.0.25.Final
- org.infinispan:infinispan-cachestore-jdbc (Maven): affected from 15.0.0.Dev01; fixed in 15.0.0.Dev07
- org.infinispan:infinispan-cachestore-jdbc (Maven): affected from 15.0.0.Dev01; fixed in 15.0.0.Dev07
- org.infinispan:infinispan-cachestore-jdbc-common (Maven): affected all versions; fixed in 14.0.25.Final
- org.infinispan:infinispan-cachestore-jdbc-common (Maven): affected all versions; fixed in 14.0.25.Final
- org.infinispan:infinispan-cachestore-jdbc-common (Maven): affected from 15.0.0.Dev01; fixed in 15.0.0.Dev07
- org.infinispan:infinispan-cachestore-jdbc-common (Maven): affected from 15.0.0.Dev01; fixed in 15.0.0.Dev07
- org.infinispan:infinispan-cachestore-remote (Maven): affected all versions; fixed in 14.0.25.Final
- org.infinispan:infinispan-cachestore-remote (Maven): affected all versions; fixed in 14.0.25.Final
- org.infinispan:infinispan-cachestore-remote (Maven): affected from 15.0.0.Dev01; fixed in 15.0.0.Dev07
- org.infinispan:infinispan-cachestore-remote (Maven): affected from 15.0.0.Dev01; fixed in 15.0.0.Dev07

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

## Sources

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

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