Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5122

CVE-2026-5122: osrg GoBGP Auth Bypass Vulnerability

CVE-2026-5122 is an authentication bypass flaw in osrg GoBGP affecting versions up to 4.3.0. Attackers can exploit improper access controls in the BGP OPEN Message Handler. This post covers technical details, affected versions, impact, and mitigation steps.

Published: April 2, 2026

CVE-2026-5122 Overview

A security flaw has been discovered in osrg GoBGP up to version 4.3.0. This vulnerability affects the function DecodeFromBytes of the file pkg/packet/bgp/bgp.go of the component BGP OPEN Message Handler. Performing a manipulation of the argument domainNameLen results in improper access controls. The attack may be initiated remotely, though a high degree of complexity is needed for successful exploitation.

Critical Impact

Remote attackers can exploit improper validation of the domainNameLen parameter in BGP OPEN messages to bypass access controls in network routing infrastructure running GoBGP.

Affected Products

  • osrg GoBGP up to version 4.3.0
  • Systems utilizing the BGP OPEN Message Handler component
  • Deployments using the FQDN capability in BGP sessions

Discovery Timeline

  • 2026-03-30 - CVE-2026-5122 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2026-5122

Vulnerability Analysis

This vulnerability is classified under CWE-266 (Incorrect Privilege Assignment) and affects the BGP OPEN message processing functionality in GoBGP. The flaw exists in the CapFQDN.DecodeFromBytes function within pkg/packet/bgp/bgp.go, where the domainNameLen parameter is not properly validated during packet parsing.

The vulnerability allows an attacker to manipulate the domainNameLen argument to read beyond the intended buffer boundaries when extracting the domain name from BGP capability data. While exploitation requires high complexity due to the nature of BGP protocol interactions and typical network architecture constraints, successful attacks could impact routing infrastructure integrity.

Root Cause

The root cause lies in improper bounds checking when parsing the FQDN (Fully Qualified Domain Name) capability in BGP OPEN messages. The original implementation ignored the domainNameLen field when extracting the domain name, instead reading all remaining bytes after the hostname. This oversight allowed attackers to potentially access memory beyond the intended data boundaries or inject malformed data into the parsing routine.

Attack Vector

The attack vector is network-based, requiring the attacker to send specially crafted BGP OPEN messages to a vulnerable GoBGP instance. The attacker must have network access to communicate with the BGP service, typically on TCP port 179. Due to the high complexity requirements, successful exploitation demands precise manipulation of the domainNameLen parameter within the BGP OPEN message's FQDN capability structure.

go
// Vulnerable code (before patch) - Source: pkg/packet/bgp/bgp.go
// The domainNameLen parameter was ignored, reading all remaining bytes
c.DomainName = string(data[hostNameLen+2:])

// Patched code - properly respects domainNameLen boundary
c.DomainName = string(data[hostNameLen+2 : hostNameLen+2+int(domainNameLen)])

Source: GitHub Commit 2b09db3

Detection Methods for CVE-2026-5122

Indicators of Compromise

  • Unusual or malformed BGP OPEN messages with abnormal FQDN capability lengths
  • BGP session establishment attempts from unexpected sources
  • Error logs indicating BGP message parsing failures in GoBGP
  • Anomalous traffic patterns targeting TCP port 179

Detection Strategies

  • Deploy network intrusion detection rules to identify malformed BGP OPEN messages with mismatched domainNameLen values
  • Monitor GoBGP application logs for BGP_ERROR_OPEN_MESSAGE_ERROR events indicating capability parsing issues
  • Implement deep packet inspection for BGP traffic to detect capability field anomalies
  • Configure alerting for repeated BGP session establishment failures from single sources

Monitoring Recommendations

  • Enable verbose logging for BGP session negotiations in GoBGP configurations
  • Establish baseline metrics for normal BGP OPEN message characteristics in your environment
  • Monitor for unexpected changes in BGP peer relationships or routing table modifications
  • Implement real-time alerting on BGP error conditions related to capability negotiation

How to Mitigate CVE-2026-5122

Immediate Actions Required

  • Upgrade GoBGP to a patched version containing commit 2b09db390a3d455808363c53e409afe6b1b86d2d
  • Review BGP peer configurations and restrict connections to known, trusted peers only
  • Implement network segmentation to limit exposure of BGP services to untrusted networks
  • Audit recent BGP session logs for any suspicious connection attempts

Patch Information

The vulnerability has been addressed in GitHub Pull Request #3343. The fix ensures that the DecodeFromBytes function properly respects the domainNameLen boundary when parsing the domain name from FQDN capability data. The patch is identified by commit hash 2b09db390a3d455808363c53e409afe6b1b86d2d. Users should update to a GoBGP version that includes this commit.

Workarounds

  • Restrict BGP service access using firewall rules to permit connections only from authorized BGP peers
  • Disable FQDN capability negotiation if not required in your BGP deployment
  • Deploy BGP-aware network security appliances to filter malformed BGP messages before they reach GoBGP instances
bash
# Configuration example - Restrict BGP access with iptables
# Allow BGP connections only from known peer IP addresses
iptables -A INPUT -p tcp --dport 179 -s <TRUSTED_PEER_IP_1> -j ACCEPT
iptables -A INPUT -p tcp --dport 179 -s <TRUSTED_PEER_IP_2> -j ACCEPT
iptables -A INPUT -p tcp --dport 179 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechGobgp

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-266
  • Technical References
  • GitHub GoBGP Project Repository

  • GitHub Commit 2b09db3

  • GitHub Pull Request #3343

  • VulDB Submission #780124

  • VulDB Vulnerability #354154

  • VulDB CTI for #354154
  • Related CVEs
  • CVE-2026-5124: GoBGP Authentication Bypass Vulnerability

  • CVE-2026-5123: GoBGP Buffer Overflow Vulnerability

  • CVE-2026-30405: GoBGP gobgpd DoS Vulnerability

  • CVE-2025-43973: Osrg GoBGP Input Validation Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English