Skip to content
Heist/ feed
Back to feed
Medium

hnswlib — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2023-37365

Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.

Products
hnswlib
Affected versions
0.4.0-3build1, 0.5.2-1, 0.6.0-1, 0.6.2-1, 0.6.2-1build1, 0.7.0-1, 0.7.0-2, 0.7.0-2build1, 0.8.0-1, 0.8.0-1build1, 0.8.0-1build3, 0.8.0-1build4, 0.8.0-1build5, 0.9.0-2
Fixed versions
Not specified
CVEs
CVE-2023-37365
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:04 UTC · Revision 1

Source evidence

UBUNTU-CVE-2023-37365

core-osv · Original source

Published 30 Jun 2023, 19:15 UTC

Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.

osv:UBUNTU-CVE-2023-37365

hnswlib

Fixed versions: Not specified

hnswlib

Fixed versions: Not specified

hnswlib

Fixed versions: Not specified

hnswlib

Fixed versions: Not specified

hnswlib

Fixed versions: Not specified

Complete source record
{
  "id": "862bb4468d5ac5dacc17e68034827d3278fec600af97426db4d89b74255f5f93",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2023-37365",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2023-37365",
    "summary": "Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.",
    "evidence": "osv:UBUNTU-CVE-2023-37365",
    "products": [
      {
        "name": {
          "value": "hnswlib",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.0-3build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6.2-1build1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hnswlib",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.7.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.7.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.7.0-2build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8.0-1build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hnswlib",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.0-1build3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hnswlib",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.0-1build5",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.9.0-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "hnswlib",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.0-1build3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.8.0-1build4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.8.0-1build5",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2023-37365",
      "aliases": [
        "UBUNTU-CVE-2023-37365"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hnswlib",
            "purl": "pkg:deb/ubuntu/hnswlib?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.4.0-3build1",
            "0.5.2-1",
            "0.6.0-1",
            "0.6.2-1",
            "0.6.2-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-37365.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-hnswlib",
                "binary_version": "0.6.2-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hnswlib",
            "purl": "pkg:deb/ubuntu/hnswlib?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.7.0-1",
            "0.7.0-2",
            "0.7.0-2build1",
            "0.8.0-1",
            "0.8.0-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-37365.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-hnswlib",
                "binary_version": "0.8.0-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hnswlib",
            "purl": "pkg:deb/ubuntu/hnswlib?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.8.0-1build3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-37365.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-hnswlib",
                "binary_version": "0.8.0-1build3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hnswlib",
            "purl": "pkg:deb/ubuntu/hnswlib?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.8.0-1build5",
            "0.9.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-37365.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-hnswlib",
                "binary_version": "0.9.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "hnswlib",
            "purl": "pkg:deb/ubuntu/hnswlib?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.8.0-1build3",
            "0.8.0-1build4",
            "0.8.0-1build5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-37365.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-hnswlib",
                "binary_version": "0.8.0-1build5"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:24.622801082Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-37365"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2023-37365",
        "https://github.com/nmslib/hnswlib/issues/467",
        "https://www.cve.org/CVERecord?id=CVE-2023-37365"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-37365",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355579,
  "published_at": "2023-06-30T19:15:00+00:00"
}