Off-by-one Error Affecting github.com/osrg/gobgp/v3/pkg/packet/bgp package, versions <4.4.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.41% (33rd percentile)

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-GITHUBCOMOSRGGOBGPV3PKGPACKETBGP-15855305
  • published31 Mar 2026
  • disclosed30 Mar 2026
  • creditUnknown

Introduced: 30 Mar 2026

CVE-2026-5123  (opens in a new tab)
CWE-193  (opens in a new tab)

How to fix?

Upgrade github.com/osrg/gobgp/v3/pkg/packet/bgp to version 4.4.0 or higher.

Overview

Affected versions of this package are vulnerable to Off-by-one Error in the CapSoftwareVersion.DecodeFromBytes() function. An attacker can cause a denial of service by remotely manipulating the data argument to trigger an off-by-one error.

CVSS Base Scores

version 4.0
version 3.1