{"id":"CVE-2026-138151","state":"PUBLISHED","title":"bgpq4 before 1.17 Heap Buffer Overflow via IRRd A<len> Reply Handling","description":"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<len> 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.","publishedAt":"2026-11-28T01:42:59.061Z","updatedAt":"2026-11-28T01:42:59.061Z","severity":{"score":8.2,"label":"High","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["bgpq4 bgpq4"],"affected":[{"vendor":"bgpq4","product":"bgpq4","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.17","versionType":"custom"}],"repo":"https://github.com/bgp/bgpq4"}],"references":["https://github.com/bgp/bgpq4/pull/141","https://github.com/bgp/bgpq4/commit/a232916868d1422edfc7fd5e0a00edd02c80c79a","https://github.com/bgp/bgpq4/commit/37a3adb76f18a800efa6bb02848fbfd6458512e5","https://github.com/bgp/bgpq4/releases/tag/1.17","https://github.com/bgp/bgpq4/blob/1.17/CHANGES","https://github.com/bgp/bgpq4/blob/1.16/expander.c#L722-L771","https://github.com/bgp/bgpq4/blob/1.16/expander.c#L918-L958","https://www.vulncheck.com/advisories/bgpq4-before-1.17-heap-buffer-overflow-via-irrd-a-len-reply-handling"],"weaknesses":["CWE-190"],"ingestedAt":"2026-11-28T01:48:06.029Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/138xxx/CVE-2026-138151.json","commit":"bafc8c82504acb338f60e61d73af6875ff7797ce","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138151","state":"PUBLISHED","datePublished":"2026-11-28T01:42:59.061Z","dateUpdated":"2026-11-28T01:42:59.061Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-28T01:18:19.089Z"},"containers":{"cna":{"title":"bgpq4 before 1.17 Heap Buffer Overflow via IRRd A<len> Reply Handling","descriptions":[{"lang":"en","value":"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<len> 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."}],"affected":[{"vendor":"bgpq4","product":"bgpq4","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.17","versionType":"custom"}],"repo":"https://github.com/bgp/bgpq4"}],"references":[{"url":"https://github.com/bgp/bgpq4/pull/141","tags":["issue-tracking","patch"]},{"url":"https://github.com/bgp/bgpq4/commit/a232916868d1422edfc7fd5e0a00edd02c80c79a","tags":["patch"]},{"url":"https://github.com/bgp/bgpq4/commit/37a3adb76f18a800efa6bb02848fbfd6458512e5","tags":["patch"]},{"url":"https://github.com/bgp/bgpq4/releases/tag/1.17","tags":["release-notes"],"name":"bgpq4 1.17 Release Notes"},{"url":"https://github.com/bgp/bgpq4/blob/1.17/CHANGES","tags":["release-notes"]},{"url":"https://github.com/bgp/bgpq4/blob/1.16/expander.c#L722-L771","tags":["technical-description"]},{"url":"https://github.com/bgp/bgpq4/blob/1.16/expander.c#L918-L958","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/bgpq4-before-1.17-heap-buffer-overflow-via-irrd-a-len-reply-handling","name":"VulnCheck Advisory: bgpq4 before 1.17 Heap Buffer Overflow via IRRd A<len> Reply Handling","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.2,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.9,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","lang":"en","description":"Integer Overflow or Wraparound","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-28T01:42:59.061Z"},"datePublic":"2026-11-19T00:00:00.000Z","credits":[{"lang":"en","value":"Deus Rex","type":"finder"},{"lang":"en","value":"Dickson Wu","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}