CVE-2025-4877
published medium CVSS 3.1 · 4.5Libssh: write beyond bounds in binary to base64 conversion functions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | libssh0 to < 0.11.2 · Other versions: unaffected | Affected | Not stated | redhat |
| Red Hat Enterprise Linux | 9 | libssh0:0.10.4-18.el9 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat Enterprise Linux | 8, 10 | libssh | Unaffected | Not required | redhat |
| Red Hat Enterprise Linux | 6, 7 | libssh2 | Unaffected | Not required | redhat |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 9 | libssh | Advisory build | 0.10.4-18.el9 | ALSA-2026:18683 |
| Alpine Linux | edge | libssh | Fixed | 0.11.2-r0 | Package fix record |
| Debian | bullseye | libssh | Advisory build | 0.9.8-0+deb11u2 | DLA-4385-1 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | openshift/ose-rhel-coreos-8Red Hat OpenShift Container Platform 4 | Unaffected | Not required | redhat |
| Red Hat | — | openshift/ose-rhel-coreos-9Red Hat OpenShift Container Platform 4 | Unaffected | Not required | redhat |
| Oracle Linux | 9 | libsshaarch64 | Advisory build | 0:0.10.4-18.el9 | ELSA-2026-18683 |
| Red Hat Enterprise Linux | RHEL-9 | libsshaarch64 | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Ubuntu | bionic | libssh | Advisory build | 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm4 | USN-7696-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-configaarch64 | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| Alpine Linux | v3.22 | libssh | Fixed | 0.11.2-r0 | Package fix record |
| Alpine Linux | v3.23 | libssh | Fixed | 0.11.2-r0 | Package fix record |
| Alpine Linux | v3.24 | libssh | Fixed | 0.11.2-r0 | Package fix record |
| Oracle Linux | 9 | libsshx86_64 | Advisory build | 0:0.10.4-18.el9 | ELSA-2026-18683 |
| Red Hat Enterprise Linux | RHEL-9 | libsshi686 | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libsshppc64le | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libsshs390x | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libsshsrc | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libsshx86_64 | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Ubuntu | focal | libssh | Advisory build | 0.9.3-2ubuntu2.5+esm1 | USN-7696-1 |
| Ubuntu | jammy | libssh | Advisory build | 0.9.6-2ubuntu0.22.04.4 | USN-7619-1 |
| Ubuntu | noble | libssh | Advisory build | 0.10.6-2ubuntu0.1 | USN-7619-1 |
| Ubuntu | xenial | libssh | Advisory build | 0.6.3-4.3ubuntu0.6+esm2 | USN-7696-1 |
| AlmaLinux | 9 | libssh-config | Advisory build | 0.10.4-18.el9 | ALSA-2026:18683 |
| AlmaLinux | 9 | libssh-devel | Advisory build | 0.10.4-18.el9 | ALSA-2026:18683 |
| Oracle Linux | 9 | libssh-configaarch64 | Advisory build | 0:0.10.4-18.el9 | ELSA-2026-18683 |
| Oracle Linux | 9 | libssh-configx86_64 | Advisory build | 0:0.10.4-18.el9 | ELSA-2026-18683 |
| Oracle Linux | 9 | libssh-develaarch64 | Advisory build | 0:0.10.4-18.el9 | ELSA-2026-18683 |
| Oracle Linux | 9 | libssh-develx86_64 | Advisory build | 0:0.10.4-18.el9 | ELSA-2026-18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-confignoarch | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-debuginfoaarch64 | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-debuginfoi686 | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-debuginfoppc64le | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-debuginfos390x | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-debuginfox86_64 | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-debugsourceaarch64 | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-debugsourcei686 | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-debugsourceppc64le | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-debugsources390x | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-debugsourcex86_64 | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-develaarch64 | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-develi686 | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-develppc64le | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-devels390x | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux | RHEL-9 | libssh-develx86_64 | Advisory build | 0.10.4-18.el9 | RHSA-2026:18683 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-configppc64le | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-configs390x | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-configx86_64 | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-develaarch64 | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-develppc64le | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devels390x | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-develx86_64 | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devel-docaarch64 | Advisory build | 0.6.3-12.15.1 | SUSE-SU-2025:02755-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devel-docppc64le | Advisory build | 0.6.3-12.15.1 | SUSE-SU-2025:02755-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devel-docs390x | Advisory build | 0.6.3-12.15.1 | SUSE-SU-2025:02755-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh-devel-docx86_64 | Advisory build | 0.6.3-12.15.1 | SUSE-SU-2025:02755-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh4aarch64 | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh4ppc64le | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh4s390x | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh4x86_64 | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh4-32bits390x | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-12-SP5 | libssh4-32bitx86_64 | Advisory build | 0.9.8-3.15.1 | SUSE-SU-2025:02281-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh-configaarch64 | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh-configppc64le | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh-configs390x | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh-configx86_64 | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh-develaarch64 | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh-develppc64le | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh-devels390x | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh-develx86_64 | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh4aarch64 | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh4ppc64le | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh4s390x | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh4x86_64 | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP3 | libssh4-32bitx86_64 | Advisory build | 0.9.8-150200.13.9.1 | SUSE-SU-2025:02279-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh-configaarch64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh-configppc64le | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh-configs390x | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh-configx86_64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh-develaarch64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh-develppc64le | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh-devels390x | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh-develx86_64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh4aarch64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh4ppc64le | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh4s390x | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh4x86_64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP4 | libssh4-32bitx86_64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh-configaarch64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh-configppc64le | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh-configs390x | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh-configx86_64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh-develaarch64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh-develppc64le | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh-devels390x | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh-develx86_64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh4aarch64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh4ppc64le | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh4s390x | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh4x86_64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP5 | libssh4-32bitx86_64 | Advisory build | 0.9.8-150400.3.9.1 | SUSE-SU-2025:02278-1 |
| SUSE / openSUSE | SLE-15-SP6 | libssh-configaarch64 | Advisory build | 0.9.8-150600.11.3.1 | SUSE-SU-2025:02229-1 |
| SUSE / openSUSE | SLE-15-SP6 | libssh-configppc64le | Advisory build | 0.9.8-150600.11.3.1 | SUSE-SU-2025:02229-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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. This issue affects only 32-bits builds of libssh.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.5 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| libssh | 0 to < 0.11.2 (affected · semver)Default: unaffected | redhat · cna | |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.10.4-18.el9 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.10.4-18.el9 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 10 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 6 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 7 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: unaffected | redhat · cna |
Weaknesses
1- CWE-787 Out-of-bounds Write
References
5- RHSA-2026:18683 https://access.redhat.com/errata/RHSA-2026:18683
- https://access.redhat.com/security/cve/CVE-2025-4877
- RHBZ#2376193 https://bugzilla.redhat.com/show_bug.cgi?id=2376193
- https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e911b2747732d
- https://www.libssh.org/security/advisories/CVE-2025-4877.txt
Provider assertions
2redhat · cna
Libssh: write beyond bounds in binary to base64 conversion functions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ca1c0344595bdadbe87bceb5a0dc4d26c4a51c79416930b372add9b4d9ec4f57
- Ingested
- 24 Nov 2026, 10:53:20 UTC
- Source record
- Official CVE record