Skip to content
Heist/ feed
Back to feed
HighFix available

libssh — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-3731

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.

Products
libssh
Affected versions
0.10.5-2, 0.10.5-3, 0.10.5-3+hurd.1, 0.10.6-0+deb12u1, 0.10.6-0+deb12u2, 0.11.2-1, 0.11.2-1+deb13u1, 0.11.3-1
Fixed versions
0.10.6-0+deb12u3, 0.11.5-0+deb13u1, 0.12.0-1
CVEs
CVE-2026-3731
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:26 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-3731

core-osv · Original source

Published 8 Mar 2026, 11:15 UTC

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.

osv:DEBIAN-CVE-2026-3731

libssh

Fixed versions: 0.10.6-0+deb12u3

libssh

Fixed versions: 0.11.5-0+deb13u1

libssh

Fixed versions: 0.12.0-1

Complete source record
{
  "id": "6e4bcbaf1b18c0979865f8e24f2add0d3997156a2c8a22ad22eb78e6c652e45c",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-3731",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-3731",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2026-3731",
    "products": [
      {
        "name": {
          "value": "libssh",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.10.6-0+deb12u3",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.10.5-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.10.5-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.10.5-3+hurd.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.10.6-0+deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.10.6-0+deb12u2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libssh",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.11.5-0+deb13u1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.11.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.11.2-1+deb13u1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.11.3-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libssh",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.12.0-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.11.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.11.3-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2026-3731",
      "aliases": [
        "DEBIAN-CVE-2026-3731"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.10.6-0+deb12u3"
                }
              ]
            }
          ],
          "package": {
            "name": "libssh",
            "purl": "pkg:deb/debian/libssh?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "0.10.5-2",
            "0.10.5-3",
            "0.10.5-3+hurd.1",
            "0.10.6-0+deb12u1",
            "0.10.6-0+deb12u2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-3731.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.11.5-0+deb13u1"
                }
              ]
            }
          ],
          "package": {
            "name": "libssh",
            "purl": "pkg:deb/debian/libssh?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "0.11.2-1",
            "0.11.2-1+deb13u1",
            "0.11.3-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-3731.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.12.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libssh",
            "purl": "pkg:deb/debian/libssh?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "0.11.2-1",
            "0.11.3-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-3731.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-20T21:00:06.125972571Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-3731"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-3731"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-3731",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 390701,
  "published_at": "2026-03-08T11:15:50.307+00:00"
}