Skip to main content
EPSS 0.2%top 90%

CVE-2025-4877: Out-of-bounds Write

0
Medium
VulnerabilityCVE-2025-4877cvecve-2025-4877
Published: 08/20/2025 (08/20/2025, 12:19:18 UTC)
Source: CVE Database V5

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.

CVSS v3.1

Score 4.5medium

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Affected software

Affected versions
=0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/02/2026, 21:57:14 UTC

Technical Analysis

The vulnerability CVE-2025-4877 in libssh occurs specifically in 32-bit builds when the ssh_get_fingerprint_hash() function receives an unexpectedly large input buffer. This triggers an integer overflow in the bin_to_base64() function, causing memory under allocation and enabling out-of-bounds writes that corrupt the heap. The issue has been assigned a CVSS 3.1 base score of 4.5 (medium severity) with attack vector local, high attack complexity, low privileges required, no user interaction, and impacts confidentiality, integrity, and availability to a limited extent. Red Hat has published advisories and released patches for libssh in Red Hat Enterprise Linux 9 and related variants to fix this vulnerability.

Potential Impact

Successful exploitation can lead to heap corruption due to out-of-bounds writes, potentially causing application instability or crashes. The impact on confidentiality, integrity, and availability is rated low to medium. The vulnerability requires local access with high complexity and low privileges, limiting the ease of exploitation. It affects only 32-bit builds of libssh.

Mitigation Recommendations

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
redhat
Date Reserved
2025-05-16T22:23:41.045Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/errata/RHSA-2026:18683","vendor":"Red Hat"},{"url":"https://access.redhat.com/security/cve/CVE-2025-4877","vendor":"Red Hat"}]

Threat ID: 68a5c06fad5a09ad0004bff1

Added to database: 08/20/2025, 12:32:47 UTC

Last enriched: 07/02/2026, 21:57:14 UTC

Last updated: 09/10/2026, 19:36:50 UTC

Views: 202

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses