UBUNTU-CVE-2026-58050

Source
https://ubuntu.com/security/CVE-2026-58050
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58050.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-58050
Upstream
Published
2026-06-28T02:16:00Z
Modified
2026-07-08T01:15:06.398512058Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H CVSS Calculator
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • 8.3 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

libssh2 through 1.11.1 reads an attacker-controlled 32-bit attribute count from a publickey-subsystem response and uses it in the allocation numattrs * sizeof(libssh2publickey_attribute) without bounds checking, so on 32-bit platforms the multiplication overflows to an undersized buffer. A malicious SSH server can then drive the attribute-parsing loop to write past the allocation, causing a heap buffer overflow in a connecting libssh2 client.

References

Affected packages

Ubuntu:18.04:LTS
libssh2

Package

Name
libssh2
Purl
pkg:deb/ubuntu/libssh2?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.8.0-1
1.8.0-1ubuntu0.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libssh2-1",
            "binary_version": "1.8.0-1ubuntu0.1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58050.json"
Ubuntu:20.04:LTS
libssh2

Package

Name
libssh2
Purl
pkg:deb/ubuntu/libssh2?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.8.0-2.1build1
1.8.0-2.1ubuntu0.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libssh2-1",
            "binary_version": "1.8.0-2.1ubuntu0.1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58050.json"
Ubuntu:22.04:LTS
libssh2

Package

Name
libssh2
Purl
pkg:deb/ubuntu/libssh2?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.9.0-3
1.10.0-2
1.10.0-2build1
1.10.0-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libssh2-1",
            "binary_version": "1.10.0-3"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58050.json"
Ubuntu:24.04:LTS
libssh2

Package

Name
libssh2
Purl
pkg:deb/ubuntu/libssh2?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.11.0-2
1.11.0-3
1.11.0-4
1.11.0-4.1build1
1.11.0-4.1build2
1.11.0-4.1ubuntu0.24.04.1
1.11.0-4.1ubuntu0.24.04.2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libssh2-1t64",
            "binary_version": "1.11.0-4.1ubuntu0.24.04.2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58050.json"
Ubuntu:25.10
libssh2

Package

Name
libssh2
Purl
pkg:deb/ubuntu/libssh2?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.11.1-1
1.11.1-1build1
1.11.1-1ubuntu0.25.10.1
1.11.1-1ubuntu0.25.10.2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libssh2-1t64",
            "binary_version": "1.11.1-1ubuntu0.25.10.2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58050.json"
Ubuntu:26.04:LTS
libssh2

Package

Name
libssh2
Purl
pkg:deb/ubuntu/libssh2?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.11.1-1build1
1.11.1-1build2
1.11.1-1ubuntu0.26.04.1
1.11.1-1ubuntu0.26.04.2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libssh2-1t64",
            "binary_version": "1.11.1-1ubuntu0.26.04.2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58050.json"
Ubuntu:Pro:14.04:LTS
libssh2

Package

Name
libssh2
Purl
pkg:deb/ubuntu/libssh2?arch=source&distro=esm-infra-legacy%2Ftrusty

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.4.3-1
1.4.3-2
1.4.3-2ubuntu0.1
1.4.3-2ubuntu0.2
1.4.3-2ubuntu0.2+esm1
1.4.3-2ubuntu0.2+esm2
1.4.3-2ubuntu0.2+esm3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libssh2-1",
            "binary_version": "1.4.3-2ubuntu0.2+esm3"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58050.json"
Ubuntu:Pro:16.04:LTS
libssh2

Package

Name
libssh2
Purl
pkg:deb/ubuntu/libssh2?arch=source&distro=esm-apps%2Fxenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.5.0-2
1.5.0-2ubuntu0.1
1.5.0-2ubuntu0.1+esm1
1.5.0-2ubuntu0.1+esm2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libssh2-1",
            "binary_version": "1.5.0-2ubuntu0.1+esm2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58050.json"