UBUNTU-CVE-2026-124959

Source
https://ubuntu.com/security/CVE-2026-124959
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-124959.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-124959
Upstream
Published
2026-11-10T00:00:00Z
Modified
2026-11-11T09:39:20Z
Severity
  • Ubuntu - medium
Summary
[none]
Details

The loadIndex function in nmslib hnswlib and Spotify Voyager does not verify that the element count in a serialized HNSW index is within the stored capacity used to allocate the heap buffer. An attacker can supply a crafted index file with an element count greater than the stored capacity, causing the loader to write beyond the allocated buffer and potentially crash the application when it loads the file.

References

Affected packages

Ubuntu:22.04:LTS / hnswlib

Package

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

Affected ranges

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

Affected versions

0.*
0.4.0-3build1
0.5.2-1
0.6.0-1
0.6.2-1
0.6.2-1build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-hnswlib",
            "binary_version": "0.6.2-1build1"
        }
    ]
}

Database specific

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

Ubuntu:24.04:LTS / hnswlib

Package

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

Affected ranges

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

Affected versions

0.*
0.7.0-1
0.7.0-2
0.7.0-2build1
0.8.0-1
0.8.0-1build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-hnswlib",
            "binary_version": "0.8.0-1build1"
        }
    ]
}

Database specific

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

Ubuntu:26.10 / hnswlib

Package

Name
hnswlib
Purl
pkg:deb/ubuntu/hnswlib?arch=source&distro=stonking

Affected ranges

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

Affected versions

0.*
0.8.0-1build5
0.9.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-hnswlib",
            "binary_version": "0.9.0-2"
        }
    ]
}

Database specific

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

Ubuntu:26.04:LTS / hnswlib

Package

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

Affected ranges

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

Affected versions

0.*
0.8.0-1build3
0.8.0-1build4
0.8.0-1build5

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-hnswlib",
            "binary_version": "0.8.0-1build5"
        }
    ]
}

Database specific

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