CVE-2025-4877
MEDIUM 4.5CVSS 3.1Libssh: write beyond bounds in binary to base64 conversion functions
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.
- Published
- 20 Aug 2025
- Last modified
- 24 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Deferred
- Weakness
- CWE-787
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | MEDIUM 4.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L |
| CVE List | redhat | CVSS 3.1 | MEDIUM 4.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | https://www.libssh.org | libssh | < 0.11.2 | 0.11.2 |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/a:redhat:enterprise_linux:9::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/o:redhat:enterprise_linux:10 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libssh2cpe:/o:redhat:rhel_els:6 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libssh2cpe:/o:redhat:rhel_els:7 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/o:redhat:enterprise_linux:8 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | openshift/ose-rhel-coreos-8cpe:/a:redhat:openshift:4 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | openshift/ose-rhel-coreos-9cpe:/a:redhat:openshift:4 |
References
- https://access.redhat.com/errata/RHSA-2026:18683 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-4877 · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2376193 · issue-tracking, x_refsource_REDHAT
- https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e911b2747732d
- https://www.libssh.org/security/advisories/CVE-2025-4877.txt
History
- 25 Nov 2026 20:36 UTC · CVE List: first stored (published 20 Aug 2025)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 20 Aug 2025)