Advisory

USN-8051-1

Also known as: CVE-2025-8277, CVE-2026-0964, CVE-2026-0965, CVE-2026-0966, CVE-2026-0967, CVE-2026-0968

Summary

libssh vulnerabilities

Details

It was discovered that libssh clients incorrectly handled the key exchange
process. A remote attacker could possibly use this issue to cause libssh
clients to crash, resulting in a denial of service. (CVE-2025-8277)

It was discovered that the libssh SCP client incorrectly sanitized paths
received from servers. A remote attacker could use this issue to cause
libssh SCP clients to overwrite files outside of the working directory and
possibly execute arbitrary code. (CVE-2026-0964)

It was discovered that libssh incorrectly handled parsing configuration
files. A local attacker could possibly use this issue to cause libssh to
access non-regular files, resulting in a denial of service. (CVE-2026-0965)

It was discovered that libssh incorrectly handled the ssh_get_hexa()
function. A remote attacker could possibly use this issue to cause libssh
to crash, resulting in a denial of service. (CVE-2026-0966)

It was discovered that libssh incorrectly handled certain regular
expressions. A local attacker could possibly use this issue to cause libssh
to consume resources, resulting in a denial of service. (CVE-2026-0967)

It was discovered that the libssh SFTP client incorrectly handled certain
malformed longname fields. A remote attacker could use this issue to cause
libssh SFTP clients to crash, resulting in a denial of service, or possibly
execute arbitrary code. (CVE-2026-0968)

Severity

Not rated by the source.

Dates

Published
2026-02-18 13:14 UTC
Modified
2026-05-14 12:34 UTC

Affected packages and fixes

libssh

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 0.9.6-2ubuntu0.22.04.6 (ecosystem)

Fixed versions

0.9.6-2ubuntu0.22.04.6

Fix

  • Fixed version 0.9.6-2ubuntu0.22.04.6
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libssh

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 0.10.6-2ubuntu0.3 (ecosystem)

Fixed versions

0.10.6-2ubuntu0.3

Fix

  • Fixed version 0.10.6-2ubuntu0.3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libssh

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0, fixed 0.11.2-1ubuntu0.2 (ecosystem)

Fixed versions

0.11.2-1ubuntu0.2

Fix

  • Fixed version 0.11.2-1ubuntu0.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences