CVE-2026-49838: GoBGP AS_PATH Validation Panic Due to Empty Attribute

github.com/osrg/gobgp/v4 Updated 10 Jul 2026

Summary

09/07/2026
Yes i
Moderate
5.9

CVE-2026-49838: GoBGP confederation validation panics on empty AS_PATH attribute. Affects github.com/osrg/gobgp/v4 versions < 4.7.0. Fixed in 4.7.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

GoBGP is an open-source implementation of the Border Gateway Protocol (BGP) used for inter-domain routing. It is designed to be efficient and flexible, allowing users to manage BGP sessions and routing policies. The package is widely used in networking applications and supports advanced features such as route reflection and confederation. However, it is susceptible to vulnerabilities that can lead to denial of service, as demonstrated by CVE-2026-49838.

Vulnerability Detail

The vulnerability arises from GoBGP's handling of the AS_PATH attribute during BGP UPDATE decoding. Specifically, when a zero-length AS_PATH is received from a confederation eBGP peer, the system panics due to an unchecked access to an empty value. This flaw allows an attacker to send a malformed UPDATE, causing a denial of service by crashing the receive goroutine and potentially terminating the process. The issue is rooted in the validation logic that fails to properly handle empty AS_PATH attributes, bypassing normal error handling mechanisms.

How To Fix

Latest published version: v4.10.0 as of 22 Oct 2026

go get github.com/osrg/gobgp/v4@v4.10.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.7.0

This is the first release that contains the fix.

go get github.com/osrg/gobgp/v4@v4.7.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can implement additional validation checks in your BGP session management to reject UPDATE messages with zero-length AS_PATH attributes before they reach the GoBGP decoder. This can help prevent the panic from occurring until you can apply the official patch.

Conclusion

CVE-2026-49838 represents a significant vulnerability in GoBGP that can lead to denial of service through improper handling of AS_PATH attributes. It is crucial for users of GoBGP to update to the patched version 4.7.0 or later to mitigate this risk. Implementing additional validation checks can serve as a temporary workaround until the update is applied.

See every vulnerability recorded for github.com/osrg/gobgp/v4 →

Share this vulnerability

FAQ

CVE-2026-49838 is a vulnerability in GoBGP that allows a remote unauthenticated peer to cause a denial of service by sending a malformed BGP UPDATE with an empty AS_PATH attribute.

If your GoBGP deployment is configured to accept eBGP connections from confederation peers, it may be vulnerable to this issue, which could lead to service interruptions.

Failing to address this vulnerability could result in denial of service, where your BGP sessions may crash, leading to network instability and potential downtime.

You can use Vulert's playground at Vulert Scanner to monitor and alert for open-source vulnerabilities in your software without requiring access to the code or installation.

The CVSS score for CVE-2026-49838 is 5.9, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/osrg/gobgp/v4.

How To Fix

Latest published version: v4.10.0 as of 22 Oct 2026

go get github.com/osrg/gobgp/v4@v4.10.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.7.0

This is the first release that contains the fix.

go get github.com/osrg/gobgp/v4@v4.7.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback