Vulnerability Description
ConnectBot SSH Client Library is written in Kotlin with Kaitai Struct and KStateMachine. Prior to 0.3.1, DerReader.readLength() accepts excessive long-form DER length octets, accumulates them into an Int, and primitive readers allocate arrays without checking the declared size against the remaining input. An application or user that loads an attacker-provided private-key file through SshClient.authenticatePublicKey(), SshKeys.decodePemPrivateKey(), SshSigning.sign(), or SshSigning.getPublicKey() can trigger integer wraparound, excessive allocation, or an uncaught OutOfMemoryError. SSH server host keys and agent-forwarding messages do not use this application-supplied private-key input path. No usable weakened key and no confidentiality or integrity impact have been demonstrated. This issue is fixed in version 0.3.1.
Related Weaknesses (CWE)
References
- https://github.com/connectbot/cbssh/commit/2bb917517bec0df229a02ca768d6eae84be72
- https://github.com/connectbot/cbssh/releases/tag/v0.3.1
- https://github.com/connectbot/cbssh/security/advisories/GHSA-vc8p-8pxg-rfwg
FAQ
What is CVE-2026-54697?
CVE-2026-54697 is a documented vulnerability. ConnectBot SSH Client Library is written in Kotlin with Kaitai Struct and KStateMachine. Prior to 0.3.1, DerReader.readLength() accepts excessive long-form DER length octets, accumulates them into an ...
How severe is CVE-2026-54697?
CVSS scoring is not yet available for CVE-2026-54697. Check NVD for updates.
Is there a patch for CVE-2026-54697?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.