Skip to main content
VulnerabilityPublished Updated

CVE-2025-5372: libssh

Affects libsshSource GCVE Database

0
Compare
Authoritative record:CVE-2025-5372· Medium 5.0

Not known to be exploited · CVSS 5.0 Medium · fixed in 0.9.6-2ubuntu0.22.04.4 : update libssh when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
5.0Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (redhat)CVSS 3.15.0
EPSS
0.5% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.9.6-2ubuntu0.22.04.4, 0.10.6-2ubuntu0.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade the Ubuntu libssh to 0.9.6-2ubuntu0.22.04.4 (package) or 0.10.6-2ubuntu0.1 (package).

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSlibsshpkg:deb/ubuntu/libssh?arch=source&distro=nobleOther threatsAffected
  • <0.10.6-2ubuntu0.1
Fixed in
  • 0.10.6-2ubuntu0.1
Ubuntu 22.04 LTSlibsshpkg:deb/ubuntu/libssh?arch=source&distro=jammyOther threatsAffected
  • <0.9.6-2ubuntu0.22.04.4
Fixed in
  • 0.9.6-2ubuntu0.22.04.4
Ubuntu Pro 20.04 LTSlibsshpkg:deb/ubuntu/libssh?arch=source&distro=esm-infra/focalOther threatsAffected
  • 0.9.0-1ubuntu1 – 0.9.3-2ubuntu2.5+esm5
15 affected builds
Fixed in–
Ubuntu Pro 18.04 LTSlibsshpkg:deb/ubuntu/libssh?arch=source&distro=esm-infra/bionicOther threatsAffected
  • 0.7.5-1 – 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm8
14 affected builds
Fixed in–
Ubuntu Pro 16.04 LTSlibsshpkg:deb/ubuntu/libssh?arch=source&distro=esm-infra-legacy/xenialOther threatsAffected
  • 0.6.3-3ubuntu3 – 0.6.3-4.3ubuntu0.6+esm6
15 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.

References

Community reviews

Loading reviews…