CVE-2026-45581: fabric-chaincode-java: TLS Private Key Password Disclosed in INFO Startup Logs in Chaincode-as-a-Service Mode
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.
Published May 19, 2026 · Updated Jun 9, 2026
Affected packages
org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim
- Ecosystem
- Maven
- Affected
- >= 2.3.1, <= 2.5.9
- Fixed in
- 2.5.10
- Check
mvn dependency:tree -Dincludes=org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Recommendation
- Update to the fixed version of the chaincode runtime.
- Redact or remove existing logs that contain the TLS private key password.
- Change the TLS private key password.
Mitigation
Impacted deployments can mitigate the vulnerability by restricting the logging level to WARNING or higher so that INFO level logs are not written.
Credited to lalalala5678, bestbeforetoday.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
