Skip to content
Heist/ feed
Back to feed
UnratedFix available

libssh vulnerabilities

Type: advisorySources: OSV

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)

Products
libssh
Affected versions
0.10.5-3ubuntu1, 0.10.5-3ubuntu2, 0.10.6-2, 0.10.6-2build1, 0.10.6-2build2, 0.9.6-1, 0.9.6-1build1, 0.9.6-2, 0.9.6-2build1, 0.9.6-2ubuntu0.22.04.1, 0.9.6-2ubuntu0.22.04.2, 0.9.6-2ubuntu0.22.04.3
Fixed versions
0.10.6-2ubuntu0.1, 0.9.6-2ubuntu0.22.04.4
CVEs
CVE-2025-4877, CVE-2025-4878, CVE-2025-5318, CVE-2025-5351, CVE-2025-5372, CVE-2025-5449, CVE-2025-5987
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:15 UTC · Revision 1

Source evidence

libssh vulnerabilities

core-osv · Original source

Published 7 Jul 2025, 12:29 UTC

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)

osv:USN-7619-1

libssh

Fixed versions: 0.9.6-2ubuntu0.22.04.4

libssh

Fixed versions: 0.10.6-2ubuntu0.1

Complete source record
{
  "id": "1978091ce1be2fba4dc4e169272fe1a2f1099bfa543e93e12c24a1f99c54184f",
  "url": "https://osv.dev/vulnerability/USN-7619-1",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "libssh vulnerabilities",
    "summary": "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)",
    "evidence": "osv:USN-7619-1",
    "products": [
      {
        "name": {
          "value": "libssh",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.9.6-2ubuntu0.22.04.4",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.9.6-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.6-1build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.6-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.6-2build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.6-2ubuntu0.22.04.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.6-2ubuntu0.22.04.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.6-2ubuntu0.22.04.3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libssh",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.10.6-2ubuntu0.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.10.5-3ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.10.5-3ubuntu2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.10.6-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.10.6-2build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.10.6-2build2",
            "evidence": "/affected/1/versions"
          }
        ]
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "USN-7619-1",
      "aliases": [
        "USN-7619-1"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.9.6-2ubuntu0.22.04.4"
                }
              ]
            }
          ],
          "package": {
            "name": "libssh",
            "purl": "pkg:deb/ubuntu/libssh?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.9.6-1",
            "0.9.6-1build1",
            "0.9.6-2",
            "0.9.6-2build1",
            "0.9.6-2ubuntu0.22.04.1",
            "0.9.6-2ubuntu0.22.04.2",
            "0.9.6-2ubuntu0.22.04.3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7619-1.json",
            "cves_map": {
              "cves": [
                {
                  "id": "CVE-2025-4877",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                },
                {
                  "id": "CVE-2025-4878",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                },
                {
                  "id": "CVE-2025-5318",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
                    },
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                },
                {
                  "id": "CVE-2025-5372",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"
                    },
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                }
              ],
              "ecosystem": "Ubuntu:22.04:LTS"
            }
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libssh-4",
                "binary_version": "0.9.6-2ubuntu0.22.04.4"
              },
              {
                "binary_name": "libssh-gcrypt-4",
                "binary_version": "0.9.6-2ubuntu0.22.04.4"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.10.6-2ubuntu0.1"
                }
              ]
            }
          ],
          "package": {
            "name": "libssh",
            "purl": "pkg:deb/ubuntu/libssh?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.10.5-3ubuntu1",
            "0.10.5-3ubuntu2",
            "0.10.6-2",
            "0.10.6-2build1",
            "0.10.6-2build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7619-1.json",
            "cves_map": {
              "cves": [
                {
                  "id": "CVE-2025-4877",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                },
                {
                  "id": "CVE-2025-4878",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                },
                {
                  "id": "CVE-2025-5318",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
                    },
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                },
                {
                  "id": "CVE-2025-5351",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
                    },
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                },
                {
                  "id": "CVE-2025-5372",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"
                    },
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                },
                {
                  "id": "CVE-2025-5987",
                  "severity": [
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
                    },
                    {
                      "type": "CVSS_V3",
                      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
                    },
                    {
                      "type": "Ubuntu",
                      "score": "medium"
                    }
                  ]
                }
              ],
              "ecosystem": "Ubuntu:24.04:LTS"
            }
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libssh-4",
                "binary_version": "0.10.6-2ubuntu0.1"
              },
              {
                "binary_name": "libssh-gcrypt-4",
                "binary_version": "0.10.6-2ubuntu0.1"
              }
            ],
            "availability": "No subscription required"
          }
        }
      ],
      "modified": "2026-10-27T04:16:21.150937013Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-4877",
        "CVE-2025-4878",
        "CVE-2025-5318",
        "CVE-2025-5351",
        "CVE-2025-5372",
        "CVE-2025-5449",
        "CVE-2025-5987",
        "UBUNTU-CVE-2025-4877",
        "UBUNTU-CVE-2025-4878",
        "UBUNTU-CVE-2025-5318",
        "UBUNTU-CVE-2025-5351",
        "UBUNTU-CVE-2025-5372",
        "UBUNTU-CVE-2025-5449",
        "UBUNTU-CVE-2025-5987"
      ],
      "references": [
        "https://ubuntu.com/security/notices/USN-7619-1",
        "https://ubuntu.com/security/CVE-2025-4877",
        "https://ubuntu.com/security/CVE-2025-4878",
        "https://ubuntu.com/security/CVE-2025-5318",
        "https://ubuntu.com/security/CVE-2025-5351",
        "https://ubuntu.com/security/CVE-2025-5372",
        "https://ubuntu.com/security/CVE-2025-5449",
        "https://ubuntu.com/security/CVE-2025-5987"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-4877",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2025-4878",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2025-5318",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2025-5351",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2025-5372",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2025-5449",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2025-5987",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 460187,
  "published_at": "2025-07-07T12:29:26+00:00"
}