cve.bz

CVE-2026-3731 libssh libssh: Out-of-bounds Read

6.9 mediumEPSS 0.7%Fix available

Medium (6.9) in libssh libssh. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
A weakness has been identified in libssh up to 0.11.3. The impacted element is the function sftp_extensions_get_name/sftp_extensions_get_data of the file src/sftp.c of the component SFTP Extension Name Handler. Executing a manipulation of the argument idx can lead to out-of-bounds read. The attack may be performed from remote. Upgrading to version 0.11.4 and 0.12.0 is sufficient to resolve this issue. This patch is called 855a0853ad3abd4a6cd85ce06fce6d8d4c7a0b60. You should upgrade the affected component.

Severity

CVSS 4.0

6.9 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 55th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-03-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-3731 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-3731?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-3731?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-3731 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libssh:libsshthrough 0.11.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libssh0.10.6-0+deb12u3DEBIAN-CVE-2026-3731 DLA-4844-1
Debian13libssh0.11.5-0+deb13u1DEBIAN-CVE-2026-3731 DSA-6410-1
Debian14libssh0.12.0-1DEBIAN-CVE-2026-3731
Ubuntu22.04:LTSlibssh0.9.6-2ubuntu0.22.04.7UBUNTU-CVE-2026-3731 USN-8093-1
Ubuntu24.04:LTSlibssh0.10.6-2ubuntu0.4UBUNTU-CVE-2026-3731 USN-8093-1
Ubuntu25.10libssh0.11.2-1ubuntu0.3UBUNTU-CVE-2026-3731 USN-8093-1
Ubuntu26.04:LTSlibssh0.11.3-1ubuntu2UBUNTU-CVE-2026-3731 USN-8093-2
UbuntuPro:16.04:LTSlibssh0.6.3-4.3ubuntu0.6+esm5UBUNTU-CVE-2026-3731 USN-8093-1
UbuntuPro:18.04:LTSlibssh0.8.0~20170825.94fa1e38-1ubuntu0.7+esm7UBUNTU-CVE-2026-3731 USN-8093-1
UbuntuPro:20.04:LTSlibssh0.9.3-2ubuntu2.5+esm4UBUNTU-CVE-2026-3731 USN-8093-1
Red Hathummingbird:1libssh, libssh-devel, libssh-config0:0.12.0-1.1.hum1RHSA-2026:7067
SUSELinux Enterprise Micro 5.2libssh0.9.8-150200.13.18.1SUSE-SU-2026:0936-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5libssh0.9.8-150400.3.17.1SUSE-SU-2026:1565-1
SUSELinux Enterprise Module for Basesystem 15 SP7libssh0.9.8-150600.11.12.1SUSE-SU-2026:1310-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5libssh0.9.8-3.24.1SUSE-SU-2026:3302-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5libssh0.6.3-12.28.1SUSE-SU-2026:1344-1
SUSELinux Micro 6.0libssh0.10.6-5.1SUSE-SU-2026:23056-1
SUSELinux Micro 6.1libssh0.10.6-slfo.1.1_5.1SUSE-SU-2026:20767-1
openSUSELeap 15.6libssh0.9.8-150600.11.12.1SUSE-SU-2026:1310-1
Azure Linux2libsshno fix listedAZL-79544
Azure Linux3libssh0.10.6-6AZL-79547
Alpaquita23, 25, streamlibssh0.11.4-r0BELL-CVE-2026-3731

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A MODERATE impact out-of-bounds read vulnerability exists in libssh's SFTP extension. A remote attacker could exploit this flaw by manipulating an argument to the `sftp_extensions_get_name/sftp_extensions_get_data` functions, potentially leading to a denial of service or information disclosure. This affects Red Hat Enterprise Linux versions utilizing libssh.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imageslibssh-main-0.12.0-1.1.hum1Fixed 2026-04-08RHSA-2026:7067
Red Hat Enterprise Linux 10libsshFix deferred
Red Hat Enterprise Linux 6libssh2Fix deferred
Red Hat Enterprise Linux 7libssh2Fix deferred
Red Hat Enterprise Linux 8libsshFix deferred
Red Hat Enterprise Linux 9libsshFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-3731.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON