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-2023-38406

CVE-2023-38406: FRRouting Buffer Overflow Vulnerability

CVE-2023-38406 is a buffer overflow vulnerability in FRRouting caused by flowspec overflow in bgpd/bgp_flowspec.c. This article covers the technical details, affected versions, security impact, and mitigation steps.

Published: February 4, 2026

CVE-2023-38406 Overview

CVE-2023-38406 is a critical vulnerability in FRRouting (FRR), an open-source routing protocol suite widely used in Linux-based network infrastructure. The vulnerability exists in the bgpd/bgp_flowspec.c file where the application mishandles an NLRI (Network Layer Reachability Information) length of zero, resulting in a buffer overflow condition commonly referred to as a "flowspec overflow."

This vulnerability affects the BGP FlowSpec implementation in FRRouting versions prior to 8.4.3. BGP FlowSpec is used to distribute traffic filtering rules via BGP, making this vulnerability particularly concerning for network operators relying on FRRouting for their routing infrastructure.

Critical Impact

Unauthenticated remote attackers can exploit this buffer overflow to potentially achieve remote code execution or cause denial of service on systems running vulnerable FRRouting versions. Given that FRRouting is commonly deployed on network infrastructure devices, successful exploitation could compromise critical routing infrastructure.

Affected Products

  • FRRouting (FRR) versions prior to 8.4.3
  • Linux distributions packaging vulnerable FRR versions (including Debian)
  • Network infrastructure appliances using FRRouting as their routing stack

Discovery Timeline

  • 2023-11-06 - CVE-2023-38406 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2023-38406

Vulnerability Analysis

The vulnerability resides in the BGP FlowSpec parsing code within bgpd/bgp_flowspec.c. When processing BGP FlowSpec NLRI data, the code fails to properly validate the NLRI length field before using it in memory operations. Specifically, when an NLRI length of zero is encountered, the parsing logic does not handle this edge case correctly, leading to improper memory access.

This improper exception handling (CWE-755) allows an attacker to trigger a buffer overflow condition by sending specially crafted BGP FlowSpec messages with malformed NLRI length values. The vulnerability can be exploited remotely over the network without requiring authentication or user interaction, making it highly dangerous in exposed network environments.

Root Cause

The root cause is classified under CWE-755 (Improper Handling of Exceptional Conditions). The BGP FlowSpec parsing code does not adequately validate the NLRI length field, failing to account for the exceptional condition where this value is zero. This oversight allows subsequent memory operations to proceed with invalid length parameters, corrupting memory boundaries and enabling potential code execution or system crashes.

Attack Vector

The attack vector is network-based, requiring an attacker to send malformed BGP FlowSpec UPDATE messages to a vulnerable FRRouting instance. The attacker does not need any privileges or user interaction to exploit this vulnerability. The attack can be executed by:

  1. Establishing a BGP session with the target router (either as a legitimate peer or by hijacking an existing session)
  2. Sending a BGP UPDATE message containing FlowSpec NLRI with a length field set to zero
  3. Triggering the overflow condition in the parsing code

The vulnerability manifests when the FRRouting bgpd daemon processes FlowSpec NLRI data with a zero-length field. The parsing function in bgpd/bgp_flowspec.c fails to validate this boundary condition, leading to memory corruption. For detailed technical analysis, refer to the GitHub Pull Request #12884 which contains the patch addressing this issue.

Detection Methods for CVE-2023-38406

Indicators of Compromise

  • Unexpected crashes or restarts of the bgpd process on FRRouting systems
  • Unusual BGP UPDATE messages with malformed FlowSpec NLRI in network traffic captures
  • Core dumps from bgpd indicating memory corruption or segmentation faults
  • BGP session instability or unexpected peering failures

Detection Strategies

  • Monitor bgpd process stability and capture core dumps for analysis when crashes occur
  • Implement network-level inspection for malformed BGP FlowSpec messages with zero-length NLRI fields
  • Review BGP session logs for suspicious UPDATE messages from unexpected or untrusted peers
  • Deploy SentinelOne agents on systems running FRRouting to detect exploitation attempts and anomalous process behavior

Monitoring Recommendations

  • Enable detailed BGP logging in FRRouting to capture all UPDATE message processing events
  • Configure alerting on bgpd process crashes or unexpected restarts
  • Monitor memory usage patterns for bgpd to detect potential exploitation attempts
  • Implement BGP session monitoring to identify connections from unauthorized peers

How to Mitigate CVE-2023-38406

Immediate Actions Required

  • Upgrade FRRouting to version 8.4.3 or later immediately
  • Review BGP peering configurations and restrict sessions to authorized peers only
  • Implement BGP session authentication (MD5 or TCP-AO) if not already configured
  • Apply available security patches from your Linux distribution vendor

Patch Information

The vulnerability has been fixed in FRRouting version 8.4.3. The patch adds proper validation of the NLRI length field in the FlowSpec parsing code to prevent the overflow condition. Organizations should upgrade to FRRouting 8.4.3 or later to fully remediate this vulnerability.

  • GitHub FRRouting Version Comparison (8.4.2 to 8.4.3)
  • GitHub FRRouting Pull Request #12884

Debian users should refer to the security announcements:

  • Debian LTS Security Announcement April 2024
  • Debian LTS Security Announcement September 2024

Workarounds

  • Disable BGP FlowSpec functionality if not required by removing FlowSpec configuration from affected routers
  • Implement strict BGP peer filtering using access control lists to limit BGP sessions to trusted peers only
  • Deploy network-level filtering to block malformed BGP messages at the network perimeter
  • Consider isolating vulnerable FRRouting instances in separate network segments with restricted access
bash
# Disable FlowSpec on BGP neighbors (in FRRouting vtysh)
router bgp <AS_NUMBER>
  address-family ipv4 flowspec
    no neighbor <PEER_IP> activate
  exit-address-family
  address-family ipv6 flowspec
    no neighbor <PEER_IP> activate
  exit-address-family

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechFrrouting

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-755
  • Technical References
  • Debian LTS Security Announcement April 2024

  • Debian LTS Security Announcement September 2024
  • Vendor Resources
  • GitHub FRRouting Version Comparison

  • GitHub FRRouting Pull Request
  • Related CVEs
  • CVE-2026-5107: FRRouting Auth Bypass Vulnerability

  • CVE-2025-61103: FRRouting OSPF DoS Vulnerability

  • CVE-2025-61104: FRRouting OSPF DoS Vulnerability

  • CVE-2025-61106: FRRouting OSPF NULL Pointer DoS Flaw
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