CVE-2026-49838

GoBGP confederation validation panics on empty AS_PATH attribute

Published Sep 10, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

GoBGP is an open source Border Gateway Protocol implementation written in Go. Prior to version 4.7.0 the software accepts a zero‑length AS_PATH during UPDATE decoding and later panics while validating that attribute for a confederation eBGP peer because it accesses the first element of the AS_PATH without bounds checking. This flaw causes a denial of service when a confederation eBGP peer receives a malformed UPDATE with an empty AS_PATH attribute, resulting in a process crash.

Affected Systems

The affected product is osrg:gobgp. All releases older than 4.7.0 are vulnerable; releases 4.7.0 and newer contain the fix.

Risk and Exploitability

The CVSS score of 5.9 indicates moderate severity. The EPSS score is less than 1%, showing a very low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, the attack vector involves a remote BGP session where an adversary injects a malformed UPDATE packet containing an empty AS_PATH attribute to a confederation eBGP peer, leading to a crash. The flaw is an unchecked array index access (CWE-125) and unchecked bounds checking (CWE-129).

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade GoBGP to version 4.7.0 or later.
  • If an upgrade is not immediately possible, configure eBGP peers or use BGP policy filtering to discard UPDATE messages that contain an empty AS_PATH attribute before they reach the GoBGP process.
  • Apply firewall or access‑control rules to block or drop malformed BGP UPDATE packets with an empty AS_PATH from untrusted peers.

Generated by OpenCVE AI on September 21, 2026 at 05:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-frrj-87jh-2772 GoBGP confederation validation panics on empty AS_PATH attribute
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Osrg
Osrg gobgp
Vendors & Products Osrg
Osrg gobgp
Type Values Removed Values Added
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.
Title GoBGP confederation validation panics on empty AS_PATH attribute
Weaknesses CWE-129
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-129

    Improper Validation of Array Index

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 11, 2026, 8:31 PM
Reserved
Jun 1, 2026, 6:50 PM
Status
Deferred
Published
Sep 10, 2026, 10:16 PM
Modified
Sep 16, 2026, 1:42 PM
Severity
Moderate
Public date
Sep 10, 2026, 9:57 PM