CVE-2025-5318
Last modified
CVE-2025-5318 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. A flaw was found in the libssh library in versions less than 0.11.2. 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. EPSS estimates a 1.49% chance of exploitation in the next 30 days.
Description
A flaw was found in the libssh library in versions less than 0.11.2. 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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Redhat | Openshift Container Platform | 4.0 |
| Redhat | Enterprise Linux | 8.0 |
| Redhat | Enterprise Linux | 9.0 |
| Redhat | Enterprise Linux | 10.0 |
| Libssh | Libssh | < 0.11.2 |
References
- https://access.redhat.com/errata/RHSA-2025:18231Third Party Advisory
- https://access.redhat.com/errata/RHSA-2025:18275Third Party Advisory
- https://access.redhat.com/errata/RHSA-2025:18286Third Party Advisory
- https://access.redhat.com/errata/RHSA-2025:19012Third Party Advisory
- https://access.redhat.com/errata/RHSA-2025:19098Third Party Advisory
- https://access.redhat.com/errata/RHSA-2025:19101Third Party Advisory
- https://access.redhat.com/security/cve/CVE-2025-5318Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2369131Issue Tracking, Third Party Advisory
- https://www.libssh.org/security/advisories/CVE-2025-5318.txtVendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-5318?
How severe is CVE-2025-5318?
How do I fix CVE-2025-5318?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-53174Stack overflow risk when vector images are parsed during fil…3.3
- CVE-2025-53175Stack overflow risk when vector images are parsed during fil…3.3
- CVE-2025-53176Stack overflow risk when vector images are parsed during fil…3.3
- CVE-2025-53177Permission bypass vulnerability in the calendar storage modu…3.9
- CVE-2025-53178Permission bypass vulnerability in the calendar storage modu…4.8
- CVE-2025-53179Null pointer dereference vulnerability in the PDF preview mo…7.5
- CVE-2025-53180Null pointer dereference vulnerability in the PDF preview mo…7.5
- CVE-2025-53181Null pointer dereference vulnerability in the PDF preview mo…7.5
- CVE-2025-53182Null pointer dereference vulnerability in the PDF preview mo…7.5
- CVE-2025-53183Null pointer dereference vulnerability in the PDF preview mo…7.5
- CVE-2025-53184Null pointer dereference vulnerability in the PDF preview mo…7.5
- CVE-2025-53185Virtual address reuse issue in the memory management module,…5.5
Are you affected by CVE-2025-5318?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
