Integer overflow in bgpq4 IRRd reply handling corrupts heap memory
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-190 and the CVSS impact.
Summary
bgpq4 before 1.17 contains an integer overflow in expander.c, a flaw classified as CWE-190 (Integer Overflow or Wraparound). A malicious IRR server, or an attacker who tampers with the plaintext TCP connection, can send a crafted A<len> reply that wraps the allocation to one byte and corrupts heap memory. The attacker must control the IRR server or sit on the connection, and the result is a crash of bgpq4.
Written with Claude Haiku 5.5 from the sources below · 2026-11-28
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade bgpq4 to version 1.17, which fixes the flaw. The sources list no advisory identifiers for this fix.
Written with Claude Haiku 5.5 from the sources below · 2026-11-28
- Fix · CNA bgpq4 (bgpq4) Fixed in 1.17
Timeline
- 2026-11-28 Threatist record created from CVE-2026-138151
- 2026-11-28 Alias added: GHSA-c68x-j5fv-6w36
References
Patch 3
Sources
- CVE-2026-138151 · CVE Program
- CVE-2026-138151 · NVD
- FIRST EPSS
- GHSA-c68x-j5fv-6w36 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences