Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-21602 Overview
CVE-2025-21602 is an Improper Handling of Exceptional Conditions vulnerability [CWE-755] in the routing protocol daemon (rpd) of Juniper Networks Junos OS and Junos OS Evolved. An unauthenticated adjacent attacker can send a specific Border Gateway Protocol (BGP) update packet that causes rpd to crash and restart. Continuous delivery of the malformed packet produces a sustained Denial of Service (DoS) condition. The flaw affects both internal BGP (iBGP) and external BGP (eBGP) sessions over IPv4 and IPv6. Juniper disclosed the issue in advisory JSA92872.
Critical Impact
Sustained crash-loop of the routing protocol daemon disrupts BGP peering and route propagation, degrading availability for carrier, data center, and enterprise networks that rely on Junos devices.
Affected Products
- Juniper Junos OS versions from 21.4 before 21.4R3-S9, 22.2 before 22.2R3-S5, 22.3 before 22.3R3-S4, 22.4 before 22.4R3-S5, 23.2 before 23.2R2-S3, 23.4 before 23.4R2-S3, and 24.2 before 24.2R1-S2/24.2R2
- Juniper Junos OS Evolved versions from 21.4 before 21.4R3-S9-EVO, 22.2 before 22.2R3-S5-EVO, 22.3 before 22.3R3-S4-EVO, 22.4 before 22.4R3-S5-EVO, 23.2 before 23.2R2-S3-EVO, 23.4 before 23.4R2-S3-EVO, and 24.2 before 24.2R1-S2-EVO/24.2R2-EVO
- Versions prior to 21.1R1 and 21.1R1-EVO are not affected
Discovery Timeline
- 2025-01-09 - CVE-2025-21602 published to the National Vulnerability Database (NVD) with Juniper advisory JSA92872
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-21602
Vulnerability Analysis
The routing protocol daemon (rpd) handles BGP session establishment, update parsing, and best-path selection on Junos platforms. CVE-2025-21602 arises because rpd fails to handle an exceptional condition triggered by a specific BGP update packet. When the daemon encounters the malformed update, it terminates unexpectedly and is restarted by the Junos process manager.
Because the condition is deterministic, an attacker that can repeatedly send the triggering update maintains a continuous crash-restart loop. Every restart tears down BGP adjacencies, flushes route state, and forces reconvergence. In production transit or peering environments, this translates to persistent packet loss and route instability.
The vulnerability affects both iBGP and eBGP sessions over IPv4 and IPv6, so it applies to peerings inside an autonomous system and across administrative boundaries.
Root Cause
The underlying weakness maps to CWE-755 (Improper Handling of Exceptional Conditions). The BGP update parser in rpd does not gracefully handle a specific protocol condition, allowing a crafted update to drive the daemon into an unrecoverable error path. Juniper has not published parser-level details in the public advisory.
Attack Vector
Exploitation requires network-adjacent access with the ability to transmit BGP update messages that reach the affected rpd process. In practice this means an attacker must either control a configured BGP neighbor, or inject traffic along a path where it can be processed as a BGP update by the target. No authentication to the Junos device is required beyond establishing the BGP session as a configured peer. The vulnerability does not grant code execution or data access; impact is limited to availability.
No public proof-of-concept exploit is available, and the issue is not listed in the CISA Known Exploited Vulnerabilities catalog. Refer to the Juniper Security Advisory JSA92872 for authoritative technical details.
Detection Methods for CVE-2025-21602
Indicators of Compromise
- Unexpected rpd process crashes and restarts recorded in Junos system logs, often correlated with core files in /var/crash/ or /var/tmp/.
- Repeated BGP session flaps (BGP_PEER_DOWN, RPD_BGP_NEIGHBOR_STATE_CHANGED) across multiple peers at the same timestamp.
- Loss of installed BGP routes and sudden FIB churn visible via show route summary and show bgp summary.
Detection Strategies
- Correlate rpd restart events with inbound BGP update messages from a specific peer to identify the triggering neighbor.
- Enable BGP packet tracing (traceoptions) temporarily on suspect peers to capture the update payload preceding the crash.
- Monitor route processor stability metrics and alert when rpd uptime drops below a defined threshold.
Monitoring Recommendations
- Forward Junos syslog, SNMP traps, and process crash notifications to a centralized SIEM or data lake for correlation across the routing fleet.
- Track BGP session uptime per neighbor and alert on repeated flaps affecting the same peer within short intervals.
- Capture and retain rpd core files to support vendor case analysis if a crash occurs.
How to Mitigate CVE-2025-21602
Immediate Actions Required
- Inventory all Junos OS and Junos OS Evolved devices and compare running versions against the fixed releases listed in JSA92872.
- Prioritize patching devices with eBGP sessions to untrusted or less-controlled peers, including internet transit and public peering edges.
- Validate that BGP authentication (TCP-AO or MD5) and infrastructure ACLs are enforced on all BGP neighbors to reduce exposure from unauthorized sources.
Patch Information
Juniper has released fixed software in Junos OS 21.4R3-S9, 22.2R3-S5, 22.3R3-S4, 22.4R3-S5, 23.2R2-S3, 23.4R2-S3, 24.2R1-S2, 24.2R2, and subsequent releases. Equivalent fixes are available in Junos OS Evolved: 21.4R3-S9-EVO, 22.2R3-S5-EVO, 22.3R3-S4-EVO, 22.4R3-S5-EVO, 23.2R2-S3-EVO, 23.4R2-S3-EVO, 24.2R1-S2-EVO, and 24.2R2-EVO. Full upgrade guidance is provided in the Juniper Security Advisory JSA92872.
Workarounds
- No complete workaround is published; Juniper directs operators to upgrade to a fixed release.
- Restrict BGP peering to known, authenticated neighbors and apply strict import policies to limit exposure.
- Use infrastructure ACLs or firewall filters to drop BGP (TCP/179) traffic from any source that is not an authorized peer.
# Example Junos firewall filter restricting BGP to known peers
set firewall family inet filter PROTECT-BGP term ALLOW-PEERS from source-address 192.0.2.1/32
set firewall family inet filter PROTECT-BGP term ALLOW-PEERS from protocol tcp
set firewall family inet filter PROTECT-BGP term ALLOW-PEERS from destination-port 179
set firewall family inet filter PROTECT-BGP term ALLOW-PEERS then accept
set firewall family inet filter PROTECT-BGP term DENY-BGP from protocol tcp destination-port 179
set firewall family inet filter PROTECT-BGP term DENY-BGP then discard
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

