CVE-2026-138151: bgpq4 Integer Overflow
Published 2026-11-28 · Updated 2026-12-04 · Source disclosure@vulncheck.com
Not known to be exploited · medium severity — update bgpq4 to 1.17 or later on your normal schedule.
What to do
- Update bgpq4 to version 1.17 or later. Versions before 1.17 are affected.
- Until it is patched, do not leave bgpq4 reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Avoid processing untrusted input with the affected component until it is updated.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| bgpq4 | < 1.17 | 1.17 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is high, so exploitation depends on conditions the attacker does not control. The impact on availability is rated high.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | High | Success depends on conditions outside the attacker's control. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | None | No effect on integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: Integer Overflow
A calculation wraps around to an unexpected value, often leading to an undersized allocation and then memory corruption.
Classified as CWE-190.
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/bgp/bgpq4/commit/37a3adb76f18a800efa6bb02848fbfd6458512e5
- Patchhttps://github.com/bgp/bgpq4/commit/a232916868d1422edfc7fd5e0a00edd02c80c79a
- Patchhttps://github.com/bgp/bgpq4/pull/141
- Patchhttps://github.com/bgp/bgpq4/releases/tag/1.17
- Advisoryhttps://www.vulncheck.com/advisories/bgpq4-before-1.17-heap-buffer-overflow-via-irrd-a-len-reply-handling
- Referencehttps://github.com/bgp/bgpq4/blob/1.16/expander.c#L722-L771
- Referencehttps://github.com/bgp/bgpq4/blob/1.16/expander.c#L918-L958
- Referencehttps://github.com/bgp/bgpq4/blob/1.17/CHANGES