Read the docs
TI-2026-71766 Aliases CVE-2026-54697

Integer overflow in ConnectBot SSH DER private-key parsing

Priority LOW 28CWE-190Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Active
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-190 and the CVSS impact.

Summary

ConnectBot SSH Client Library before 0.3.1 accepts excessively long DER length octets in DerReader.readLength() and accumulates them into an Int (CWE-190). Primitive readers also allocate arrays without checking the declared size against the remaining input (CWE-789). An application or user that loads an attacker-provided private-key file can trigger integer wraparound, excessive allocation or an uncaught OutOfMemoryError. No confidentiality or integrity impact has been demonstrated.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00125 2nd percentileScored 2026-11-07
Fix Fixed cbssh (connectbot): 0.3.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
connectbotcbsshbefore 0.3.10.3.1Patch availableCNA
—org.connectbot.sshlib:sshlib (Maven)up to 0.3.0—No fix listedGHSA-vc8p-8pxg-rfwg
  • cbssh Vendorconnectbot Affected before 0.3.1 Fixed in 0.3.1 Patch available CNA
  • org.connectbot.sshlib:sshlib (Maven) Vendor— Affected up to 0.3.0 Fixed in — No fix listed GHSA-vc8p-8pxg-rfwg

Remediation

Upgrade cbssh to version 0.3.1, which fixes this issue. The sources list no fixed version for org.connectbot.sshlib:sshlib.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

  • Fix · CNA cbssh (connectbot) Fixed in 0.3.1

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-13 Threatist record created from CVE-2026-54697
  2. 2026-10-13 CISA SSVC decision points changed
  3. 2026-10-13 Priority changed: MEDIUM → LOW
  4. 2026-11-06 Affected versions changed · Red Hat
  5. 2026-11-06 CVSS score added · Red Hat

References

  • TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
  • TI-2026-71767 ConnectBot SSH library allows excessive memory allocation CVSS 4.0MEDIUM 6.9

Sources