CVE-2025-4877: Out-of-bounds Write
Source CVE Database V5
Not known to be exploited · CVSS 4.5 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 10% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 20 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
AI-suggested
Red Hat has released official security updates that fix this vulnerability in libssh packages for Red Hat Enterprise Linux 9 and related distributions. Users should apply these updates promptly to remediate the issue. Refer to Red Hat advisory RHSA-2026:18683 and the linked update instructions at https://access.redhat.com/articles/11258 for detailed patching guidance. No additional mitigation is required beyond applying the official fix.
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.
References
- access.redhat.com/errata/RHSA-2026:18683 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2025-4877 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2376193 (opens in a new tab)
- git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e911b2747732d (opens in a new tab)
- libssh.org/security/advisories/CVE-2025-4877.txt (opens in a new tab)