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.
Published: 2026-10-13
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via OutOfMemoryError
Action: Patch
AI Analysis

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.

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

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

Sat, 17 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 13 Oct 2026 16:00:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-16T22:06:09.220Z

Reserved: 2026-06-15T22:58:06.562Z

Link: CVE-2026-54700

cve-icon Vulnrichment

Updated: 2026-10-16T22:06:03.136Z

cve-icon NVD

Status : Deferred

Published: 2026-10-13T16:17:21.560

Modified: 2026-10-16T23:17:02.113

Link: CVE-2026-54700

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T19:45:19Z

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-789

    Memory Allocation with Excessive Size Value