We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-5318

Libssh: out-of-bounds read in sftp_handle()



Description

A flaw was found in the libssh library. An out-of-bounds read can be triggered in the sftp_handle function due to an incorrect comparison check that permits the function to access memory beyond the valid handle list and to return an invalid pointer, which is used in further processing. This vulnerability allows an authenticated remote attacker to potentially read unintended memory regions, exposing sensitive information or affect service behavior.

Reserved 2025-05-29 | Published 2025-06-24 | Updated 2025-06-24 | Assigner redhat


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

Problem types

Out-of-bounds Read

Product status

Default status
affected

Default status
affected

Default status
affected

Default status
affected

Timeline

2025-05-29:Reported to Red Hat.
2025-06-24:Made public.

Credits

Red Hat would like to thank Ronald Crane for reporting this issue.

References

access.redhat.com/security/cve/CVE-2025-5318 vdb-entry

bugzilla.redhat.com/show_bug.cgi?id=2369131 (RHBZ#2369131) issue-tracking

www.libssh.org/security/advisories/CVE-2025-5318.txt

cve.org (CVE-2025-5318)

nvd.nist.gov (CVE-2025-5318)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2025-5318

Support options

Helpdesk Chat, Email, Knowledgebase