Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.connectbot.sshlib/sshlib
  4. ›
  5. GHSA-ch3q-cw5r-f4hg

GHSA-ch3q-cw5r-f4hg: ConnectBot SSH Client Library: Unbounded SSH field lengths can cause excessive memory allocation

June 12, 2026

The SSH protocol parser trusted attacker-controlled length and count fields without first checking that the declared values fit within the containing packet.

When a client connects to a malicious or compromised SSH server, the server can send a small, malformed packet containing an inner field whose declared length is much larger than the packet itself. The Kaitai Struct Java runtime attempts to allocate a byte array using the declared length before it discovers that the input is truncated. A sufficiently large value can therefore cause excessive memory allocation or an uncaught OutOfMemoryError, potentially terminating the application process that uses the library.

Applications that enable SSH agent forwarding have an additional attack path: the connected server can send malformed agent protocol messages containing the same class of oversized inner length.

References

  • github.com/advisories/GHSA-ch3q-cw5r-f4hg
  • github.com/connectbot/cbssh/releases/tag/v0.3.1
  • github.com/connectbot/cbssh/security/advisories/GHSA-ch3q-cw5r-f4hg

Code Behaviors & Features

Detect and mitigate GHSA-ch3q-cw5r-f4hg with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.3.0

Solution

Unfortunately, there is no solution available yet.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-789: Memory Allocation with Excessive Size Value

Source file

maven/org.connectbot.sshlib/sshlib/GHSA-ch3q-cw5r-f4hg.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:24:21 +0000.