{"affected":[{"defaultStatus":"unaffected","ecosystem":"https://www.libssh.org","packageName":"libssh","product":"","source":"CNA: redhat","vendor":"","versions":[{"lessThan":"0.11.2","status":"affected","version":"0","versionType":"semver"}]},{"defaultStatus":"affected","ecosystem":"https://access.redhat.com/downloads/content/package-browser/","packageName":"libssh","product":"Red Hat Enterprise Linux 9","source":"CNA: redhat","vendor":"Red Hat","versions":[{"lessThan":"*","status":"unaffected","version":"0:0.10.4-18.el9","versionType":"rpm"}]},{"defaultStatus":"unaffected","ecosystem":"https://access.redhat.com/downloads/content/package-browser/","packageName":"libssh","product":"Red Hat Enterprise Linux 10","source":"CNA: redhat","vendor":"Red Hat","versions":[]},{"defaultStatus":"unaffected","ecosystem":"https://access.redhat.com/downloads/content/package-browser/","packageName":"libssh2","product":"Red Hat Enterprise Linux 6","source":"CNA: redhat","vendor":"Red Hat","versions":[]},{"defaultStatus":"unaffected","ecosystem":"https://access.redhat.com/downloads/content/package-browser/","packageName":"libssh2","product":"Red Hat Enterprise Linux 7","source":"CNA: redhat","vendor":"Red Hat","versions":[]},{"defaultStatus":"unaffected","ecosystem":"https://access.redhat.com/downloads/content/package-browser/","packageName":"libssh","product":"Red Hat Enterprise Linux 8","source":"CNA: redhat","vendor":"Red Hat","versions":[]},{"defaultStatus":"unaffected","ecosystem":"https://access.redhat.com/downloads/content/package-browser/","packageName":"openshift/ose-rhel-coreos-8","product":"Red Hat OpenShift Container Platform 4","source":"CNA: redhat","vendor":"Red Hat","versions":[]},{"defaultStatus":"unaffected","ecosystem":"https://access.redhat.com/downloads/content/package-browser/","packageName":"openshift/ose-rhel-coreos-9","product":"Red Hat OpenShift Container Platform 4","source":"CNA: redhat","vendor":"Red Hat","versions":[]}],"cveId":"CVE-2025-4877","cwes":["CWE-787"],"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.","epss":{"date":"2026-11-05","percentile":0.10318,"score":0.00203},"exploits":[],"kev":null,"metrics":[{"score":4.5,"severity":"medium","source":"CNA: redhat","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},{"score":4.5,"severity":"medium","source":"NVD: secalert@redhat.com","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"}],"modifiedAt":1793895439453,"publishedAt":1755692358520,"references":[{"source":"CNA: redhat","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"https://access.redhat.com/errata/RHSA-2026:18683"},{"source":"CNA: redhat","tags":["vdb-entry","x_refsource_REDHAT"],"url":"https://access.redhat.com/security/cve/CVE-2025-4877"},{"source":"CNA: redhat","tags":["issue-tracking","x_refsource_REDHAT"],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2376193"},{"source":"CNA: redhat","tags":[],"url":"https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e911b2747732d"},{"source":"CNA: redhat","tags":[],"url":"https://www.libssh.org/security/advisories/CVE-2025-4877.txt"},{"source":"secalert@redhat.com","tags":[],"url":"https://access.redhat.com/errata/RHSA-2026:18683"},{"source":"secalert@redhat.com","tags":[],"url":"https://access.redhat.com/security/cve/CVE-2025-4877"},{"source":"secalert@redhat.com","tags":[],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2376193"},{"source":"secalert@redhat.com","tags":[],"url":"https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e911b2747732d"},{"source":"secalert@redhat.com","tags":[],"url":"https://www.libssh.org/security/advisories/CVE-2025-4877.txt"}],"remediation":[],"revision":"d8e63fadcedb9e6425995221ba2ca0a77c9cf709eded56fc129e4d3dd0527777","sources":[{"modifiedAt":1793893619821,"name":"CNA: redhat","retrievedAt":1793895196180,"url":"https://www.cve.org/CVERecord?id=CVE-2025-4877"},{"modifiedAt":1793895439453,"name":"NVD","retrievedAt":1793902622840,"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4877"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1793895222508,"url":"https://api.first.org/data/v1/epss?cve=CVE-2025-4877"}],"ssvc":{"assessedAt":1755702869024,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"Libssh: write beyond bounds in binary to base64 conversion functions","updatedAt":1793902622840}