CVE-2025-5318 json
Libssh: out-of-bounds read in sftp_handle()
published last yr. modified 4d ago also EUVD-2025-23900 , JLSEC-2025-96
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- julia libssh_jll 0.11.3+0
- libssh.org libssh 0.11.2
- Red Hat Red Hat Enterprise Linux 10 0:0.11.1-4.el10_0, 0:0.11.1-4.el10_1
- Red Hat Red Hat Enterprise Linux 8 0:0.9.6-15.el8_10
- Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support 0:0.9.0-4.el8_2.1
- Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support 0:0.9.4-2.el8_4.1
- Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On 0:0.9.4-2.el8_4.1
- Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support 0:0.9.6-4.el8_6.1
- Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service 0:0.9.6-4.el8_6.1
- Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions 0:0.9.6-4.el8_6.1
- Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service 0:0.9.6-13.el8_8.1
- Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions 0:0.9.6-13.el8_8.1
- Red Hat Red Hat Enterprise Linux 9 0:0.10.4-15.el9_6, 0:0.10.4-15.el9_7
- Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions 0:0.9.6-3.el9_0.1
- Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions 0:0.10.4-9.el9_2.1
- Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support 0:0.10.4-13.el9_4.1
- Red Hat Red Hat OpenShift Container Platform 4.12 412.86.202511191939-0
- Red Hat Red Hat OpenShift Container Platform 4.13 413.92.202511261311-0
- Red Hat Red Hat OpenShift Container Platform 4.14 414.92.202511122212-0
- Red Hat Red Hat OpenShift Container Platform 4.15 415.92.202601271320-0
- Red Hat Red Hat OpenShift Container Platform 4.16 416.94.202601071926-0
- Red Hat Red Hat OpenShift Container Platform 4.17 417.94.202510282022-0
- Red Hat Red Hat OpenShift Container Platform 4.18 418.94.202511041748-0
- Red Hat Red Hat OpenShift Container Platform 4.19 4.19.9.6.202510281054-0
- Red Hat Red Hat OpenShift Container Platform 4.20 4.20.9.6.202510290321-0
- Red Hat Red Hat AI Inference Server 3.2 3.2.2-1764871796, 3.2.2-1765379049, 3.2.2-1765379088, 1772160593, 1772160625
- Red Hat Red Hat OpenShift distributed tracing 3.7.0 rhosdt-3.7-1762254519, rhosdt-3.7-1762254530, rhosdt-3.7-1762254545, rhosdt-3.7-1762254546, rhosdt-3.7-1762254552, rhosdt-3.7-1762255881
- libssh Debian 12 0.10.6-0+deb12u2
- libssh Debian 14, Debian 13 0.11.2-1
debian advisories DEBIAN-CVE-2025-5318
- libssh Ubuntu 22.04 LTS 0.9.6-2ubuntu0.22.04.4
- libssh Ubuntu 24.04 LTS 0.10.6-2ubuntu0.1
- libssh Ubuntu Pro 16.04 LTS 0.6.3-4.3ubuntu0.6+esm2
- libssh Ubuntu Pro 18.04 LTS 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm4
- libssh Ubuntu Pro 20.04 LTS 0.9.3-2ubuntu2.5+esm1
ubuntu advisories UBUNTU-CVE-2025-5318
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libssh RHEL 10.1 0.11.1-4.el10_1
- libssh-config RHEL 10.1 0.11.1-4.el10_1
- libssh RHEL 9 0.10.4-15.el9_7
- libssh-config RHEL 9 0.10.4-15.el9_7
- libssh RHEL 8 0.9.6-15.el8_10
- libssh-config RHEL 8 0.9.6-15.el8_10
- libssh RHEL 9 0.10.4-15.el9_6
- libssh-config RHEL 9 0.10.4-15.el9_6
red hat advisories RHSA-2025:21013RHSA-2025:20943RHSA-2025:19472RHSA-2025:19470RHSA-2025:19401RHSA-2025:19400
- libssh Linux Micro 6.1 0.10.6-slfo.1.1_2.1
- libssh Linux Micro 6.0 0.10.6-2.1
- libssh SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +3 more 0.9.8-150200.13.9.1
- libssh SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +10 more 0.9.8-150400.3.9.1
- libssh SLE Module for Basesystem 15 SP7, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 0.9.8-150600.11.3.1
- libssh SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 0.6.3-12.15.1
- libssh SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 0.9.8-3.15.1
suse advisories SUSE-SU-2025:20596-1SUSE-SU-2025:20557-1SUSE-SU-2025:02755-1SUSE-SU-2025:02281-1SUSE-SU-2025:02279-1SUSE-SU-2025:02278-1
- libssh openSUSE Tumbleweed 0.11.2-1.1
opensuse advisories openSUSE-SU-2025:15243-1
- libssh AlmaLinux 9 0.10.4-15.el9_7
- libssh-config AlmaLinux 9 0.10.4-15.el9_7
- libssh AlmaLinux 10 0.11.1-4.el10_1
- libssh-config AlmaLinux 10 0.11.1-4.el10_1
- libssh AlmaLinux 8 0.9.6-15.el8_10
- libssh-config AlmaLinux 8 0.9.6-15.el8_10
- libssh-config AlmaLinux 10 0.11.1-4.el10_0
- libssh AlmaLinux 9 0.10.4-15.el9_6
almalinux advisories ALSA-2025:20943ALSA-2025:21013ALSA-2025:18286ALSA-2025:18231ALSA-2025:18275
- libssh Rocky Linux 8 0.9.6-15.el8_10
- libssh Rocky Linux 9 0.10.4-15.el9_6
- libssh Rocky Linux 10 0.11.1-4.el10_0
rocky linux advisories RLSA-2025:18286RLSA-2025:20943RLSA-2025:18231RLSA-2025:18275
- libssh Alpine 3.24, Alpine 3.23, Alpine 3.22 0.11.2-r0
alpine advisories ALPINE-CVE-2025-5318
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libssh CBL-Mariner 2.0, Azure Linux 3.0 0.10.6-2
azure linux advisories AZL-64346AZL-64358
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Is CVE-2025-5318 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-5318 updated cvss 5.4
libssh: out-of-bounds read in sftp_handle()
-
Red Hat AI Inference Server 3.2 rhaiis 1772160593, rhaiis 1772160625, rhaiis 3.2.2-1764871796, rhaiis 3.2.2-1765379049, rhaiis 3.2.2-1765379088fixed: vendor fix RHSA-2025:23080
-
Red Hat Enterprise Linux AppStream (v. 8) libssh-devel 0.9.6-15.el8_10, libssh-debuginfo 0.9.6-15.el8_10, libssh-debugsource 0.9.6-15.el8_10fixed: vendor fix RHSA-2025:18286
-
Red Hat Enterprise Linux AppStream (v. 9) libssh-devel 0.10.4-15.el9_6, libssh-devel 0.10.4-15.el9_7, libssh-debuginfo 0.10.4-15.el9_6, libssh-debuginfo 0.10.4-15.el9_7, libssh-debugsource 0.10.4-15.el9_6, libssh-debugsource 0.10.4-15.el9_7fixed: vendor fix RHSA-2025:18275
-
Red Hat Enterprise Linux AppStream (v. 10) libssh-devel 0.11.1-4.el10_0, libssh-devel 0.11.1-4.el10_1, libssh-debuginfo 0.11.1-4.el10_0, libssh-debuginfo 0.11.1-4.el10_1, libssh-debugsource 0.11.1-4.el10_0, libssh-debugsource 0.11.1-4.el10_1fixed: vendor fix RHSA-2025:18231
-
Red Hat Enterprise Linux AppStream AUS (v. 8.2) libssh-devel 0.9.0-4.el8_2.1, libssh-debuginfo 0.9.0-4.el8_2.1, libssh-debugsource 0.9.0-4.el8_2.1fixed: vendor fix RHSA-2025:19400
-
Red Hat Enterprise Linux AppStream AUS (v.8.4) libssh-devel 0.9.4-2.el8_4.1, libssh-debuginfo 0.9.4-2.el8_4.1, libssh-debugsource 0.9.4-2.el8_4.1fixed: vendor fix RHSA-2025:19401
-
Red Hat Enterprise Linux AppStream AUS (v.8.6) libssh-devel 0.9.6-4.el8_6.1, libssh-debuginfo 0.9.6-4.el8_6.1, libssh-debugsource 0.9.6-4.el8_6.1 Red Hat Enterprise Linux AppStream E4S (v.8.6) libssh-devel 0.9.6-4.el8_6.1, libssh-debuginfo 0.9.6-4.el8_6.1, libssh-debugsource 0.9.6-4.el8_6.1fixed: vendor fix RHSA-2025:19098
-
Red Hat Enterprise Linux AppStream E4S (v.8.8) libssh-devel 0.9.6-13.el8_8.1, libssh-debuginfo 0.9.6-13.el8_8.1, libssh-debugsource 0.9.6-13.el8_8.1fixed: vendor fix RHSA-2025:19101
show 30 moreshow fewer
-
Red Hat Enterprise Linux AppStream E4S (v.9.0) libssh-devel 0.9.6-3.el9_0.1, libssh-debuginfo 0.9.6-3.el9_0.1, libssh-debugsource 0.9.6-3.el9_0.1fixed: vendor fix RHSA-2025:19472
-
Red Hat Enterprise Linux AppStream E4S (v.9.2) libssh-devel 0.10.4-9.el9_2.1, libssh-debuginfo 0.10.4-9.el9_2.1, libssh-debugsource 0.10.4-9.el9_2.1fixed: vendor fix RHSA-2025:19470
-
Red Hat Enterprise Linux AppStream EUS (v.9.4) libssh-devel 0.10.4-13.el9_4.1, libssh-debuginfo 0.10.4-13.el9_4.1, libssh-debugsource 0.10.4-13.el9_4.1fixed: vendor fix RHSA-2025:19012
-
Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) libssh-devel 0.9.4-2.el8_4.1, libssh-debuginfo 0.9.4-2.el8_4.1, libssh-debugsource 0.9.4-2.el8_4.1fixed: vendor fix RHSA-2025:19401
-
Red Hat Enterprise Linux AppStream TUS (v.8.6) libssh-devel 0.9.6-4.el8_6.1, libssh-debuginfo 0.9.6-4.el8_6.1, libssh-debugsource 0.9.6-4.el8_6.1fixed: vendor fix RHSA-2025:19098
-
Red Hat Enterprise Linux AppStream TUS (v.8.8) libssh-devel 0.9.6-13.el8_8.1, libssh-debuginfo 0.9.6-13.el8_8.1, libssh-debugsource 0.9.6-13.el8_8.1fixed: vendor fix RHSA-2025:19101
-
Red Hat Enterprise Linux BaseOS (v. 8) libssh 0.9.6-15.el8_10, libssh-config 0.9.6-15.el8_10fixed: vendor fix RHSA-2025:18286
-
Red Hat Enterprise Linux BaseOS (v. 9) libssh 0.10.4-15.el9_6, libssh 0.10.4-15.el9_7, libssh-config 0.10.4-15.el9_6, libssh-config 0.10.4-15.el9_7fixed: vendor fix RHSA-2025:18275
-
Red Hat Enterprise Linux BaseOS (v. 10) libssh 0.11.1-4.el10_0, libssh 0.11.1-4.el10_1, libssh-config 0.11.1-4.el10_0, libssh-config 0.11.1-4.el10_1fixed: vendor fix RHSA-2025:18231
-
Red Hat Enterprise Linux BaseOS AUS (v. 8.2) libssh 0.9.0-4.el8_2.1, libssh-config 0.9.0-4.el8_2.1fixed: vendor fix RHSA-2025:19400
-
Red Hat Enterprise Linux BaseOS AUS (v.8.4) libssh 0.9.4-2.el8_4.1, libssh-config 0.9.4-2.el8_4.1fixed: vendor fix RHSA-2025:19401
-
Red Hat Enterprise Linux BaseOS AUS (v.8.6) libssh 0.9.6-4.el8_6.1, libssh-config 0.9.6-4.el8_6.1 Red Hat Enterprise Linux BaseOS E4S (v.8.6) libssh 0.9.6-4.el8_6.1, libssh-config 0.9.6-4.el8_6.1fixed: vendor fix RHSA-2025:19098
-
Red Hat Enterprise Linux BaseOS E4S (v.8.8) libssh 0.9.6-13.el8_8.1, libssh-config 0.9.6-13.el8_8.1fixed: vendor fix RHSA-2025:19101
-
Red Hat Enterprise Linux BaseOS E4S (v.9.0) libssh 0.9.6-3.el9_0.1, libssh-config 0.9.6-3.el9_0.1fixed: vendor fix RHSA-2025:19472
-
Red Hat Enterprise Linux BaseOS E4S (v.9.2) libssh 0.10.4-9.el9_2.1, libssh-config 0.10.4-9.el9_2.1fixed: vendor fix RHSA-2025:19470
-
Red Hat Enterprise Linux BaseOS EUS (v.9.4) libssh 0.10.4-13.el9_4.1, libssh-config 0.10.4-13.el9_4.1fixed: vendor fix RHSA-2025:19012
-
Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) libssh 0.9.4-2.el8_4.1, libssh-config 0.9.4-2.el8_4.1fixed: vendor fix RHSA-2025:19401
-
Red Hat Enterprise Linux BaseOS TUS (v.8.6) libssh 0.9.6-4.el8_6.1, libssh-config 0.9.6-4.el8_6.1fixed: vendor fix RHSA-2025:19098
-
Red Hat Enterprise Linux BaseOS TUS (v.8.8) libssh 0.9.6-13.el8_8.1, libssh-config 0.9.6-13.el8_8.1fixed: vendor fix RHSA-2025:19101
-
Red Hat OpenShift Container Platform 4.12 rhcos 412.86.202511191939fixed: vendor fix RHSA-2025:21829
-
Red Hat OpenShift Container Platform 4.13 rhcos 413.92.202511261311fixed: vendor fix RHSA-2025:22275
-
Red Hat OpenShift Container Platform 4.14 rhcos 414.92.202511122212fixed: vendor fix RHSA-2025:21329
-
Red Hat OpenShift Container Platform 4.15 rhcos 415.92.202601271320fixed: vendor fix RHSA-2026:1541
-
Red Hat OpenShift Container Platform 4.16 rhcos 416.94.202601071926fixed: vendor fix RHSA-2026:0326
-
Red Hat OpenShift Container Platform 4.17 rhcos 417.94.202510282022fixed: vendor fix RHSA-2025:19313
-
Red Hat OpenShift Container Platform 4.18 rhcos 418.94.202511041748fixed: vendor fix RHSA-2025:19864
-
Red Hat OpenShift Container Platform 4.19 rhcos 4.19.9.6.202510281054fixed: vendor fix RHSA-2025:19300
-
Red Hat OpenShift Container Platform 4.20 rhcos 4.20.9.6.202510290321fixed: vendor fix RHSA-2025:19295
-
Red Hat OpenShift distributed tracing 3.7.0 rhosdt rhosdt-3.7-1762254519, rhosdt rhosdt-3.7-1762254530, rhosdt rhosdt-3.7-1762254545, rhosdt rhosdt-3.7-1762254546, rhosdt rhosdt-3.7-1762254552, rhosdt rhosdt-3.7-1762255881fixed: vendor fix RHSA-2025:19807
-
Red Hat OpenShift distributed tracing 3.7.0 rhosdt rhosdt-3.7-1762257871not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 7mo ago
Exploit prediction
1.89% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| OSV | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | libssh_jll | <0.11.3+0 |
0.11.3+0 |
Affected products
- libssh.org libssh
- Red Hat Red Hat Enterprise Linux 10
- Red Hat Red Hat Enterprise Linux 8
- Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support
- Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
- Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service
- Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
- Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service
- Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
- Red Hat Red Hat Enterprise Linux 9
- Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
- Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
- Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support
- Red Hat Red Hat OpenShift Container Platform 4.12
- Red Hat Red Hat OpenShift Container Platform 4.13
- Red Hat Red Hat OpenShift Container Platform 4.14
- Red Hat Red Hat OpenShift Container Platform 4.15
- Red Hat Red Hat OpenShift Container Platform 4.16
- Red Hat Red Hat OpenShift Container Platform 4.17
- Red Hat Red Hat OpenShift Container Platform 4.18
- Red Hat Red Hat OpenShift Container Platform 4.19
- Red Hat Red Hat OpenShift Container Platform 4.20
- Red Hat Red Hat AI Inference Server 3.2
- Red Hat Red Hat OpenShift distributed tracing 3.7.0
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
access.redhat.com
/errata/RHSA-2025:18231
vendor-advisory, third-party-advisory, web
-
access.redhat.com
/errata/RHSA-2025:18275
vendor-advisory, third-party-advisory, web
-
access.redhat.com
/errata/RHSA-2025:18286
vendor-advisory, third-party-advisory, web
-
access.redhat.com
/errata/RHSA-2025:19012
vendor-advisory, third-party-advisory, web
-
access.redhat.com
/errata/RHSA-2025:19098
vendor-advisory, third-party-advisory, web
-
access.redhat.com
/errata/RHSA-2025:19101
vendor-advisory, third-party-advisory, web
-
access.redhat.com
/errata/RHSA-2025:19295
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:19300
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:19313
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:19400
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:19401
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:19470
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:19472
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:19807
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:19864
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:20943
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:21013
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:21329
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:21829
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:22275
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:23078
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:23079
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2025:23080
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2026:0326
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2026:1541
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2026:3461
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2026:3462
vendor-advisory, web
-
libssh.org
/security/advisories/CVE-2025-5318.txt
vendor-advisory, web
-
access.redhat.com
/security/cve/CVE-2025-5318
vdb-entry, third-party-advisory, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2369131
issue-tracking, third-party-advisory, web
Sources
- CVE List CVE-2025-5318
- NVD CVE-2025-5318
- OSV JLSEC-2025-96
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.