Skip to main content
EPSS 0.3%top 74%

CVE-2026-49838: CWE-129: Improper Validation of Array Index in osrg gobgp

0
Medium
Published: 09/10/2026 (09/10/2026, 21:57:15 UTC)
Source: GCVE Database
Vendor/Project: osrg
Product: gobgp

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.

CVSS v3.1

Score 5.9medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

Goghsa
github.com/osrg/gobgp/v4
Affected versions
<4.7.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/11/2026, 19:44:47 UTC

Technical Analysis

GoBGP accepts a zero-length AS_PATH attribute during BGP UPDATE decoding without marking it as malformed. Later, during validation for confederation eBGP peers, the code accesses the first element of the AS_PATH segments without checking if any segments exist, causing an index out of range panic. This vulnerability allows a remote unauthenticated confederation eBGP peer to send a malformed UPDATE that triggers a denial of service by crashing the receive goroutine or possibly the entire GoBGP process. The root cause is the lack of proper validation for empty AS_PATH attributes in the confederation eBGP validation path. A patch adds a check to reject empty AS_PATH attributes with a proper BGP message error.

Potential Impact

A remote unauthenticated confederation eBGP peer can cause a denial of service by sending a single malformed BGP UPDATE message with a zero-length AS_PATH attribute. This leads to a runtime panic due to an unchecked index access, disrupting the BGP session and potentially terminating the GoBGP process. There is no impact on confidentiality, integrity, or authentication bypass, and no code execution or memory corruption is reported.

Mitigation Recommendations

A patch is available that fixes the vulnerability by adding validation to reject zero-length AS_PATH attributes for confederation eBGP peers. Users should upgrade to GoBGP version 4.7.0 or later where this fix is applied. Until patched, operators should avoid accepting confederation eBGP peers that could send malformed AS_PATH attributes or implement network-level filtering to block malformed BGP UPDATE messages if feasible.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-frrj-87jh-2772
Osv Schema Version
1.4.0
Aliases
["CVE-2026-49838"]
Ecosystems
["Go"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a50ba3c68715ace4357db0f

Added to database: 07/10/2026, 09:24:12 UTC

Last enriched: 09/11/2026, 19:44:47 UTC

Last updated: 09/15/2026, 03:14:15 UTC

Views: 111

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses