Skip to main content

CVE-2026-54697: CWE-190: Integer Overflow or Wraparound in connectbot cbssh

0
Medium
VulnerabilityCVE-2026-54697cvecve-2026-54697cwe-190cwe-789
Published: 10/13/2026 (10/13/2026, 15:54:48 UTC)
Source: CVE Database V5
Vendor/Project: connectbot
Product: cbssh

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.

CVSS v4.0

Score 6.7medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

connectbot

cbssh

Affected versions
<0.3.1
GitHub Actionsmore threats →ai
connectbot/cbssh
pkg:github/connectbot/cbssh
Affected versions
<0.3.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/13/2026, 16:19:07 UTC

Technical Analysis

The ConnectBot SSH Client Library (cbssh) versions before 0.3.1 contain a vulnerability in the DER length parsing logic within DerReader.readLength(). This function accepts excessive long-form DER length octets and accumulates them into an integer without proper bounds checking. Consequently, when an application or user loads a maliciously crafted private-key file through functions like SshClient.authenticatePublicKey(), SshKeys.decodePemPrivateKey(), SshSigning.sign(), or SshSigning.getPublicKey(), it can trigger an integer wraparound. This leads to excessive memory allocation requests and may cause an uncaught OutOfMemoryError. The vulnerability does not impact SSH server host keys or agent-forwarding messages, and no weakened keys or confidentiality/integrity impacts have been demonstrated. The vulnerability is resolved in version 0.3.1.

Potential Impact

An attacker who can supply a crafted private-key file to the affected functions may cause the application to allocate excessive memory or crash due to an uncaught OutOfMemoryError. There is no demonstrated impact on confidentiality or integrity, and no weakened keys are produced. The vulnerability requires local or limited access (local vector) and user interaction. The overall impact is medium severity.

Mitigation Recommendations

Upgrade to ConnectBot SSH Client Library version 0.3.1 or later, where this issue is fixed. No other mitigation is required as the vulnerability is resolved in the official fix.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-15T22:58:06.562Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ace567b2cdf04f65683952a

Added to database: 10/13/2026, 16:04:11 UTC

Last enriched: 10/13/2026, 16:19:07 UTC

Last updated: 10/13/2026, 18:57:33 UTC

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses