Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920291 - <net-libs/libssh-0.10.6: terrapin vulnerability
Summary: <net-libs/libssh-0.10.6: terrapin vulnerability
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
Whiteboard: A3 [glsa+]
Keywords: PullRequest
Depends on: 920726
Blocks: CVE-2023-48795
  Show dependency tree
Reported: 2023-12-18 23:44 UTC by Christopher Fore
Modified: 2024-01-21 11:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Fore 2023-12-18 23:44:32 UTC
CVE-2023-48795 (

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remote attackers to bypass integrity checks such that some packets are omitted (from the extension negotiation message), and a client and server may consequently end up with a connection for which some security features have been downgraded or disabled, aka a Terrapin attack. This occurs because the SSH Binary Packet Protocol (BPP), implemented by these extensions, mishandles the handshake phase and mishandles use of sequence numbers. For example, there is an effective attack against ChaCha20-Poly1305 (and CBC with Encrypt-then-MAC). The bypass occurs in and (if CBC is used) the MAC algorithms. This also affects Maverick Synergy Java SSH API before 3.1.0-SNAPSHOT, Dropbear through 2022.83, Ssh before 5.1.1 in Erlang/OTP, and PuTTY before 0.80; and there could be effects on Bitvise SSH through 9.31, AsyncSSH through 2.14.1, libssh through 0.10.5, and through 2023-12-17.
Comment 1 Larry the Git Cow gentoo-dev 2023-12-19 05:42:36 UTC
The bug has been referenced in the following commit(s):

commit 18f1b347bcee162d7fc7a405aa355ad1ba965b51
Author:     Christopher Fore <>
AuthorDate: 2023-12-19 00:17:54 +0000
Commit:     Sam James <>
CommitDate: 2023-12-19 05:31:05 +0000

    net-libs/libssh: add 0.10.6
    This addresses the Terrapin vulnerability
    Signed-off-by: Christopher Fore <>
    Signed-off-by: Sam James <>

 net-libs/libssh/Manifest             |   1 +
 net-libs/libssh/libssh-0.10.6.ebuild | 135 +++++++++++++++++++++++++++++++++++
 2 files changed, 136 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2023-12-28 02:22:13 UTC
The bug has been referenced in the following commit(s):

commit b5fd84fed4c7e7ddb236f13fb5044cc546ce7c6c
Author:     GLSAMaker <>
AuthorDate: 2023-12-28 02:21:11 +0000
Commit:     Sam James <>
CommitDate: 2023-12-28 02:22:08 +0000

    [ GLSA 202312-16 ] libssh: Multiple Vulnerabilities
    Signed-off-by: GLSAMaker <>
    Signed-off-by: Sam James <>

 glsa-202312-16.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2024-01-03 23:01:24 UTC
The bug has been referenced in the following commit(s):

commit e1565810cb6fde75c0271f52eaf08f28d1548b66
Author:     Andreas Sturmlechner <>
AuthorDate: 2024-01-03 22:28:41 +0000
Commit:     Andreas Sturmlechner <>
CommitDate: 2024-01-03 23:00:47 +0000

    net-libs/libssh: Cleanup vulnerable 0.10.5
    Signed-off-by: Andreas Sturmlechner <>

 net-libs/libssh/Manifest             |   1 -
 net-libs/libssh/libssh-0.10.5.ebuild | 135 -----------------------------------
 2 files changed, 136 deletions(-)
Comment 4 Andreas Sturmlechner gentoo-dev 2024-01-03 23:02:21 UTC
Cleanup done, kde proj out.