The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-5123

CVE-2026-5123: GoBGP Buffer Overflow Vulnerability

CVE-2026-5123 is a buffer overflow flaw in osrg GoBGP up to version 4.3.0 affecting DecodeFromBytes function. Remote attackers can exploit this off-by-one error. This article covers technical details, impact, and patches.

Published: April 2, 2026

CVE-2026-5123 Overview

A vulnerability has been identified in osrg GoBGP versions up to 4.3.0 affecting the DecodeFromBytes function within the file pkg/packet/bgp/bgp.go. This off-by-one error occurs when processing the data[1] argument, potentially allowing remote attackers to trigger memory boundary issues. The vulnerability is classified as highly complex with difficult exploitability characteristics, requiring network access but no user interaction or privileges.

Critical Impact

Remote attackers could potentially exploit this off-by-one vulnerability to cause memory access violations in BGP packet processing, potentially impacting network routing infrastructure stability.

Affected Products

  • osrg GoBGP versions up to 4.3.0
  • Systems running vulnerable GoBGP deployments for BGP routing
  • Network infrastructure utilizing GoBGP for BGP protocol handling

Discovery Timeline

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

Technical Details for CVE-2026-5123

Vulnerability Analysis

This vulnerability stems from an off-by-one error in the CapSoftwareVersion.DecodeFromBytes function within GoBGP's BGP packet processing code. The flaw exists in how the software version capability is decoded from incoming BGP OPEN messages. When extracting the software version string from packet data, the code incorrectly calculates the slice boundaries, leading to an off-by-one condition.

The vulnerability affects the BGP OPEN message capability negotiation phase, where peers exchange software version information. While exploitation requires network access to send crafted BGP packets, the attack complexity is considered high due to the specific conditions needed to trigger the boundary error.

Root Cause

The root cause lies in improper boundary calculation when slicing the data buffer to extract the software version string. The original code used data[1:c.SoftwareVersionLen] which incorrectly calculates the end position of the slice. This off-by-one error occurs because the slice should account for the starting offset of 1 when determining the ending boundary, requiring data[1:1+c.SoftwareVersionLen] to correctly extract the intended data range.

Attack Vector

The attack vector is network-based, requiring an attacker to send specially crafted BGP OPEN messages to a vulnerable GoBGP instance. The attacker would need to manipulate the software version capability field within the BGP OPEN message to trigger the off-by-one condition. Given the high attack complexity, successful exploitation would likely require:

  • Network connectivity to the BGP daemon
  • Knowledge of the specific packet structure
  • Ability to bypass any existing network security controls

The following patch addresses the vulnerability by correcting the slice boundary calculation:

go
 		return NewMessageError(BGP_ERROR_OPEN_MESSAGE_ERROR, BGP_ERROR_SUB_UNSUPPORTED_CAPABILITY, nil, "invalid length of software version capablity")
 	}
 	c.SoftwareVersionLen = softwareVersionLen
-	c.SoftwareVersion = string(data[1:c.SoftwareVersionLen])
+	c.SoftwareVersion = string(data[1 : 1+c.SoftwareVersionLen])
 	return nil
 }

Source: GitHub Commit Details

Detection Methods for CVE-2026-5123

Indicators of Compromise

  • Unexpected BGP session resets or connection failures
  • Malformed BGP OPEN messages in packet captures containing unusual software version capability lengths
  • BGP daemon crashes or unexpected restarts without configuration changes
  • Anomalous network traffic patterns targeting BGP port 179

Detection Strategies

  • Implement network intrusion detection rules to identify malformed BGP OPEN messages with suspicious software version capability fields
  • Monitor GoBGP process logs for BGP_ERROR_OPEN_MESSAGE_ERROR or BGP_ERROR_SUB_UNSUPPORTED_CAPABILITY error messages
  • Deploy packet inspection at network boundaries to analyze BGP traffic for anomalous capability lengths
  • Use application-level logging to track BGP session establishment failures

Monitoring Recommendations

  • Enable verbose logging on GoBGP instances to capture detailed BGP message processing information
  • Implement real-time alerting for BGP session anomalies and unexpected peer disconnections
  • Monitor system resource utilization on GoBGP hosts for signs of denial of service conditions
  • Review BGP session logs regularly for patterns of malformed message attempts

How to Mitigate CVE-2026-5123

Immediate Actions Required

  • Upgrade GoBGP to the patched version containing commit 67c059413470df64bc20801c46f64058e88f800f
  • Review network access controls to limit BGP peer connections to trusted sources only
  • Implement network segmentation to isolate BGP infrastructure from untrusted networks
  • Enable BGP authentication mechanisms such as TCP MD5 signatures to prevent unauthorized peer connections

Patch Information

A security patch has been released by the osrg GoBGP project. The fix is contained in commit 67c059413470df64bc20801c46f64058e88f800f. Organizations should update their GoBGP deployments by pulling the latest version from the GoBGP GitHub Repository or applying the specific patch from the GitHub Pull Request #3342.

Workarounds

  • Restrict BGP peer connections to only known and trusted IP addresses using firewall rules
  • Implement strict input validation at the network perimeter for BGP traffic
  • Consider deploying a BGP-aware firewall or intrusion prevention system to filter malformed packets
  • Use BGP prefix filtering and peer authentication to reduce the attack surface
bash
# Configuration example - Restrict BGP connections using iptables
# Allow BGP from trusted peer IP only
iptables -A INPUT -p tcp --dport 179 -s <trusted_peer_ip> -j ACCEPT
iptables -A INPUT -p tcp --dport 179 -j DROP

# Verify GoBGP version and check for updates
gobgp version

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechGobgp

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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
  • AvailabilityLow
  • CWE References
  • CWE-189
  • Technical References
  • GitHub Project Repository

  • GitHub Commit Details

  • GitHub Pull Request

  • VulDB Submission ID #780179

  • VulDB Vulnerability #354155

  • VulDB CTI for #354155
  • Related CVEs
  • CVE-2026-5122: osrg GoBGP Auth Bypass Vulnerability

  • CVE-2026-5124: GoBGP Authentication Bypass 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