CVE-2025-4877: libssh vulnerabilities
Affects libsshSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 4.5 Medium · fixed in 0.9.6-2ubuntu0.22.04.4 : update libssh when convenient.
Data as of 27 Oct 2026, 06:42 UTC
- Patch
- Available – fixed in 0.9.6-2ubuntu0.22.04.4, 0.10.6-2ubuntu0.1
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 20 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 26 Oct 2026.
What to do
Upgrade the Ubuntu libssh to 0.9.6-2ubuntu0.22.04.4 (package) or 0.10.6-2ubuntu0.1 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlibsshpkg:deb/ubuntu/libssh?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSlibsshpkg:deb/ubuntu/libssh?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Ronald Crane discovered that libssh incorrectly handled certain base64 conversions. An attacker could use this issue to cause libssh to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2025-4877) Ronald Crane discovered that libssh incorrectly handled the privatekey_from_file() function. An attacker could use this issue to cause libssh to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2025-4878) Ronald Crane discovered that libssh incorrectly handled certain memory operations in the sftp server. An attacker could possibly use this issue to cause libssh to crash, resulting in a denial of service. (CVE-2025-5318, CVE-2025-5449) Ronald Crane discovered that libssh incorrectly handled exporting keys. An attacker could possibly use this issue to cause libssh to crash, resulting in a denial of service. This issue only affected Ubuntu 24.04 LTS, Ubuntu 24.10, and Ubuntu 25.04. (CVE-2025-5351) Ronald Crane discovered that libssh incorrectly handled the ssh_kdf() function. An attacker could use this issue to cause libssh to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2025-5372) Ronald Crane discovered that libssh incorrectly handled the ChaCha20 cipher. An attacker could possibly use this issue to cause libssh to use partially initialized cypher content. This issue only affected Ubuntu 24.04 LTS, Ubuntu 24.10, and Ubuntu 25.04. (CVE-2025-5987)
References
- ubuntu.com/security/notices/USN-7619-1 (opens in a new tab)
- ubuntu.com/security/CVE-2025-4877 (opens in a new tab)
- ubuntu.com/security/CVE-2025-4878 (opens in a new tab)
- ubuntu.com/security/CVE-2025-5318 (opens in a new tab)
- ubuntu.com/security/CVE-2025-5351 (opens in a new tab)
- ubuntu.com/security/CVE-2025-5372 (opens in a new tab)
- ubuntu.com/security/CVE-2025-5449 (opens in a new tab)
- ubuntu.com/security/CVE-2025-5987 (opens in a new tab)