Logo
vulnerabilityCVE-2025-4877
Name
CVE-2025-4877
Source
NVD ( link)Debian ( link)
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.
Published Date
Updated Date
Workaround
-
Advisories

Analysis#


Affected Component
Analysis
libssh
Patched

Vulnerability Ratings#


4.5
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
0.11.4
Not Affected
buildroot
master
0.12.0
Not Affected
openwrt
master
0.12.0-r1
Not Affected
openwrt
openwrt-25.12
0.11.3-r1
Not Affected
yocto
master
0.11.4
Not Affected
yocto
scarthgap
0.10.6
Patched

Resolved with patches#


libssh (yocto:kirkstone)

#
Title
Author
Resolve
1
CVE-2025-4877 base64: Prevent integer overflow and potential OOB
Jakub Jelen <jjelen@redhat.com>
CVE-2025-4877

libssh (yocto:scarthgap)

#
Title
Author
Resolve
1
CVE-2025-4877 base64: Prevent integer overflow and potential OOB
Jakub Jelen <jjelen@redhat.com>
CVE-2025-4877