{"vuln_id":"CVE-2025-4877","aliases":[],"description":"There's a vulnerability in the libssh package where when a libssh consumer passes in an unexpectedly large input buffer to ssh_get_fingerprint_hash() function. In such cases the bin_to_base64() function can experience an integer overflow leading to a memory under allocation, when that happens it's possible that the program perform out of bounds write leading to a heap corruption.\nThis issue affects only 32-bits builds of libssh.","published_at":"2025-08-20T13:15:28.890000Z","modified_at":"2026-11-25T09:48:06.342564Z","first_seen_at":"2026-11-24T12:35:26.260922Z","severity":"medium","severity_source":"nvd","cvss_score":4.5,"cvss_vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","cwe":["CWE-787"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00235,"epss_percentile":0.14405,"nvd_status":"Deferred","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-4877"},"matched_alias":null,"items":[{"id":22482,"source":{"id":"osv","name":"OSV.dev"},"title":"DEBIAN-CVE-2025-4877: There's a vulnerability in the libssh package where when a libssh consumer passes in an unexpectedly large input buffer to ssh_get_fingerprint_hash() function.…","summary":"There's a vulnerability in the libssh package where when a libssh consumer passes in an unexpectedly large input buffer to ssh_get_fingerprint_hash() function. In such cases the bin_to_base64() function can experience an integer overflow leading to a memory under allocation, when that happens it's possible that the program perform out of bounds write leading to a heap corruption. This issue affects only 32-bits builds of libssh.\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-4877","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2025-4877","published_at":"2025-08-20T13:15:28.890000Z","updated_at":"2026-11-25T09:48:06.342564Z","fetched_at":"2026-11-25T15:08:19.524160Z","severity":"medium","cvss_score":4.5,"epss":0.00235,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"debian","product":"12:libssh","vuln_id":"CVE-2025-4877","vuln_ids":["CVE-2025-4877","DEBIAN-CVE-2025-4877"],"tags":["osv","debian","fix-available"],"cluster_id":16050,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/22482","html":"https://vulnwatch.ve1ve2.com/item/22482"}},{"id":18131,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2025-4877: There's a vulnerability in the libssh package where when a libssh consumer passes in an unexpectedly large input buffer to ssh_get_fingerprint_hash() function.…","summary":"There's a vulnerability in the libssh package where when a libssh consumer passes in an unexpectedly large input buffer to ssh_get_fingerprint_hash() function. In such cases the bin_to_base64() function can experience an integer overflow leading to a memory under allocation, when that happens it's possible that the program perform out of bounds write leading to a heap corruption.\nThis issue affects only 32-bits builds of libssh.\n\nReferences:\nhttps://access.redhat.com/errata/RHSA-2026:18683\nhttps://access.redhat.com/security/cve/CVE-2025-4877\nhttps://bugzilla.redhat.com/show_bug.cgi?id=2376193\nhttps://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e911b2747732d\nhttps://www.libssh.org/security/advisories/CVE-2025-4877.txt","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4877","published_at":"2025-08-20T13:15:28.890000Z","updated_at":"2026-11-24T11:17:04.460000Z","fetched_at":"2026-11-24T12:35:26.166272Z","severity":"medium","cvss_score":4.5,"epss":0.00235,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2025-4877","vuln_ids":["CVE-2025-4877","RHSA-2026:18683"],"tags":["CWE-787"],"cluster_id":16050,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/18131","html":"https://vulnwatch.ve1ve2.com/item/18131"}}]}