Security mailing lists by PureSourceCode

CVE-2025-4877

MEDIUM 4.5CVSS 3.1

Libssh: write beyond bounds in binary to base64 conversion functions

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
20 Aug 2025
Last modified
24 Nov 2026
Assigned by
secalert@redhat.com
NVD status
Deferred
Weakness
CWE-787
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD secalert@redhat.com (Secondary) CVSS 3.1 MEDIUM 4.5 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
CVE List redhat CVSS 3.1 MEDIUM 4.5 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List https://www.libssh.org libssh < 0.11.2 0.11.2
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh
cpe:/a:redhat:enterprise_linux:9::appstream
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh
cpe:/o:redhat:enterprise_linux:10
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh2
cpe:/o:redhat:rhel_els:6
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh2
cpe:/o:redhat:rhel_els:7
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh
cpe:/o:redhat:enterprise_linux:8
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-8
cpe:/a:redhat:openshift:4
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-9
cpe:/a:redhat:openshift:4

References

History

  • 25 Nov 2026 20:36 UTC · CVE List: first stored (published 20 Aug 2025)
  • 25 Nov 2026 20:10 UTC · NVD: first stored (published 20 Aug 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.