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.
Conclusion & alert: CVE-2025-5318 is rated Moderate Risk (45.9/100): CVSS High severity, with low exploitation likelihood (EPSS 0.18%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-22 | 0.30% | 0.18% | -0.13% |
| 2 | 2026-04-20 | 0.07% | 0.30% | +0.23% |
| 3 | 2026-01-22 | — | 0.07% | — |
Full EPSS history (11 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.1 | 3.1 | HIGH |
|
2.8 | 5.2 | [email protected] |
| 8.1 | 3.1 | HIGH |
|
2.8 | 5.2 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
— | CVE-2025-5318: 1 source package rows (libssh); 2 state rows across 2 repos (3.22-community, edge-community); fixed 2, open 0. | https://security.alpinelinux.org/vuln/CVE-2025-5318 |
debian
|
not yet assigned | CVE-2025-5318 not yet assigned priority: Debian including 1 source packages (libssh), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2025-5318 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2025-5318 |
suse
|
medium | CVE-2025-5318 severity moderate: SUSE including 361 source package names (0.0.17-1.1:libssh-config-0.9.8-150600.11.3.1, 0.0.17-1.1:libssh4-0.9.8-150600.11.3.1, …), 1060 product×package rows across 367 product lines (Container bci/kiwi, Container bci/spack, … (367 product lines)): Fixed 839, Known Affected 221. | https://www.suse.com/security/cve/CVE-2025-5318/ |
ubuntu
|
medium | CVE-2025-5318 medium priority: Ubuntu including 1 source packages (libssh), 8 status rows across 8 suites (bionic, focal, jammy, noble, oracular, plucky, upstream, xenial): released 8. | https://ubuntu.com/security/CVE-2025-5318 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| redhat | openshift_container_platform | 4.0 | cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:* |
| redhat | enterprise_linux | 8.0 | cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
| redhat | enterprise_linux | 9.0 | cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* |
| redhat | enterprise_linux | 10.0 | cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:* |
| libssh | libssh | < 0.11.2 | cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:* |