Skip to main content
← All vulnerabilities
CVE-2026-54697GHSA-VC8P-8PXG-RFWG

ConnectBot SSH: Excessive allocation and integer overflow in DER private-key parsing

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • connectbot cbssh

    fixed in 0.3.1

  • org.connectbot.sshlib:sshlibMaven

    through 0.3.0

References 3

GitHub · connectbot/cbssh