CVE-2026-54700

ConnectBot SSH: Unbounded SSH field lengths can cause excessive memory allocation

Published Oct 13, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

ConnectBot SSH Client Library processes SSH packets using a Kaitai Struct parser that accepts attacker-controlled lengths and element counts without verifying that they fit within the outer packet. An attacker can send a small malformed packet whose length declarations are in fact oversized, causing the Java runtime to attempt excessive memory allocation or repeated parsing. This leads to an uncaught OutOfMemoryError and terminates the client application, resulting in a denial‑of‑service. No confidentiality or integrity compromise is demonstrated.

Affected Systems

The vulnerability affects the ConnectBot SSH Client Library (connectbot:cbssh). All releases prior to version 0.3.1 are susceptible; version 0.3.1 and later include the fix.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The vulnerability requires a client connection to a malicious or compromised SSH server; for malformed SSH‑agent messages the attacker also needs to enable agent forwarding. An adversary who can force such a connection can trigger an uncaught OutOfMemoryError that terminates the client application, resulting in a denial‑of‑service. There is no demonstrated confidentiality or integrity impact, and no evidence of active exploitation is reported.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to ConnectBot SSH Client Library version 0.3.1 or later
  • Apply any subsequent patches from the ConnectBot project
  • If upgrading is not immediately possible, restrict the client to trusted SSH servers and disable SSH agent forwarding for the vulnerable browsing context

Generated by OpenCVE AI on October 13, 2026 at 19:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-ch3q-cw5r-f4hg ConnectBot SSH Client Library: Unbounded SSH field lengths can cause excessive memory allocation
History
Type Values Removed Values Added
First Time appeared Connectbot
Connectbot cbssh
Vendors & Products Connectbot
Connectbot cbssh
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title ConnectBot SSH: Unbounded SSH field lengths can cause excessive memory allocation
Weaknesses CWE-20
CWE-789
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-789

    Memory Allocation with Excessive Size Value

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 16, 2026, 10:06 PM
Reserved
Jun 15, 2026, 10:58 PM
Status
Deferred
Published
Oct 13, 2026, 4:17 PM
Modified
Oct 16, 2026, 11:17 PM