Incorrect Privilege Assignment Affecting github.com/osrg/gobgp/v4/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.29% (21st 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 Learn

Learn about Incorrect Privilege Assignment vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMOSRGGOBGPV4PKGPACKETBGP-15855302
  • published31 Mar 2026
  • disclosed30 Mar 2026
  • creditUnknown

Introduced: 30 Mar 2026

CVE-2026-5124  (opens in a new tab)
CWE-266  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Incorrect Privilege Assignment due to improper BGP header validation in the BGPHeader.DecodeFromBytes() function. An attacker can modify BGP header data by sending specially crafted packets to the affected process.

CVSS Base Scores

version 4.0
version 3.1