Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
connectbot cbssh
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

ConnectBot SSH 客户端库采用 Kotlin 编写,并使用了 Kaitai Struct 和 KStateMachine。在版本 0.3.1 之前,DerReader.readLength() 方法接受过长的 DER 长度编码字节,并将其累加为整型(Int)。同时,原始类型读取器在分配数组时未检查所声明的大小与剩余输入数据是否匹配。 如果应用或用户通过 SshClient.authenticatePublicKey()、SshKeys.decodePemPrivateKey()、SshSigning.s

CVSS 6.7 · Medium

Possible ATT&CK Techniques 1 AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 1

VendorProduct Version RangeStatus
connectbot cbssh < 0.3.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-54697

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
ConnectBot SSH: Excessive allocation and integer overflow in DER private-key parsing
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
整数溢出或超界折返
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
connectbot cbssh < 0.3.1 -

II. Public POCs for CVE-2026-54697

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-54697

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-54697 (1)

Vendor Advisories for CVE-2026-54697 (1)

Vendor Pages for CVE-2026-54697 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-54697

No comments yet


Leave a comment