4.5

CVE-2025-4877: Libssh: write beyond bounds in binary to base64 conversion functions

Deferred
AliasesUBUNTU-CVE-2025-4877DEBIAN-CVE-2025-4877ALPINE-CVE-2025-4877
Published 20-08-2025Last modified 24-11-2026

Vulnerability summary

CVE-2025-4877 is a medium (CVSS 4.5) Out-of-bounds Write vulnerability in libssh. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 18.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.26%
0%100%
Low · +0.05 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 13 · Related 10

Timeline

  1. 20-08-2025
    PublishedVulnerability first disclosed.
  2. 24-11-2026
    Last modifiedVulnerability information updated.

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 metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.26%

Chance of exploitation in the next 30 days

Percentile

18%

Versus all other CVEs

30-day change

Increase +0.05 pp

From 0.20% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • libssh< 0.11.2-r0
Debian1 product
  • libssh< 0.10.6-0+deb12u2 | < 0.11.2-1
Opensuse1 product
  • hydra< 9.9-1.1
Ubuntu1 product
  • libssh< 0.6.3-4.3ubuntu0.6+esm2 | < 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm4 | < 0.9.3-2ubuntu2.5+esm1 | < 0.9.6-2ubuntu0.22.04.4 | < 0.10.6-2ubuntu0.1

4 vendors · 4 products

References

12 links
Show all 12 references