---
id: CVE-2026-37462
aliases:
  - GHSA-pw7p-7fqv-hpj8
  - GO-2026-5971
title: 'GoBGP: Integer underflow in the BGPUpdate.DecodeFromBytes function'
summary: 'GoBGP: Integer underflow in the BGPUpdate.DecodeFromBytes function'
severity: high
cvss: 7.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'
vendor: osrg
product: github.com/osrg/gobgp/v4
ecosystem: go
affected:
  - github.com/osrg/gobgp/v4 < 4.4.0
patched:
  - github.com/osrg/gobgp/v4 4.4.0
published: '2026-06-03'
updated: '2026-07-24'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-pw7p-7fqv-hpj8'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-37462'
  - url: >-
      https://github.com/osrg/gobgp/commit/9ce8936672ebc07df524da77fa4c6ae26d92be6d
  - url: 'https://github.com/osrg/gobgp'
  - url: 'https://github.com/osrg/gobgp/blob/v4.3.0/pkg/packet/bgp/bgp.go'
tags:
  - osv
  - go
epss: 0.00488
epssPercentile: 0.39332
ingestedAt: '2026-07-25T19:08:11.814Z'
---

## Overview

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.

## Affected packages

- `github.com/osrg/gobgp/v4 < 4.4.0`

## Remediation

Upgrade to a patched release:

- `github.com/osrg/gobgp/v4 4.4.0`
