CVE-2026-138151
bgpq4 before 1.17 Heap Buffer Overflow via IRRd A<len> Reply Handling
High · 8.2Fix available
- CVSS
- 8.2
- EPSS
- —
- Published
- 2026-11-28
- Age
- 12h old
- Modified
- 2026-11-28
- Product
- bgpq4 bgpq4
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
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.
Fixed in
1.17
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | bgpq4 | >=0, <1.17 | 1.17 |
Sources
- NVD · first seen 12h ago · NVD terms of use
- OSV · first seen 11h ago · CC-BY 4.0
- CVE List · first seen 12h ago · CVE Terms of Use
References
- https://github.com/bgp/bgpq4/pull/141 issue-tracking
- https://github.com/bgp/bgpq4/commit/a232916868d1422edfc7fd5e0a00edd02c80c79a patch
- https://github.com/bgp/bgpq4/commit/37a3adb76f18a800efa6bb02848fbfd6458512e5 patch
- https://github.com/bgp/bgpq4/releases/tag/1.17 release-notes
- https://github.com/bgp/bgpq4/blob/1.17/CHANGES release-notes
- https://github.com/bgp/bgpq4/blob/1.16/expander.c#L722-L771 technical-description
- https://github.com/bgp/bgpq4/blob/1.16/expander.c#L918-L958 technical-description
- https://www.vulncheck.com/advisories/bgpq4-before-1.17-heap-buffer-overflow-via-irrd-a-len-reply-handling third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138151.json advisory
- https://github.com/bgp/bgpq4 package
- https://nvd.nist.gov/vuln/detail/CVE-2026-138151 advisory