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

- Severity: Medium 6.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-06-12T21:02:15.000Z
- Modified: 2026-10-16T20:04:29.760Z
- Also known as: GHSA-vc8p-8pxg-rfwg
- Weaknesses: CWE-190, CWE-789
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- connectbot cbssh: < 0.3.1
- org.connectbot.sshlib:sshlib (Maven): up to 0.3.0

## Every score

- GitHub_M: CVSS:4.0 6.7 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/connectbot/cbssh/security/advisories/GHSA-vc8p-8pxg-rfwg> (web)
- <https://github.com/connectbot/cbssh/commit/2bb917517bec0df229a02ca768d6eae84be72df0>
- <https://github.com/connectbot/cbssh/releases/tag/v0.3.1> (web)
- <https://github.com/connectbot/cbssh> (package)

## Sources

- CVE List: [CVE-2026-54697](https://www.cve.org/CVERecord?id=CVE-2026-54697), CVE Terms of Use, modified 2026-10-13
- GitHub Advisory Database: [GHSA-vc8p-8pxg-rfwg](https://github.com/advisories/GHSA-vc8p-8pxg-rfwg), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-54697](https://nvd.nist.gov/vuln/detail/CVE-2026-54697), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-54697 · Whole record: https://cve.day/CVE-2026-54697.json · Rebuilt by cve.day 2026-11-25T22:59:43.846Z
