CVE-2026-138151

bgpq4 before 1.17 Heap Buffer Overflow via IRRd A<len> Reply Handling

Published Nov 28, 2026 CVSS 4.0 · 8.2 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade bgpq4 to version 1.17 or later, which eliminates the integer overflow issue.
  • Restrict bgpq4 connections to trusted IRR servers using firewall rules or host‑based access controls to limit exposure while the patch is applied.
  • If upgrading immediately is not possible, temporarily disable the expander functionality or block its backend processes in the configuration to prevent malicious A<len> replies from being parsed.
  • Monitor bgpq4 logs and system metrics for unexpected crashes or abnormal A<len> traffic, and alert administrators when such events are detected.

Generated by OpenCVE AI on November 28, 2026 at 03:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title bgpq4 before 1.17 Heap Buffer Overflow via IRRd A<len> Reply Handling
Weaknesses CWE-190
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.2, 'vector': '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'}

Subscriptions

No data.

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 28, 2026, 1:42 AM
Reserved
Nov 28, 2026, 1:18 AM
Status
Received
Published
Nov 28, 2026, 2:17 AM
Modified
Nov 28, 2026, 2:17 AM