Skip to main content
Network Thinking Solutions Logo

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. 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.

All CVEs
CVE-2025-4877Published 8/20/2025

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.

Vendor advisory
CVSS 3.14.5Medium

Overview

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.

Published
8/20/2025
Last modified
11/24/2026
CVE assigner
redhat
NVD analysis
Deferred

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
libssh
Vendor not specified
< 0.11.2

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source
Red Hat Enterprise Linux 9
Red Hat
Range not specified — verify advisory

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source
Red Hat Enterprise Linux 10
Red Hat
Range not specified — verify advisory

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source
Red Hat Enterprise Linux 6
Red Hat
Range not specified — verify advisory

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source
Red Hat Enterprise Linux 7
Red Hat
Range not specified — verify advisory

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source
Red Hat Enterprise Linux 8
Red Hat
Range not specified — verify advisory

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source
Red Hat OpenShift Container Platform 4
Red Hat
Range not specified — verify advisory

Verify advisory

Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability.

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

access.redhat.com/errata/RHSA-2026:18683vendor-advisory · x_refsource_REDHAT

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

4.5 · Medium CVSS 3.1

Scored by redhat

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

4.5 · Medium CVSS 3.1

Scored by secalert@redhat.com

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Related weaknesses

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.