CVE-2026-45581
Received Received - Intake
TLS Private Key Password Exposure in fabric-chaincode-java

Publication date: 2026-06-08

Last updated on: 2026-06-08

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-08
Last Modified
2026-06-08
Generated
2026-06-09
AI Q&A
2026-06-08
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
hyperledger fabric-chaincode-shim From 2.3.1 (inc) to 2.5.10 (exc)
hyperledger fabric-chaincode-java From 2.3.1 (inc) to 2.5.10 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-532 The product writes sensitive information to a log file.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-45581 is a vulnerability in the fabric-chaincode-java library used by Hyperledger Fabric. When chaincode is deployed in chaincode-as-a-service mode with TLS enabled, the server logs at INFO level include the TLS private key password in plaintext. This means anyone who can access these logs can see the password.

If an attacker also obtains the TLS private key, they could impersonate the chaincode server, potentially compromising the security of the system.

The issue affects versions 2.3.1 through 2.5.9 and has been fixed in version 2.5.10.

Impact Analysis

This vulnerability can lead to the exposure of the TLS private key password through server logs, which compromises the confidentiality of sensitive credentials.

An attacker with access to these logs and the TLS private key could impersonate the chaincode server, potentially allowing unauthorized access or manipulation of blockchain transactions.

The impact is rated moderate with a CVSS score of 5.5, indicating a significant risk especially to confidentiality.

Detection Guidance

This vulnerability can be detected by inspecting the chaincode server logs for the presence of the TLS private key password in plaintext within INFO-level logs when running fabric-chaincode-java in chaincode-as-a-service mode with TLS enabled.

To detect this on your system, you can search the logs for keywords related to the TLS private key password. For example, you might use commands like:

  • grep -i 'password' /path/to/chaincode-server.log
  • grep -i 'tls' /path/to/chaincode-server.log | grep -i 'password'
  • journalctl -u chaincode-service | grep -i 'password'

These commands help identify if the TLS private key password is logged in plaintext, indicating the presence of the vulnerability.

Mitigation Strategies

Immediate mitigation steps include upgrading fabric-chaincode-java to version 2.5.10 or higher, where the vulnerability is patched.

Additionally, redact or securely delete existing logs that contain the TLS private key password to prevent unauthorized access.

Change the TLS private key password to invalidate any passwords that may have been exposed.

As a temporary measure, restrict the logging level to WARNING or higher to prevent INFO-level logs from being written, which contain the sensitive password.

Compliance Impact

The vulnerability exposes the TLS private key password in plaintext within INFO-level logs, which constitutes the insertion of sensitive information into log files (CWE-532). This exposure can lead to unauthorized access and impersonation of the chaincode server.

Such exposure of sensitive credentials in logs can negatively impact compliance with common standards and regulations like GDPR and HIPAA, which require protection of sensitive data and proper handling of credentials to prevent unauthorized access.

To mitigate compliance risks, it is recommended to upgrade to version 2.5.10 or higher, redact existing logs containing the password, change the TLS private key password, and restrict logging levels to WARNING or higher to avoid logging sensitive information.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-45581. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart