CVE catalog

CVE-2021-3634

libssh: CVE-2021-3634

[CVE catalog]

Severity
Low · CVSS 3.5CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
4.68% · Oct 25, 2026

A flaw has been found in libssh in versions prior to 0.9.6. The SSH protocol keeps track of two shared secrets during the lifetime of the session. One of them is called secret_hash and the other session_id. Initially, both of them are the same, but after key re-exchange, previous session_id is kept and used as an input to new secret_hash. Historically, both of these buffers had shared length variable, which worked as long as these buffers were same. But the key re-exchange operation can also change the key exchange method, which can be based on hash of different size, eventually creating "secret_hash" of different size than the session_id has. This becomes an issue when the session_id memory is zeroed or when it is used again during second key re-exchange.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibsshsid0.12.2-1fixed
Debianlibsshforky0.12.2-1fixed
Debianlibsshtrixie0.11.5-0+deb13u1fixed
Debianlibsshtrixie-security0.11.5-0+deb13u1fixed
Debianlibsshbookworm0.10.6-0+deb12u2fixed
Debianlibsshbookworm-security0.10.6-0+deb12u3fixed
Ubuntulibssh20.040.9.0-1ubuntu1vulnerable
Ubuntulibssh20.040.9.0-1ubuntu4vulnerable
Ubuntulibssh20.040.9.0-1ubuntu5vulnerable
Ubuntulibssh20.040.9.3-2ubuntu1vulnerable
Ubuntulibssh20.040.9.3-2ubuntu2vulnerable
Ubuntulibssh20.040.9.3-2ubuntu2.1vulnerable
Ubuntulibssh20.040.9.3-2ubuntu2.2fixed
Ubuntulibssh22.040.9.6-1fixed
Ubuntulibssh20.040.9.0-1ubuntu1vulnerable
Ubuntulibssh20.040.9.0-1ubuntu4vulnerable
Ubuntulibssh20.040.9.0-1ubuntu5vulnerable
Ubuntulibssh20.040.9.3-2ubuntu1vulnerable
Ubuntulibssh20.040.9.3-2ubuntu2vulnerable
Ubuntulibssh20.040.9.3-2ubuntu2.1vulnerable
Ubuntulibssh20.040.9.3-2ubuntu2.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibsshsourcesid0.9.6-1not yet assignedNot reported[993046]
Debianlibsshsourceforky0.9.6-1not yet assignedNot reported[993046]
Debianlibsshsourcetrixie0.9.6-1not yet assignedNot reported[993046]
Debianlibsshsourcebookworm0.9.6-1not yet assignedNot reported[993046]
Ubuntulibsshdeb20.040.9.3-2ubuntu2.2Not reportedUBUNTU-CVE-2021-3634Not reported
Ubuntulibsshdeb22.040.9.6-1Not reportedUBUNTU-CVE-2021-3634Not reported
Ubuntulibsshdeb20.040.9.3-2ubuntu2.2Not reportedUSN-5053-1Not reported

[Debian bug #993046]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libssh-4]Unknown

    Source package: [libssh]

    Details (4)
    • 0.10.6-0+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

  • [libssh-dev]Unknown

    Source package: [libssh]

    Details (4)
    • 0.10.6-0+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

  • [libssh-doc]Unknown

    Source package: [libssh]

    Details (4)
    • 0.10.6-0+deb12u2 · all · bookworm

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u2 · all · bookworm

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u1 · all · bookworm-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u1 · all · bookworm-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

  • Source package: [libssh]

    Details (4)
    • 0.10.6-0+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

  • Source package: [libssh]

    Details (4)
    • 0.10.6-0+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

    • 0.10.6-0+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · bookworm; dsa · libssh · debian · 12

[Debian 13 (Trixie)]

  • [libssh-4]Unknown

    Source package: [libssh]

    Details (4)
    • 0.11.2-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · 13

    • 0.11.2-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · 13

    • 0.11.5-0+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · 13

    • 0.11.5-0+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · 13

  • [libssh-dev]Unknown

    Source package: [libssh]

    Details (4)
    • 0.11.2-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · 13

    • 0.11.2-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · 13

    • 0.11.5-0+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · 13

    • 0.11.5-0+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · 13

  • [libssh-doc]Unknown

    Source package: [libssh]

    Details (4)
    • 0.11.2-1+deb13u1 · all · trixie

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · 13

    • 0.11.2-1+deb13u1 · all · trixie

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · 13

    • 0.11.5-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · 13

    • 0.11.5-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 0.9.6-1

      dsa · libssh · debian · 13

Observed:

References