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

Published Oct 13, 2026
·
Updated

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.

Affected Software

1 affected component
ConnectBot SSH Client Library<0.3.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ConnectBot SSH Client Library to a version that resolves this vulnerability.

    Fixed in 0.3.1

Event History

Oct 13, 2026
CVE Published
via MITRE·03:54 PM
Data Sourced
via MITRE·03:54 PM
DescriptionWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications or users that load attacker-provided private-key files through SshClient.authenticatePublicKey(), SshKeys.decodePemPrivateKey(), SshSigning.sign(), or SshSigning.getPublicKey() are exposed. SSH server host keys and agent-forwarding messages do not use the affected input path.

2

What does an attacker need to exploit it?

The attacker needs to cause the application or user to load a crafted private-key file through one of the affected private-key APIs. The malformed DER length encoding can cause integer wraparound, excessive allocation, or an uncaught OutOfMemoryError.

3

What is the impact of successful exploitation?

The demonstrated impact is resource exhaustion or application failure from excessive allocation or an uncaught OutOfMemoryError. No usable weakened key or confidentiality or integrity impact has been demonstrated.

4

What should be done if the application processes untrusted private-key files?

Upgrade ConnectBot SSH Client Library to version 0.3.1. Until upgrading, do not pass attacker-provided private-key files to the affected authentication, decoding, signing, or public-key extraction APIs.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203