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.
History

Wed, 20 Aug 2025 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 20 Aug 2025 12:30:00 +0000

Type Values Removed Values Added
Description No description is available for this CVE. 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.
Title libssh: Write beyond bounds in binary to base64 conversion functions Libssh: write beyond bounds in binary to base64 conversion functions
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
CPEs cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
References

Fri, 04 Jul 2025 00:30:00 +0000

Type Values Removed Values Added
Description No description is available for this CVE.
Title libssh: Write beyond bounds in binary to base64 conversion functions
Weaknesses CWE-190
CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.5, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L'}

threat_severity

Moderate


cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published: 2025-08-20T12:19:18.520Z

Updated: 2025-08-20T15:14:43.214Z

Reserved: 2025-05-16T22:23:41.045Z

Link: CVE-2025-4877

cve-icon Vulnrichment

Updated: 2025-08-20T15:14:34.584Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-08-20T13:15:28.890

Modified: 2025-08-20T14:39:07.860

Link: CVE-2025-4877

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-06-24T00:00:00Z

Links: CVE-2025-4877 - Bugzilla