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-47491 Overview
CVE-2024-47491 is a denial of service vulnerability in the Routing Protocol Daemon (rpd) of Juniper Networks Junos OS and Junos OS Evolved. An unauthenticated, network-based attacker can crash rpd by sending a BGP UPDATE message containing a malformed path attribute over an established BGP session. Continuous transmission of the malformed UPDATE produces a sustained outage on affected routers. The flaw is classified as Improper Handling of Exceptional Conditions [CWE-755] and affects both 32-bit and 64-bit Junos systems, though Juniper reports that 64-bit systems have an extremely low probability of impact.
Critical Impact
Repeated malformed BGP UPDATE messages cause rpd to crash and restart continuously, producing a sustained routing outage on affected Junos OS and Junos OS Evolved devices.
Affected Products
- Juniper Networks Junos OS: all versions before 21.4R3-S8, 22.2 before 22.2R3-S4, 22.4 before 22.4R3-S3, 23.2 before 23.2R2-S1, 23.4 before 23.4R1-S2, and 23.4R2
- Juniper Networks Junos OS Evolved: all versions before 21.4R3-S8-EVO, 22.2 before 22.2R3-S4-EVO, 22.4 before 22.4R3-S3-EVO, 23.2 before 23.2R2-S1-EVO, 23.4 before 23.4R1-S2-EVO, and 23.4R2-EVO
- Routing Protocol Daemon (rpd) component on both 32-bit and 64-bit systems, with 32-bit systems at higher risk
Discovery Timeline
- 2024-10-11 - CVE-2024-47491 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-47491
Vulnerability Analysis
The vulnerability resides in the BGP path attribute parsing logic within rpd, the Junos process that handles routing protocols. When a peer sends a BGP UPDATE containing a specifically malformed path attribute, rpd fails to handle the exceptional condition and terminates. Junos then restarts the daemon, but a repeated stream of malformed UPDATEs keeps the process crashing in a loop.
Because rpd owns all routing protocol state, its crash disrupts BGP, IS-IS, OSPF, and other adjacencies on the device. The impact scales with the position of the router in the network. Prerequisites for the attack are limited to a peer capable of establishing a BGP session with the target, which is typical for edge, peering, and route reflector devices.
Root Cause
The root cause is Improper Handling of Exceptional Conditions [CWE-755] in BGP UPDATE processing. The path attribute validator does not gracefully reject or discard the malformed input, and instead reaches a fatal error path that terminates rpd. On 32-bit kernel builds the crash is reliably reproducible, while 64-bit kernel builds see the exceptional condition manifest only under narrow circumstances.
Attack Vector
Exploitation requires an established BGP session with the target router. An attacker who controls or compromises a BGP peer sends one or more crafted UPDATE messages containing the malformed path attribute. Each UPDATE triggers an rpd crash and restart, and repeated transmission produces a persistent denial of service. No authentication beyond BGP session establishment is required, and no user interaction is involved.
No verified proof-of-concept code is available. See the Juniper Support Portal advisory for vendor-provided technical details.
Detection Methods for CVE-2024-47491
Indicators of Compromise
- Unexpected rpd process crashes and core files on Junos OS or Junos OS Evolved devices, visible via show system core-dumps
- Repeated BGP session flaps and route churn coinciding with rpd restarts
- Syslog entries indicating rpd termination or restart, and BGP peer state transitions to Idle or Active
Detection Strategies
- Correlate rpd restart events with inbound BGP UPDATE messages from specific peers to identify the source of malformed attributes
- Enable BGP traceoptions with update detail to capture path attribute content preceding a crash for post-incident analysis
- Alert on routing protocol adjacency loss combined with rpd core-dump generation within the same interval
Monitoring Recommendations
- Continuously monitor BGP peer state and rpd uptime through SNMP, streaming telemetry, or the show system processes extensive command
- Ingest Junos syslog and BGP session events into a centralized log platform and alert on rpd termination events
- Track UPDATE message rates and error counters per BGP peer to identify anomalous or malicious patterns
How to Mitigate CVE-2024-47491
Immediate Actions Required
- Identify affected devices using show version detail and prioritize upgrades on 32-bit Junos systems and any device with external BGP peers
- Apply the fixed Junos OS or Junos OS Evolved release listed in the Juniper advisory as soon as maintenance windows allow
- Restrict BGP sessions to trusted peers only and enforce peer authentication using TCP MD5 or TCP-AO
Patch Information
Juniper has released fixed software in Junos OS 21.4R3-S8, 22.2R3-S4, 22.4R3-S3, 23.2R2-S1, 23.4R1-S2, and later, and in equivalent -EVO builds for Junos OS Evolved. Consult the Juniper Support Portal for the specific advisory, download links, and applicability to your platform.
Workarounds
- Limit BGP peering to explicitly trusted autonomous systems and drop inbound BGP TCP/179 connections from untrusted networks at edge filters
- Apply strict inbound BGP policies and configure bgp error-tolerance where supported to reduce the impact of malformed updates
- Where feasible, migrate routing engines to 64-bit Junos kernel builds, which Juniper reports have an extremely low probability of impact
# Verify whether the routing engine runs a 32-bit or 64-bit Junos kernel
show version detail | match 32
show version detail | match 64
# Restrict BGP peers and enable session authentication
set protocols bgp group EXTERNAL type external
set protocols bgp group EXTERNAL authentication-key "<shared-secret>"
set protocols bgp group EXTERNAL neighbor 203.0.113.10 peer-as 65010
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

