Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-frrj-87jh-2772: GoBGP confederation validation panics on empty AS_PATH attribute

0
Medium
Published: 07/09/2026 (07/09/2026, 23:21:05 UTC)
Source: GCVE Database
Product: github.com/osrg/gobgp/v4

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

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: 07/10/2026, 09:32:57 UTC

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.

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: 07/10/2026, 09:32:57 UTC

Last updated: 07/10/2026, 09:32:57 UTC

Views: 2

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