GHSA-frrj-87jh-2772: GoBGP confederation validation panics on empty AS_PATH attribute
GoBGP versions prior to 4.7.0 contain a vulnerability where a zero-length AS_PATH attribute in a BGP UPDATE message causes a panic during confederation eBGP validation. This occurs because the AS_PATH attribute decoder returns an empty value slice instead of an error for zero-length attributes, leading to an unchecked index access and a runtime panic. A remote unauthenticated confederation eBGP peer can exploit this by sending a malformed UPDATE with an empty AS_PATH, causing denial of service of the affected GoBGP process or peer session.
AI Analysis
Technical Summary
The vulnerability in GoBGP (CVE-2026-49838) arises from improper handling of a zero-length AS_PATH attribute during BGP UPDATE message decoding and validation. The decoder accepts a zero-length AS_PATH without error, resulting in an empty attribute value slice. Later, during validation for confederation eBGP peers, the code accesses the first element of this slice without checking its length, causing an index out of range panic. This allows a remote unauthenticated confederation eBGP peer to trigger a denial of service by sending a single malformed UPDATE message with an empty AS_PATH attribute. The root cause is a missing length check before accessing AS_PATH segments in the validation logic. The issue affects GoBGP versions before 4.7.0. The suggested fix adds a length check to reject empty AS_PATH attributes as malformed, preventing the panic.
Potential Impact
A remote unauthenticated confederation eBGP peer can cause a denial of service by sending a malformed BGP UPDATE message with a zero-length AS_PATH attribute. This triggers a runtime panic in the GoBGP process or peer session, potentially terminating the affected goroutine or the entire process if the panic is not recovered. There is no impact on confidentiality, integrity, or authentication, and no code execution or memory corruption is reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The suggested fix involves adding a length check in the AS_PATH validation logic to reject empty AS_PATH attributes for confederation eBGP peers, preventing the panic. Until an official patch is released, network operators should consider filtering or blocking malformed UPDATE messages with zero-length AS_PATH attributes from confederation eBGP peers to mitigate denial of service risk.
GHSA-frrj-87jh-2772: GoBGP confederation validation panics on empty AS_PATH attribute
Description
GoBGP versions prior to 4.7.0 contain a vulnerability where a zero-length AS_PATH attribute in a BGP UPDATE message causes a panic during confederation eBGP validation. This occurs because the AS_PATH attribute decoder returns an empty value slice instead of an error for zero-length attributes, leading to an unchecked index access and a runtime panic. A remote unauthenticated confederation eBGP peer can exploit this by sending a malformed UPDATE with an empty AS_PATH, causing denial of service of the affected GoBGP process or peer session.
CVSS v3.1
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
The vulnerability in GoBGP (CVE-2026-49838) arises from improper handling of a zero-length AS_PATH attribute during BGP UPDATE message decoding and validation. The decoder accepts a zero-length AS_PATH without error, resulting in an empty attribute value slice. Later, during validation for confederation eBGP peers, the code accesses the first element of this slice without checking its length, causing an index out of range panic. This allows a remote unauthenticated confederation eBGP peer to trigger a denial of service by sending a single malformed UPDATE message with an empty AS_PATH attribute. The root cause is a missing length check before accessing AS_PATH segments in the validation logic. The issue affects GoBGP versions before 4.7.0. The suggested fix adds a length check to reject empty AS_PATH attributes as malformed, preventing the panic.
Potential Impact
A remote unauthenticated confederation eBGP peer can cause a denial of service by sending a malformed BGP UPDATE message with a zero-length AS_PATH attribute. This triggers a runtime panic in the GoBGP process or peer session, potentially terminating the affected goroutine or the entire process if the panic is not recovered. There is no impact on confidentiality, integrity, or authentication, and no code execution or memory corruption is reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The suggested fix involves adding a length check in the AS_PATH validation logic to reject empty AS_PATH attributes for confederation eBGP peers, preventing the panic. Until an official patch is released, network operators should consider filtering or blocking malformed UPDATE messages with zero-length AS_PATH attributes from confederation eBGP peers to mitigate denial of service risk.
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: 07/10/2026, 09:32:57 UTC
Last updated: 07/10/2026, 09:32:57 UTC
Views: 2
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.