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
    • 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-2025-21598

CVE-2025-21598: Juniper Junos OS Buffer Overflow Flaw

CVE-2025-21598 is a buffer overflow vulnerability in Juniper Networks Junos OS and Junos OS Evolved that allows attackers to crash rpd via malformed BGP packets. This article covers technical details, affected versions, and mitigations.

Updated: January 22, 2026

CVE-2025-21598 Overview

An Out-of-bounds Read vulnerability in Juniper Networks Junos OS and Junos OS Evolved's routing protocol daemon (rpd) allows an unauthenticated, network-based attacker to send malformed BGP packets to a device configured with packet receive trace options enabled to crash rpd. This vulnerability requires an established BGP session and can propagate across multiple Autonomous Systems (ASes), affecting both iBGP and eBGP configurations as well as IPv4 and IPv6 traffic.

Critical Impact

This vulnerability enables remote denial-of-service attacks against core network infrastructure, with the potential for cascading failures across multiple ASes as malformed BGP packets propagate through the network.

Affected Products

  • Junos OS versions from 21.2R3-S8 before 21.2R3-S9, from 21.4R3-S7 before 21.4R3-S9, from 22.2R3-S4 before 22.2R3-S5, from 22.3R3-S2 before 22.3R3-S4, from 22.4R3 before 22.4R3-S5, from 23.2R2 before 23.2R2-S2, from 23.4R1 before 23.4R2-S1, from 24.2R1 before 24.2R1-S1, 24.2R2
  • Junos OS Evolved versions from 21.4R3-S7-EVO before 21.4R3-S9-EVO, from 22.2R3-S4-EVO before 22.2R3-S5-EVO, from 22.3R3-S2-EVO before 22.3R3-S4-EVO, from 22.4R3-EVO before 22.4R3-S5-EVO, from 23.2R2-EVO before 23.2R2-S2-EVO, from 23.4R1-EVO before 23.4R2-S1-EVO, from 24.2R1-EVO before 24.2R1-S2-EVO, 24.2R2-EVO
  • Devices with BGP packet receive trace options enabled

Discovery Timeline

  • 2025-01-09 - CVE-2025-21598 published to NVD
  • 2025-01-09 - Last updated in NVD database

Technical Details for CVE-2025-21598

Vulnerability Analysis

The vulnerability exists within the routing protocol daemon (rpd) of Juniper Networks Junos OS and Junos OS Evolved. When BGP packet receive trace options are enabled on a device, the rpd process fails to properly validate the bounds of incoming BGP packet data before reading it. This Out-of-bounds Read condition (CWE-125) occurs when processing specially crafted malformed BGP packets, leading to a crash of the rpd process.

The attack requires an established BGP session with the target device, which means the attacker either needs to be a BGP peer or compromise a legitimate peer. What makes this vulnerability particularly dangerous is its propagation characteristic - malformed BGP update messages can traverse and multiply across multiple autonomous systems until they reach vulnerable devices, potentially causing widespread network disruption.

Root Cause

The root cause is an Out-of-bounds Read vulnerability (CWE-125) in the BGP packet processing logic within the rpd daemon. When packet receive trace options are enabled via the traceoptions configuration under protocols bgp, the daemon attempts to read packet data beyond the allocated buffer boundaries when processing malformed BGP attributes. This improper memory access leads to a daemon crash, resulting in a denial-of-service condition.

Attack Vector

The attack is network-based and does not require authentication, as the attacker only needs to establish a BGP session with the target or inject malformed packets through an intermediate BGP peer. The exploitation path involves:

  1. Establishing or leveraging an existing BGP session with a vulnerable device
  2. Sending malformed BGP update messages containing crafted attributes
  3. The rpd daemon attempts to process the malformed packet with trace options enabled
  4. Out-of-bounds memory read occurs, causing the rpd daemon to crash
  5. The malformed packets may propagate to other ASes, potentially affecting additional vulnerable devices

The vulnerability affects devices running vulnerable versions with the BGP traceoptions configuration enabled for packet receive tracing.

Detection Methods for CVE-2025-21598

Indicators of Compromise

  • Look for rpd crash messages in system logs indicating unexpected daemon termination
  • Monitor for malformed BGP update messages in neighboring device logs with entries like: rpd[<pid>]: Received malformed update from <IP address> (External AS <AS#>)
  • Check for rpd[<pid>]: Malformed Attribute log entries on devices within network proximity
  • Repeated rpd restarts or BGP session flapping without clear network-related cause

Detection Strategies

  • Implement syslog monitoring for rpd crash events and malformed BGP attribute messages across all Junos devices
  • Configure SNMP traps for BGP session state changes and process crashes on critical routing infrastructure
  • Deploy network monitoring to detect unusual BGP session instability patterns that may indicate propagating malformed packets
  • Review BGP peer logs for patterns of malformed update messages originating from the same source AS

Monitoring Recommendations

  • Enable centralized logging collection from all BGP-speaking devices to correlate malformed packet events
  • Set up alerting for rpd process crashes or unexpected restarts on production routing infrastructure
  • Monitor BGP session statistics for abnormal reset patterns across peering sessions
  • Establish baseline BGP behavior metrics to detect anomalous activity indicative of exploitation attempts

How to Mitigate CVE-2025-21598

Immediate Actions Required

  • Identify all Junos OS and Junos OS Evolved devices running affected versions with BGP traceoptions enabled
  • Evaluate whether BGP packet receive trace options can be temporarily disabled on production devices to reduce attack surface
  • Prioritize patching for devices in critical network paths or those with external BGP peering relationships
  • Coordinate with BGP peers to identify potential sources of malformed packets in the event of an attack

Patch Information

Juniper Networks has released security patches addressing this vulnerability. Organizations should upgrade to the following fixed versions:

Junos OS: Upgrade to 21.2R3-S9, 21.4R3-S9, 22.2R3-S5, 22.3R3-S4, 22.4R3-S5, 23.2R2-S2, 23.4R2-S1, 24.2R1-S1, or 24.2R2 or later as applicable.

Junos OS Evolved: Upgrade to 21.4R3-S9-EVO, 22.2R3-S5-EVO, 22.3R3-S4-EVO, 22.4R3-S5-EVO, 23.2R2-S2-EVO, 23.4R2-S1-EVO, 24.2R1-S2-EVO, or 24.2R2-EVO or later as applicable.

For complete patch information, refer to the Juniper Security Advisory JSA92867.

Workarounds

  • Disable BGP packet receive trace options if not required for operational purposes to eliminate the vulnerable code path
  • Implement strict BGP peering policies using prefix filters and peer authentication to limit exposure to untrusted sources
  • Deploy network-level filtering to detect and block malformed BGP packets at network boundaries where possible
  • Consider implementing BGP monitoring solutions that can detect and alert on malformed BGP attribute anomalies
bash
# Disable BGP traceoptions to mitigate vulnerability exposure
# Review current traceoptions configuration
show configuration protocols bgp traceoptions

# Remove packet receive trace options if not operationally required
delete protocols bgp traceoptions file
delete protocols bgp traceoptions flag packet receive
commit

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechJunos

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.21%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L/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:Y/R:A/V:C/RE:M/U:Amber
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • Juniper Security Advisory JSA92867

  • Juniper BGP CLI Reference
  • Related CVEs
  • CVE-2026-21902: Junos OS Evolved Privilege Escalation Flaw

  • CVE-2025-59961: Junos OS jdhcpd Privilege Escalation Flaw

  • CVE-2026-21921: Juniper Networks Junos OS DoS Vulnerability

  • CVE-2025-59960: Junos OS DHCP Service DoS 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