{"id":"CVE-2025-4877","published":"2025-08-20T12:19:18Z","modified":"2026-11-05T15:46:59Z","title":"Libssh: write beyond bounds in binary to base64 conversion functions","vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00235,"percentile":0.1457,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:18683","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-4877","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2376193","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e911b2747732d","tags":[]},{"url":"https://www.libssh.org/security/advisories/CVE-2025-4877.txt","tags":[]}],"priority":{"score":6.1,"factors":[{"name":"EPSS percentile","points":2.91},{"name":"CVSS severity","points":3.15}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":null,"product":null,"versions":["< 0.11.2"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","versions":["all versions"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-20T15:14:29.024220Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-28257","exploited":false,"provenance":"source"}}