CVE-2026-138151
NVD
Vulnerability Summary
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 v4.0 Base Metrics — Score 8.2 (HIGH)
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NAttack VectorNetwork
Attack ComplexityHigh
Attack RequirementsPresent
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)None
Integrity (Vulnerable System)None
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 5.9)
CVSS v3.1 Base Metrics — Score 5.9 (MEDIUM)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HAttack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh
Affected & Patched Versions
- bgpq4 < 1.17
- bgpq4 1.17
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run bgpq4 and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 28, 2026Published
- Nov 28, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new bgpq4 CVEsYou are reading CVE-2026-138151. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Patchhttps://github.com/bgp/bgpq4/pull/141
- Patchhttps://github.com/bgp/bgpq4/commit/a232916868d1422edfc7fd5e0a00edd02c80c79a
- Patchhttps://github.com/bgp/bgpq4/commit/37a3adb76f18a800efa6bb02848fbfd6458512e5
- Referencehttps://github.com/bgp/bgpq4/releases/tag/1.17
- Referencehttps://github.com/bgp/bgpq4/blob/1.17/CHANGES
- 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://www.vulncheck.com/advisories/bgpq4-before-1.17-heap-buffer-overflow-via-irrd-a-len-reply-handling
Data last checked: Nov 29, 2026 22:08 UTC