USN-7696-1

Type: Security
Severity: Medium
Published: 2025-08-14
Ubuntu 20.04 LTS (Focal Fossa)

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) Update Instructions: Run `sudo pro fix USN-7696-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: libssh-4 - 0.9.3-2ubuntu2.5+esm1 libssh-dev - 0.9.3-2ubuntu2.5+esm1 libssh-doc - 0.9.3-2ubuntu2.5+esm1 libssh-gcrypt-4 - 0.9.3-2ubuntu2.5+esm1 libssh-gcrypt-dev - 0.9.3-2ubuntu2.5+esm1 Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-28T01:47:42.136Z UTC

Official vendor advisory

Ubuntu 20.04 LTS (Focal Fossa)

View source
Observed 2026-11-28T01:47:42.136Z UTC. Last updated 2025-11-26T08:53:53.535Z UTC.

Upstream Advisory

Affected Packages

  • libssh-4 0.9.3-2ubuntu2.5+esm1-0.9.3-2ubuntu2.5+esm1

  • libssh-dev 0.9.3-2ubuntu2.5+esm1-0.9.3-2ubuntu2.5+esm1

  • libssh-doc 0.9.3-2ubuntu2.5+esm1-0.9.3-2ubuntu2.5+esm1

  • libssh-gcrypt-4 0.9.3-2ubuntu2.5+esm1-0.9.3-2ubuntu2.5+esm1

  • libssh-gcrypt-dev 0.9.3-2ubuntu2.5+esm1-0.9.3-2ubuntu2.5+esm1

Interested in being alerted when there are new versions of libssh-4 and the other packages? Set up an alert.
USN-7696-1: libssh vulnerabilities | Package Alert