Advisories for Maven/Org.connectbot.sshlib/Sshlib package

2026

ConnectBot SSH Client Library: Unbounded SSH field lengths can cause excessive memory allocation

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 …

ConnectBot SSH Client Library: Excessive allocation and integer overflow in DER private-key parsing

The DER parser used for application-supplied private keys did not safely validate encoded length values before converting them to Int values or allocating arrays. A malformed private-key file could encode a length that overflowed or wrapped around, or request an allocation much larger than the available input. This could cause parsing errors or an uncaught OutOfMemoryError, potentially terminating the application process.