{"schemaVersion":4,"id":"CVE-2025-4877","aliases":["UBUNTU-CVE-2025-4877","DEBIAN-CVE-2025-4877","ALPINE-CVE-2025-4877","openSUSE-SU-2026:12743-1"],"status":"published","duplicateOf":null,"title":"Libssh: write beyond bounds in binary to base64 conversion functions","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.","dates":{"published":"2025-08-20T12:19:18.520Z","modified":"2026-11-24T10:46:30.448Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":2.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":2.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":4.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":2.6,"impact":5.7,"computed":true}]},"epss":{"probability":0.00257,"percentile":0.18481,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.053999999999999965,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00203},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00197,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00257,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00257,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00257,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00257,"percentile":0.18481}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00257,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00257,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00257,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00257,"percentile":0.18481}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"alpine","product":"libssh","name":"libssh","label":"libssh","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/libssh","purlType":"apk","versions":[{"text":"< 0.11.2-r0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.11.2-r0","endInclusive":false}}],"versionsText":"< 0.11.2-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"libssh","name":"libssh","label":"libssh","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libssh","purlType":"deb","versions":[{"text":"< 0.10.6-0+deb12u2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.10.6-0+deb12u2","endInclusive":false}},{"text":"< 0.11.2-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.11.2-1","endInclusive":false}}],"versionsText":"< 0.10.6-0+deb12u2 | < 0.11.2-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libssh","name":"libssh","label":"libssh","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libssh","purlType":"deb","versions":[{"text":"< 0.6.3-4.3ubuntu0.6+esm2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.6.3-4.3ubuntu0.6+esm2","endInclusive":false}},{"text":"< 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.8.0~20170825.94fa1e38-1ubuntu0.7+esm4","endInclusive":false}},{"text":"< 0.9.3-2ubuntu2.5+esm1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.9.3-2ubuntu2.5+esm1","endInclusive":false}},{"text":"< 0.9.6-2ubuntu0.22.04.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.9.6-2ubuntu0.22.04.4","endInclusive":false}},{"text":"< 0.10.6-2ubuntu0.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.10.6-2ubuntu0.1","endInclusive":false}}],"versionsText":"< 0.6.3-4.3ubuntu0.6+esm2 | < 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm4 | < 0.9.3-2ubuntu2.5+esm1 | < 0.9.6-2ubuntu0.22.04.4 | < 0.10.6-2ubuntu0.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"hydra","name":"hydra","label":"hydra","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/hydra","purlType":"rpm","versions":[{"text":"< 9.9-1.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"9.9-1.1","endInclusive":false}}],"versionsText":"< 9.9-1.1","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:18683","label":"access.redhat.com/errata/RHSA-2026:18683","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-4877","label":"access.redhat.com/security/cve/CVE-2025-4877","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2376193","label":"bugzilla.redhat.com/show_bug.cgi?id=2376193","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e911b2747732d","label":"git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e911b2747732d","hostname":"git.libssh.org","tags":[]},{"url":"https://www.libssh.org/security/advisories/CVE-2025-4877.txt","label":"www.libssh.org/security/advisories/CVE-2025-4877.txt","hostname":"www.libssh.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/CVE-2025-4877","label":"ubuntu.com/security/CVE-2025-4877","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-4877","label":"www.cve.org/CVERecord?id=CVE-2025-4877","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7619-1","label":"ubuntu.com/security/notices/USN-7619-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-7696-1","label":"ubuntu.com/security/notices/USN-7696-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-4877","label":"security-tracker.debian.org/tracker/CVE-2025-4877","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2025-4877","label":"security.alpinelinux.org/vuln/CVE-2025-4877","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2025-4877","label":"www.suse.com/security/cve/CVE-2025-4877","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["DLA-4385-1","MGASA-2026-0189","OPENSUSE-SU-2025:15243-1","RHSA-2026:18683","SUSE-SU-2025:02229-1","SUSE-SU-2025:02278-1","SUSE-SU-2025:02279-1","SUSE-SU-2025:02281-1","SUSE-SU-2025:02755-1","SUSE-SU-2025:20557-1","SUSE-SU-2025:20596-1","USN-7619-1","USN-7696-1"],"duplicates":[],"related":["OPENSUSE-SU-2025:15243-1","SUSE-SU-2025:02229-1","SUSE-SU-2025:02278-1","SUSE-SU-2025:02279-1","SUSE-SU-2025:02281-1","SUSE-SU-2025:02755-1","SUSE-SU-2025:20557-1","SUSE-SU-2025:20596-1","USN-7619-1","USN-7696-1"]},"timeline":[{"kind":"published","date":"2025-08-20T12:19:18.520Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-24T10:46:30.448Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,45],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00257,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-24T10:46:30.448Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-24T10:46:30.448Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-11-24T10:46:30.448Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-11-24T10:46:30.448Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},{"type":"cvss","source":"osv_alpine","date":"2026-11-24T10:46:30.448Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2025-08-20T15:14:29.024Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00257,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T05:02:50.511Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T05:02:51.052Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T05:02:51.313Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T05:00:54.010Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T05:02:48.843Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T05:02:47.884Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:05:22.085Z","stale":false,"partial":false}}