Skip to main content
Vulnerability Database/CVE-2024-39554

CVE-2024-39554: Juniper Junos BGP Race Condition Vulnerability

CVE-2024-39554 is a race condition vulnerability in Juniper Junos OS and Junos OS Evolved affecting systems with BGP multipath enabled, allowing network-based attackers to crash the routing daemon. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

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-2024-39554 Overview

CVE-2024-39554 is a race condition vulnerability in the Routing Protocol Daemon (rpd) of Juniper Networks Junos OS and Junos OS Evolved. An unauthenticated, network-based attacker can inject incremental Border Gateway Protocol (BGP) routing updates when BGP multipath is enabled. The malformed updates trigger a timing flaw during multipath next-hop calculation, causing rpd to crash and restart. Continued receipt of the offending updates can sustain the Denial of Service (DoS) condition, disrupting routing on affected devices. The issue is tracked under [CWE-362] (Concurrent Execution using Shared Resource with Improper Synchronization).

Critical Impact

Remote, unauthenticated attackers can crash the routing daemon on core network devices, disrupting BGP peering and packet forwarding for any Junos OS or Junos OS Evolved platform with BGP multipath enabled.

Affected Products

  • Juniper Networks Junos OS: all versions of 21.1; 21.2 before 21.2R3-S7; 21.4 before 21.4R3-S6; 22.1 before 22.1R3-S5; 22.2 before 22.2R3-S3; 22.3 before 22.3R3-S2; 22.4 before 22.4R3; 23.2 before 23.2R2
  • Juniper Networks Junos OS Evolved: all versions of 21.1-EVO and 21.2-EVO; 21.4-EVO before 21.4R3-S6-EVO; 22.1-EVO before 22.1R3-S5-EVO; 22.2-EVO before 22.2R3-S3-EVO; 22.3-EVO before 22.3R3-S2-EVO; 22.4-EVO before 22.4R3-EVO; 23.2-EVO before 23.2R2-EVO
  • Versions of Junos OS and Junos OS Evolved before 21.1R1 / 21.1R1-EVO are not affected

Discovery Timeline

  • 2024-07-10 - CVE-2024-39554 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in the NVD database

Technical Details for CVE-2024-39554

Vulnerability Analysis

The flaw resides in the multipath route selection logic within rpd. When BGP multipath is enabled, a specific calculation removes the original next hop from the multipath lead route's nexthop-set. This modification depends on internal timing to record the update to the shared nexthop-set structure. An attacker who can influence BGP updates seen by the router can drive the daemon into the vulnerable code path. Repeated processing of the crafted incremental updates can produce a sustained DoS on the control plane, breaking BGP sessions and dependent services.

Root Cause

The underlying weakness is improper synchronization on a shared data structure during concurrent execution [CWE-362]. Two code paths access and mutate the multipath nexthop-set without adequate locking or ordering guarantees. When the operations interleave in a specific sequence, the daemon reaches an inconsistent internal state and aborts. Because the trigger depends on non-deterministic scheduling, exploitation is probabilistic rather than fully attacker-controlled.

Attack Vector

Exploitation requires only network reachability to a BGP-speaking Junos device configured with multipath. No authentication or user interaction is needed beyond delivering the malicious incremental updates through an established or transitive BGP path. A single successful race causes rpd to crash and restart, and repeated updates create a persistent outage of routing services. See the Juniper Support Advisory JSA83014 for detailed conditions.

No verified proof-of-concept code is publicly available for this vulnerability. Refer to the vendor advisory for authoritative technical detail.

Detection Methods for CVE-2024-39554

Indicators of Compromise

  • Unexpected rpd process crashes or core files on Junos or Junos Evolved devices with BGP multipath enabled
  • Repeated BGP session flaps and route churn correlated with rpd restart events in system logs
  • RPD_KRT_Q_RETRIES or RPD_TASK_REINIT messages appearing without an operator-driven configuration change

Detection Strategies

  • Monitor /var/log/messages and Junos syslog streams for rpd termination, restart, and core-dump generation events
  • Correlate BGP neighbor state transitions with rpd process availability to identify crash-driven outages
  • Baseline normal update volumes per BGP peer and alert on abnormal incremental update patterns targeting multipath-enabled routes

Monitoring Recommendations

  • Forward Junos syslog and SNMP traps to a centralized data lake for anomaly detection across the routing fleet
  • Track show system core-dumps output via automation and alert on new rpd cores
  • Enable BGP session and route flap telemetry through streaming telemetry or NETCONF to identify sustained DoS conditions early

How to Mitigate CVE-2024-39554

Immediate Actions Required

  • Identify all Junos OS and Junos OS Evolved devices running affected releases with set protocols bgp ... multipath configured
  • Schedule upgrades to fixed releases as documented in Juniper Support Advisory JSA83014
  • Restrict BGP peering to trusted, authenticated neighbors and enforce inbound prefix and update policies to reduce exposure to untrusted update sources

Patch Information

Juniper has released fixed software in Junos OS 21.2R3-S7, 21.4R3-S6, 22.1R3-S5, 22.2R3-S3, 22.3R3-S2, 22.4R3, 23.2R2, and all subsequent releases. For Junos OS Evolved, fixes are available in 21.4R3-S6-EVO, 22.1R3-S5-EVO, 22.2R3-S3-EVO, 22.3R3-S2-EVO, 22.4R3-EVO, 23.2R2-EVO, and later. Apply the appropriate fixed release for your platform as described in the vendor advisory.

Workarounds

  • Where operationally acceptable, disable BGP multipath (delete protocols bgp group <name> multipath) on affected devices until patching is complete
  • Apply strict BGP import policies and maximum-prefix limits per peer to constrain the update patterns that reach the multipath calculation
  • Use BGP session authentication and infrastructure Access Control Lists (ACLs) to limit which peers can send updates to the device
bash
# Example: disable BGP multipath as an interim workaround
configure
delete protocols bgp group EXTERNAL multipath
commit comment "Workaround for CVE-2024-39554 pending upgrade"

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.