CVE-2026-37462
Deferred Deferred - Pending Action
Integer Underflow in GoBGP Causes Denial of Service

Publication date: 2026-06-03

Last updated on: 2026-06-04

Assigner: MITRE

Description
An integer underflow in the BGPUpdate.DecodeFromBytes function (/bgp/bgp.go) of gobgp v4.3.0 allows attackers to cause a Denial of Service (DoS) via supplying a crafted BGP UPDATE message.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-03
Last Modified
2026-06-04
Generated
2026-06-23
AI Q&A
2026-06-03
EPSS Evaluated
2026-06-22
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
osrg gobgp 4.3.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-190 The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability is an integer underflow in the BGPUpdate.DecodeFromBytes function of gobgp version 4.3.0. It occurs when a malformed BGP UPDATE message declares a section length smaller than the actual encoded element. This causes a uint16 subtraction to wrap around to a very large value, leading to silent data corruption as the function reads beyond the intended section boundary without raising an error.

The issue arises because the code does not properly check bounds before subtracting lengths, allowing crafted messages to exploit this underflow. The vulnerability can be triggered by supplying a specially crafted BGP UPDATE message that causes the length fields to underflow.

A security fix was introduced that adds bounds checks before each subtraction to detect and reject malformed messages early, preventing the underflow and subsequent data corruption.

Impact Analysis

This vulnerability can cause a Denial of Service (DoS) condition by allowing attackers to send crafted BGP UPDATE messages that exploit the integer underflow. This leads to silent data corruption and potentially crashes or instability in the gobgp service.

By consuming data beyond the intended boundaries without error, the system may behave unpredictably or become unavailable, disrupting network routing operations that rely on gobgp.

Detection Guidance

This vulnerability involves an integer underflow triggered by malformed BGP UPDATE messages with incorrect section lengths. Detection involves monitoring for such malformed BGP UPDATE messages that declare section lengths smaller than the actual encoded elements.

Since the vulnerability is in the gobgp BGPUpdate.DecodeFromBytes function, one way to detect it is to analyze BGP UPDATE messages for inconsistencies in withdrawn route length or path attribute length fields that could cause underflow.

No specific commands are provided in the resources, but network administrators can use packet capture tools like tcpdump or Wireshark to capture BGP UPDATE messages and inspect the lengths of withdrawn routes and path attributes for anomalies.

  • Use tcpdump to capture BGP traffic: tcpdump -i <interface> tcp port 179 -w bgp_traffic.pcap
  • Analyze the captured packets in Wireshark, filtering for BGP UPDATE messages and inspecting the withdrawn route length and path attribute length fields for suspiciously small values that do not match the actual data length.
Mitigation Strategies

The immediate mitigation step is to update gobgp to a version that includes the security fix addressing this integer underflow vulnerability.

The fix introduces bounds checks before each subtraction operation in the BGPUpdate.DecodeFromBytes function to detect and reject malformed BGP UPDATE messages early, preventing the underflow and potential denial of service.

Until the update can be applied, consider implementing network-level filtering to block malformed BGP UPDATE messages if possible, and monitor BGP sessions for unusual behavior or crashes.

Compliance Impact

The provided information does not include any details about the impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-37462. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart