← CVE Intelligence

CVE-2025-4877

Libssh: write beyond bounds in binary to base64 conversion functions PUBLISHED

Description (CNA)

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.

Affected (CNA)

Vendor / productVersions
Not supplied / Not suppliedaffected 0 before 0.11.2
Red Hat / Red Hat Enterprise Linux 9unaffected 0:0.10.4-18.el9 before *
Red Hat / Red Hat Enterprise Linux 9unaffected 0:0.10.4-18.el9 before *
Red Hat / Red Hat Enterprise Linux 10unaffected
Red Hat / Red Hat Enterprise Linux 6unaffected
Red Hat / Red Hat Enterprise Linux 7unaffected
Red Hat / Red Hat Enterprise Linux 8unaffected
Red Hat / Red Hat OpenShift Container Platform 4unaffected
Red Hat / Red Hat OpenShift Container Platform 4unaffected

CWE

CWE-787

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.