---
id: CVE-2026-54700
title: >-
  ConnectBot SSH Client Library is written in Kotlin with Kaitai Struct and
  KStateMachine
summary: >-
  ConnectBot SSH Client Library is written in Kotlin with Kaitai Struct and
  KStateMachine. Prior to 0.3.1, the SSH protocol parser trusts
  attacker-controlled inner byte lengths and element counts without verifying
  that they fit in the cont…
severity: none
cwe:
  - CWE-20
  - CWE-789
published: '2026-10-13'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T16:17:21.560'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-54700'
references:
  - url: >-
      https://github.com/connectbot/cbssh/commit/a08421fbe7cf8b72fa60fb8b2f98fb465dc43fd9
    label: security-advisories@github.com
  - url: 'https://github.com/connectbot/cbssh/pull/194'
    label: security-advisories@github.com
  - url: 'https://github.com/connectbot/cbssh/releases/tag/v0.3.1'
    label: security-advisories@github.com
  - url: >-
      https://github.com/connectbot/cbssh/security/advisories/GHSA-ch3q-cw5r-f4hg
    label: security-advisories@github.com
tags:
  - nvd
ingestedAt: '2026-10-13T16:35:46.741Z'
---

## Overview

ConnectBot SSH Client Library is written in Kotlin with Kaitai Struct and KStateMachine. Prior to 0.3.1, the SSH protocol parser trusts attacker-controlled inner byte lengths and element counts without verifying that they fit in the containing packet. A malicious or compromised SSH server can return a small malformed packet whose oversized declarations cause the Kaitai Struct Java runtime to attempt excessive allocation or repeated parsing before detecting truncated input. The general transport path requires a client connection but no authentication or optional feature; malformed SSH-agent messages additionally require SSH agent forwarding. The issue can raise an uncaught OutOfMemoryError and terminate the application process, with no demonstrated confidentiality or integrity impact. This issue is fixed in version 0.3.1.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
