CVE catalog

CVE-2025-5318

libssh vulnerabilities

[CVE catalog]

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

A flaw was found in the libssh library in versions less than 0.11.2. An out-of-bounds read can be triggered in the sftp_handle function due to an incorrect comparison check that permits the function to access memory beyond the valid handle list and to return an invalid pointer, which is used in further processing. This vulnerability allows an authenticated remote attacker to potentially read unintended memory regions, exposing sensitive information or affect service behavior.

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
Ubuntulibsshnoble0.10.6-0+deb12u2fixed
Ubuntulibsshnoble0.10.6-2ubuntu0.1fixed
Ubuntulibssh-4noble0.10.6-2ubuntu0.1fixed
Ubuntulibssh-devnoble0.10.6-2ubuntu0.1fixed
Ubuntulibssh-docnoble0.10.6-2ubuntu0.1fixed
Ubuntulibssh-gcrypt-4noble0.10.6-2ubuntu0.1fixed
Ubuntulibssh-gcrypt-devnoble0.10.6-2ubuntu0.1fixed
Cpeopenshift_container_platformNot reportedNot reportedunknown
Cpeenterprise_linuxNot reportedNot reportedunknown
CpelibsshNot reported0.11.2fixed
Ubuntulibsshpro0.9.0-1ubuntu1vulnerable
Ubuntulibsshpro0.9.0-1ubuntu4vulnerable
Ubuntulibsshpro0.9.0-1ubuntu5vulnerable
Ubuntulibsshpro0.9.3-2ubuntu1vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.1vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.2vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.3vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.4vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.5vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.5+esm1fixed
Ubuntulibssh22.040.9.6-1vulnerable
Ubuntulibssh22.040.9.6-1build1vulnerable
Ubuntulibssh22.040.9.6-2vulnerable
Ubuntulibssh22.040.9.6-2build1vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.1vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.2vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.3vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.4fixed
Ubuntulibssh24.040.10.5-3ubuntu1vulnerable
Ubuntulibssh24.040.10.5-3ubuntu2vulnerable
Ubuntulibssh24.040.10.6-2vulnerable
Ubuntulibssh24.040.10.6-2build1vulnerable
Ubuntulibssh24.040.10.6-2build2vulnerable
Ubuntulibssh24.040.10.6-2ubuntu0.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibsshsourcesid0.11.2-1not yet assignedNot reported[1108407]
Debianlibsshsourceforky0.11.2-1not yet assignedNot reported[1108407]
Debianlibsshsourcetrixie0.11.2-1not yet assignedNot reported[1108407]
Debianlibsshsourcebookworm0.10.6-0+deb12u2not yet assignedNot reported[1108407]
Ubuntulibsshdebnoble0.10.6-0+deb12u2Not reportedNot reportedNot reported
Ubuntulibsshdebnoble0.10.6-2ubuntu0.1Not reportedNot reportedNot reported
Ubuntulibssh-4debnoble0.10.6-2ubuntu0.1Not reportedNot reportedNot reported
Ubuntulibssh-devdebnoble0.10.6-2ubuntu0.1Not reportedNot reportedNot reported
Ubuntulibssh-docdebnoble0.10.6-2ubuntu0.1Not reportedNot reportedNot reported
Ubuntulibssh-gcrypt-4debnoble0.10.6-2ubuntu0.1Not reportedNot reportedNot reported
Ubuntulibssh-gcrypt-devdebnoble0.10.6-2ubuntu0.1Not reportedNot reportedNot reported
CpelibsshcpeNot reported0.11.2Not reportedNVD-CVE-2025-5318Not reported
Ubuntulibsshdebpro0.9.3-2ubuntu2.5+esm1Not reportedUBUNTU-CVE-2025-5318Not reported
Ubuntulibsshdeb22.040.9.6-2ubuntu0.22.04.4Not reportedUBUNTU-CVE-2025-5318Not reported
Ubuntulibsshdeb24.040.10.6-2ubuntu0.1Not reportedUBUNTU-CVE-2025-5318Not reported

[Debian bug #1108407]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libssh-4]Affected

    Source package: [libssh]

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

      Fixed · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

    • 0.10.6-0+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

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

      Affected · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

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

      Affected · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

  • [libssh-dev]Affected

    Source package: [libssh]

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

      Fixed · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

    • 0.10.6-0+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

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

      Affected · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

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

      Affected · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

  • [libssh-doc]Affected

    Source package: [libssh]

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

      Fixed · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

    • 0.10.6-0+deb12u2 · all · bookworm

      Fixed · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

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

      Affected · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

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

      Affected · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

  • [libssh-gcrypt-4]Affected

    Source package: [libssh]

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

      Fixed · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

    • 0.10.6-0+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

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

      Affected · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

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

      Affected · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

  • Source package: [libssh]

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

      Fixed · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

    • 0.10.6-0+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

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

      Affected · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

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

      Affected · Fixed: 0.10.6-0+deb12u2

      usn · libssh · debian · bookworm; usn · libssh · debian · 12

[Debian 13 (Trixie)]

  • [libssh-4]Fixed

    Source package: [libssh]

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

      Fixed · Fixed: 0.11.2-1

      usn · libssh · debian · 13

    • 0.11.2-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 0.11.2-1

      usn · libssh · debian · 13

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

      Fixed · Fixed: 0.11.2-1

      usn · libssh · debian · 13

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

      Fixed · Fixed: 0.11.2-1

      usn · libssh · debian · 13

  • [libssh-dev]Fixed

    Source package: [libssh]

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

      Fixed · Fixed: 0.11.2-1

      usn · libssh · debian · 13

    • 0.11.2-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 0.11.2-1

      usn · libssh · debian · 13

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

      Fixed · Fixed: 0.11.2-1

      usn · libssh · debian · 13

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

      Fixed · Fixed: 0.11.2-1

      usn · libssh · debian · 13

  • [libssh-doc]Fixed

    Source package: [libssh]

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

      Fixed · Fixed: 0.11.2-1

      usn · libssh · debian · 13

    • 0.11.2-1+deb13u1 · all · trixie

      Fixed · Fixed: 0.11.2-1

      usn · libssh · debian · 13

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

      Fixed · Fixed: 0.11.2-1

      usn · libssh · debian · 13

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

      Fixed · Fixed: 0.11.2-1

      usn · libssh · debian · 13

Observed:

References