CVE-2025-4877: libssh - Integer Overflow
- Cve: CVE-2025-4877
- Name: libssh - Integer Overflow
- 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.
- Impact: Attackers can cause heap corruption leading to potential crashes or arbitrary code execution.
- Remediation: Update to the latest version of libssh that fixes this issue.
- Vulnerability type: integer_overflow
- Vulnerability impact: remote_code_execution, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.5
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- Epss score: 0.00235
- Epss percentile: 0.14549
- Assignee: [email protected]
- Published at: 2025-08-20T13:15:28Z
- Age in days: 461
- Modified at: 2026-11-05T16:17:19Z
- References total: 5
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-4877
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-787 | Out-of-bounds Write |
Hackerone
- Reports: 1
- Rank: 5211
References
Same in every row:
- Source: nvd
- Tags:
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts