{"vuln_id":"CVE-2025-5351","aliases":[],"description":"A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.","published_at":"2025-07-04T09:15:37.100000Z","modified_at":"2026-11-25T09:48:14.331216Z","first_seen_at":"2026-11-24T12:35:26.260920Z","severity":"medium","severity_source":"nvd","cvss_score":6.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-415"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.0063,"epss_percentile":0.50945,"nvd_status":"Modified","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-5351"},"matched_alias":null,"items":[{"id":22327,"source":{"id":"osv","name":"OSV.dev"},"title":"DEBIAN-CVE-2025-5351: A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serial…","summary":"A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.\n\nAffected: Debian:12:libssh, Debian:13:libssh, Debian:14:libssh\n\nFixed in: 0.10.6-0+deb12u2, 0.11.2-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2025-5351","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2025-5351","published_at":"2025-07-04T09:15:37.100000Z","updated_at":"2026-11-25T09:48:14.331216Z","fetched_at":"2026-11-25T15:08:19.524036Z","severity":"medium","cvss_score":6.5,"epss":0.0063,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"debian","product":"12:libssh","vuln_id":"CVE-2025-5351","vuln_ids":["CVE-2025-5351","DEBIAN-CVE-2025-5351"],"tags":["osv","debian","fix-available"],"cluster_id":16049,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/22327","html":"https://vulnwatch.ve1ve2.com/item/22327"}},{"id":18130,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2025-5351: A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serial…","summary":"A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.\n\nReferences:\nhttps://access.redhat.com/errata/RHSA-2026:18683\nhttps://access.redhat.com/security/cve/CVE-2025-5351\nhttps://bugzilla.redhat.com/show_bug.cgi?id=2369367","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-5351","published_at":"2025-07-04T09:15:37.100000Z","updated_at":"2026-11-24T11:17:05.247000Z","fetched_at":"2026-11-24T12:35:26.166271Z","severity":"medium","cvss_score":6.5,"epss":0.0063,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2025-5351","vuln_ids":["CVE-2025-5351","RHSA-2026:18683"],"tags":["CWE-415"],"cluster_id":16049,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/18130","html":"https://vulnwatch.ve1ve2.com/item/18130"}}]}