CVE-2026-49838: CWE-129: Improper Validation of Array Index in osrg gobgp
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.
AI Analysis
Technical Summary
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.
CVE-2026-49838: CWE-129: Improper Validation of Array Index in osrg 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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.