# CVE-2026-45581: fabric-chaincode-java: TLS Private Key Password Disclosed in INFO Startup Logs in Chaincode-as-a-Service Mode

> Attackers with log access can recover TLS private key passwords, potentially enabling chaincode server impersonation in Hyperledger Fabric Java deployments.

- **Severity:** Medium 5.5 (`CVSS:3.1/AV:L/AC:L/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:** 8 Jun 2026
- **Updated:** 9 Jun 2026
- **Also known as:** GHSA-wg5x-3g47-v38r

## What is CVE-2026-45581?

CVE-2026-45581 is a medium-severity vulnerability in hyperledger fabric-chaincode-java, published on 8 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

fabric-chaincode-java is a Java based implementation of Hyperledger Fabric chaincode shim APIs. From version 2.3.1 to before version 2.5.10, when chaincode is deployed in chaincode-as-a-service mode with TLS enabled, the chaincode server INFO level logging includes the TLS private key password in plaintext. An attacker with access to the chaincode server logs could recover the TLS private key password. If the attacker can also obtain the TLS private key, they could impersonate the chaincode server. This issue has been patched in version 2.5.10.

Weakness: CWE-532 (Insertion of Sensitive Information into Log File)

## Which versions are affected by CVE-2026-45581?

2 open source packages ship an affected version, including org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim` | Maven | From 2.3.1 | 2.5.10 |
| `org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim` | Maven | From 2.3.1 | 2.5.10 |

## How do I fix CVE-2026-45581?

Upgrade org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim to 2.5.10 or later.

## Is CVE-2026-45581 being exploited?

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

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-45581 and fix it if it is affected.

What it is: CVE-2026-45581 is a medium-severity vulnerability in hyperledger fabric-chaincode-java, published on 8 Jun 2026. 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-2026-45581 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim (Maven): affected from 2.3.1; fixed in 2.5.10
- org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim (Maven): affected from 2.3.1; fixed in 2.5.10

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

## Sources

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

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