Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- 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://github.com/bgp/bgpq4/blob/1.17/CHANGES
- https://github.com/bgp/bgpq4/commit/37a3adb76f18a800efa6bb02848fbfd6458512e5
- https://github.com/bgp/bgpq4/commit/a232916868d1422edfc7fd5e0a00edd02c80c79a
- https://github.com/bgp/bgpq4/pull/141
- https://github.com/bgp/bgpq4/releases/tag/1.17
- https://www.vulncheck.com/advisories/bgpq4-before-1.17-heap-buffer-overflow-via-
FAQ
What is CVE-2026-138151?
CVE-2026-138151 is a vulnerability with a CVSS score of 5.9 (MEDIUM). 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 ser...
How severe is CVE-2026-138151?
CVE-2026-138151 has been rated MEDIUM with a CVSS base score of 5.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-138151?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.