{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "1.17"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "a232916868d1422edfc7fd5e0a00edd02c80c79a"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "37a3adb76f18a800efa6bb02848fbfd6458512e5"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "1.17",
                "range": [
                  {
                    "fixed": "4eba2c33be1a3a4e8ab2c889c1d1f73a5a0616f0"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4eba2c33be1a3a4e8ab2c889c1d1f73a5a0616f0"
            },
            {
              "fixed": "a232916868d1422edfc7fd5e0a00edd02c80c79a"
            },
            {
              "fixed": "37a3adb76f18a800efa6bb02848fbfd6458512e5"
            }
          ],
          "repo": "https://github.com/bgp/bgpq4",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-190"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138151.json"
  },
  "details": "bgpq4 before 1.17 contains an integer overflow vulnerability in expander.c that allows malicious IRR servers to corrupt heap memory by sending crafted A\u003clen\u003e replies. Attackers controlling the IRR server or tampering with the plaintext TCP connection can announce a ULONG_MAX or -1 length, wrapping the allocation to one byte and crashing bgpq4.",
  "id": "CVE-2026-138151",
  "modified": "2026-11-28T02:46:01.036587577Z",
  "published": "2026-11-28T01:42:59.061Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138151.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/bgp/bgpq4"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/bgp/bgpq4/blob/1.16/expander.c#L722-L771"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/bgp/bgpq4/blob/1.16/expander.c#L918-L958"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/bgp/bgpq4/blob/1.17/CHANGES"
    },
    {
      "type": "FIX",
      "url": "https://github.com/bgp/bgpq4/commit/37a3adb76f18a800efa6bb02848fbfd6458512e5"
    },
    {
      "type": "FIX",
      "url": "https://github.com/bgp/bgpq4/commit/a232916868d1422edfc7fd5e0a00edd02c80c79a"
    },
    {
      "type": "FIX",
      "url": "https://github.com/bgp/bgpq4/pull/141"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/bgp/bgpq4/releases/tag/1.17"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138151"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/bgpq4-before-1.17-heap-buffer-overflow-via-irrd-a-len-reply-handling"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "bgpq4 before 1.17 Heap Buffer Overflow via IRRd A\u003clen\u003e Reply Handling"
}