Technical impact
bgpq4 includes an integer overflow in expander.c that processes A<len> replies from IRR servers. A reply with an extreme length value, such as ULONG_MAX or -1, causes the allocation logic to wrap to a single byte, resulting in a heap buffer overflow that corrupts adjacent memory. The overflow can crash bgpq4 or, based on the description, lead to data integrity loss if critical structures are overwritten.
Affected Systems
Users of bgpq4 before release 1.17 are affected. The flaw exists in the expander component across all releases prior to 1.17, so any installation that queries IRR servers using bgpq4 is vulnerable until the application is upgraded.
Risk and Exploitability
The CVSS base score of 8.2 signifies a high severity vulnerability. EPSS data is unavailable and the issue is not listed in CISA KEV, but the likely attack vector is a malicious or compromised IRR server that bgpq4 connects to over an unencrypted TCP session. Attackers controlling the IRR server can send crafted A<len> replies that trigger the overflow, leading to a denial of service, potential heap corruption, or data integrity damage.