Out-of-bounds Read Affecting github.com/osrg/gobgp/v4/packet/bgp package, versions <4.6.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMOSRGGOBGPV4PACKETBGP-17934807
  • published10 Aug 2026
  • disclosed9 Jul 2026
  • creditUnknown

Introduced: 9 Jul 2026

CVE-2026-49837  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade github.com/osrg/gobgp/v4/packet/bgp to version 4.6.0 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the BGP OPEN capability parsing process. An attacker can influence peer AS validation and capability negotiation by sending a specially crafted BGP OPEN message with a malformed capability length, causing the parser to read bytes outside the declared boundary.

CVSS Base Scores

version 4.0
version 3.1