CVE catalog

CVE-2025-4878

libssh vulnerabilities

[CVE catalog]

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

A vulnerability was found in libssh, where an uninitialized variable exists under certain conditions in the privatekey_from_file() function. This flaw can be triggered if the file specified by the filename doesn't exist and may lead to possible signing failures or heap corruption.

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
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
Ubuntulibsshdebpro0.9.3-2ubuntu2.5+esm1Not reportedUBUNTU-CVE-2025-4878Not reported
Ubuntulibsshdeb22.040.9.6-2ubuntu0.22.04.4Not reportedUBUNTU-CVE-2025-4878Not reported
Ubuntulibsshdeb24.040.10.6-2ubuntu0.1Not reportedUBUNTU-CVE-2025-4878Not 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