CVE-2025-4877
Last modified
CVE-2025-4877 is a medium-severity vulnerability rated 4.5/10 on the CVSS scale. 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.. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-4877?
How severe is CVE-2025-4877?
How do I fix CVE-2025-4877?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-48755In the spiral-rs crate 0.2.0 for Rust, allocation can be att…9.8
- CVE-2025-48756In group_number in the scsir crate 0.2.0 for Rust, there can…9.8
- CVE-2025-48757An insufficient database Row-Level Security policy in Lovabl…9.3
- CVE-2025-4876ConnectWise-Password-Encryption-Utility.exe in ConnectWise R…4.4
- CVE-2025-48768Release of Invalid Pointer or Reference vulnerability was di…6.5
- CVE-2025-48769Use After Free vulnerability was discovered in fs/vfs/fs_ren…8.1
- CVE-2025-4878A vulnerability was found in libssh, where an uninitialized …3.6
- CVE-2025-48780A deserialization of untrusted data vulnerability in the dow…9.8
- CVE-2025-48781An external control of file name or path vulnerability in th…7.5
- CVE-2025-48782An unrestricted upload of file with dangerous type vulnerabi…9.8
- CVE-2025-48783An external control of file name or path vulnerability in th…7.5
- CVE-2025-48784A missing authorization vulnerability in Soar Cloud HRD Huma…7.5
Are you affected by CVE-2025-4877?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
