{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-4877","id":"CVE-2025-4877","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 affect","descriptionLong":"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":"2025-08-20T12:19:18.520Z","updated":"2026-11-05T16:17:19.453Z","reserved":"2025-05-16T22:23:41.045Z","status":"Deferred","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"redhat"},"metrics":[{"version":"3.1","score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"redhat"},{"version":"3.1","score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"redhat.com"},{"version":"3.1","score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"OSV"}],"rating":"medium","products":["libssh","Red Hat Enterprise Linux 9","Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 6","Red Hat Enterprise Linux 7","Red Hat Enterprise Linux 8","Red Hat OpenShift Container Platform 4"],"affectedProducts":[{"vendor":"","product":"libssh","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0","lessThan":"0.11.2","versionType":"semver"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","defaultStatus":"affected","versions":[{"version":"0:0.10.4-18.el9","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","defaultStatus":"affected","versions":[{"version":"0:0.10.4-18.el9","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","defaultStatus":"unaffected","versions":[],"platforms":[]}],"packages":[],"cwes":["CWE-787"],"aliases":[],"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","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2376193","tags":["issue-tracking","x_refsource_REDHAT","report"]},{"url":"https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e911b2747732d","tags":["web"]},{"url":"https://www.libssh.org/security/advisories/CVE-2025-4877.txt","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00219,"epssPercentile":0.12475,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-4877","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4877","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-4877","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-4877","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}