CVE-2026-54697
published medium CVSS 4.0 · 6.7ConnectBot SSH: Excessive allocation and integer overflow in DER private-key parsing
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| connectbot | — | cbssh< 0.3.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.7 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| connectbot | cbssh | < 0.3.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-190 CWE-190: Integer Overflow or Wraparound
- CWE-789 CWE-789: Memory Allocation with Excessive Size Value
References
3Provider assertions
2GitHub_M · cna
ConnectBot SSH: Excessive allocation and integer overflow in DER private-key parsing
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cf5ed9459b4c80b47e1c0f75c3706cb4be88043e998431622c7595779cc2f252
- Ingested
- 13 Oct 2026, 16:41:44 UTC
- Source record
- Official CVE record