Vulnerabilities

Vulnerability · CVE-2025-4877

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.

Published Aug 20, 2025 · catalog updated Aug 31, 2026 · Red Hat Red Hat Enterprise Linux 9

Check this week

CVE-2025-4877 is not in CISA KEV. FIRST estimates a 20.00% chance of exploitation in the next 30 days. Check whether you run Red Hat Red Hat Enterprise Linux 9.

Gaps on this record

  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
Medium4.5
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
20.00%
Remediation
Advisory link
Affected products
vendor Red Hat Red Hat Enterprise Linux 9 patch: 0:0.10.4-18.el9

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.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • vendor Red Hat Red Hat Enterprise Linux 9 patch: 0:0.10.4-18.el9patch: 0:0.10.4-18.el9

How to fix CVE-2025-4877

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

CVE-2025-4877 is not in CISA KEV. FIRST estimates a 20.00% chance of exploitation in the next 30 days. Check whether you run Red Hat Red Hat Enterprise Linux 9.

Which versions are affected?

Compare what you have installed with Red Hat Red Hat Enterprise Linux 9 patch: 0:0.10.4-18.el9 patch: 0:0.10.4-18.el9. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

No weakness class is stored. EPSS 20.00%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Aug 20, 2025 · EUVD

    Detected

    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 affect

  2. Aug 31, 2026 · EUVD

    Updated

    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 affect

Sources

  • CVE.orgVulnerability recordCVE-2025-4877

    Official CVE identifier

    cve.org
  • EUVDVulnerability recordEUVD-2025-28257

    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

    euvd.enisa.europa.eu

References

Freshness

Last verified in this catalog Aug 31, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.