CVE-2025-52946: CWE-416 Use After Free in Juniper Networks Junos OS
A Use After Free vulnerability in the routing protocol daemon (rpd) of Juniper Networks Junos OS and Juniper Networks Junos OS Evolved allows an attacker sending a BGP update with a specifically malformed AS PATH to cause rpd to crash, resulting in a Denial of Service (DoS). Continuous receipt of the malformed AS PATH attribute will cause a sustained DoS condition. On all Junos OS and Junos OS Evolved platforms, the rpd process will crash and restart when a specifically malformed AS PATH is received within a BGP update and traceoptions are enabled. This issue only affects systems with BGP traceoptions enabled and requires a BGP session to be already established. Systems without BGP traceoptions enabled are not impacted by this issue. This issue affects: Junos OS: * All versions before 21.2R3-S9, * all versions of 21.4, * from 22.2 before 22.2R3-S6, * from 22.4 before 22.4R3-S5, * from 23.2 before 23.2R2-S3, * from 23.4 before 23.4R2-S4, * from 24.2 before 24.2R2; Junos OS Evolved: * All versions before 22.4R3-S5-EVO, * from 23.2-EVO before 23.2R2-S3-EVO, * from 23.4-EVO before 23.4R2-S4-EVO, * from 24.2-EVO before 24.2R2-EVO. This is a more complete fix for previously published CVE-2024-39549 (JSA83011).
AI Analysis
Technical Summary
CVE-2025-52946 is a high-severity Use After Free (CWE-416) vulnerability affecting the routing protocol daemon (rpd) component of Juniper Networks Junos OS and Junos OS Evolved. The vulnerability is triggered when an attacker sends a Border Gateway Protocol (BGP) update containing a specifically malformed AS PATH attribute. This malformed attribute causes the rpd process to crash and subsequently restart, resulting in a Denial of Service (DoS) condition. If the attacker continuously sends such malformed BGP updates, the DoS condition can be sustained, severely impacting network routing stability. The vulnerability only affects systems with BGP traceoptions enabled, which is a diagnostic feature used for detailed BGP message logging and troubleshooting. Systems without BGP traceoptions enabled are not vulnerable. The flaw impacts multiple versions of Junos OS and Junos OS Evolved, specifically all versions before 21.2R3-S9, all 21.4 versions, certain versions from 22.2 through 24.2, and their corresponding Junos OS Evolved releases. This vulnerability is a more comprehensive fix for a previously disclosed issue (CVE-2024-39549). The CVSS v3.1 base score is 7.5, indicating high severity, with an attack vector of network (AV:N), low attack complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), unchanged scope (S:U), no impact on confidentiality or integrity (C:N/I:N), but high impact on availability (A:H). No known exploits are currently reported in the wild. The vulnerability poses a significant risk to network availability and stability, particularly for organizations relying on Juniper routing infrastructure with BGP traceoptions enabled.
Potential Impact
For European organizations, this vulnerability can have serious implications on network availability and operational continuity. Juniper Networks devices are widely deployed in enterprise, service provider, and critical infrastructure networks across Europe. An attacker exploiting this vulnerability could cause repeated crashes of the routing daemon, leading to intermittent or sustained network outages. This can disrupt internal communications, internet connectivity, and inter-domain routing, potentially affecting business operations, cloud services access, and critical communications. The impact is especially critical for telecom operators, ISPs, and large enterprises that depend on stable BGP routing for their network backbone. Additionally, the requirement for an established BGP session means that attackers with network access or compromised peers could exploit this vulnerability remotely without authentication or user interaction. This raises concerns for multi-tenant data centers and peering arrangements common in European networks. While no confidentiality or integrity impacts are noted, the availability impact alone can cause significant financial and reputational damage. The presence of traceoptions enabled in production environments, often for troubleshooting, increases the attack surface. European organizations must be aware of this risk, particularly those with Juniper infrastructure running affected Junos OS versions and BGP traceoptions enabled.
Mitigation Recommendations
1. Immediate action should be to verify if BGP traceoptions are enabled on Juniper devices running affected Junos OS versions. If traceoptions are not required for active troubleshooting, disable them to eliminate exposure. 2. Apply the latest Juniper patches or software updates that address CVE-2025-52946 as soon as they become available. Since this vulnerability affects multiple Junos OS and Junos OS Evolved versions, coordinate with Juniper support to obtain the appropriate fixed releases. 3. Implement network segmentation and strict access controls to limit which peers can establish BGP sessions, reducing the risk of malicious BGP updates from untrusted sources. 4. Monitor BGP session stability and rpd process logs for signs of crashes or restarts, which may indicate exploitation attempts. 5. Employ anomaly detection systems to identify malformed BGP updates or unusual AS PATH attributes. 6. For environments requiring traceoptions, consider enabling them only temporarily during controlled troubleshooting windows and disable immediately afterward. 7. Engage with Juniper Networks for guidance on best practices for secure BGP configuration and traceoptions usage. 8. Review and update incident response plans to include procedures for handling routing daemon crashes and potential DoS attacks targeting network infrastructure.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Sweden, Poland, Belgium, Switzerland
CVE-2025-52946: CWE-416 Use After Free in Juniper Networks Junos OS
Description
A Use After Free vulnerability in the routing protocol daemon (rpd) of Juniper Networks Junos OS and Juniper Networks Junos OS Evolved allows an attacker sending a BGP update with a specifically malformed AS PATH to cause rpd to crash, resulting in a Denial of Service (DoS). Continuous receipt of the malformed AS PATH attribute will cause a sustained DoS condition. On all Junos OS and Junos OS Evolved platforms, the rpd process will crash and restart when a specifically malformed AS PATH is received within a BGP update and traceoptions are enabled. This issue only affects systems with BGP traceoptions enabled and requires a BGP session to be already established. Systems without BGP traceoptions enabled are not impacted by this issue. This issue affects: Junos OS: * All versions before 21.2R3-S9, * all versions of 21.4, * from 22.2 before 22.2R3-S6, * from 22.4 before 22.4R3-S5, * from 23.2 before 23.2R2-S3, * from 23.4 before 23.4R2-S4, * from 24.2 before 24.2R2; Junos OS Evolved: * All versions before 22.4R3-S5-EVO, * from 23.2-EVO before 23.2R2-S3-EVO, * from 23.4-EVO before 23.4R2-S4-EVO, * from 24.2-EVO before 24.2R2-EVO. This is a more complete fix for previously published CVE-2024-39549 (JSA83011).
AI-Powered Analysis
Technical Analysis
CVE-2025-52946 is a high-severity Use After Free (CWE-416) vulnerability affecting the routing protocol daemon (rpd) component of Juniper Networks Junos OS and Junos OS Evolved. The vulnerability is triggered when an attacker sends a Border Gateway Protocol (BGP) update containing a specifically malformed AS PATH attribute. This malformed attribute causes the rpd process to crash and subsequently restart, resulting in a Denial of Service (DoS) condition. If the attacker continuously sends such malformed BGP updates, the DoS condition can be sustained, severely impacting network routing stability. The vulnerability only affects systems with BGP traceoptions enabled, which is a diagnostic feature used for detailed BGP message logging and troubleshooting. Systems without BGP traceoptions enabled are not vulnerable. The flaw impacts multiple versions of Junos OS and Junos OS Evolved, specifically all versions before 21.2R3-S9, all 21.4 versions, certain versions from 22.2 through 24.2, and their corresponding Junos OS Evolved releases. This vulnerability is a more comprehensive fix for a previously disclosed issue (CVE-2024-39549). The CVSS v3.1 base score is 7.5, indicating high severity, with an attack vector of network (AV:N), low attack complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), unchanged scope (S:U), no impact on confidentiality or integrity (C:N/I:N), but high impact on availability (A:H). No known exploits are currently reported in the wild. The vulnerability poses a significant risk to network availability and stability, particularly for organizations relying on Juniper routing infrastructure with BGP traceoptions enabled.
Potential Impact
For European organizations, this vulnerability can have serious implications on network availability and operational continuity. Juniper Networks devices are widely deployed in enterprise, service provider, and critical infrastructure networks across Europe. An attacker exploiting this vulnerability could cause repeated crashes of the routing daemon, leading to intermittent or sustained network outages. This can disrupt internal communications, internet connectivity, and inter-domain routing, potentially affecting business operations, cloud services access, and critical communications. The impact is especially critical for telecom operators, ISPs, and large enterprises that depend on stable BGP routing for their network backbone. Additionally, the requirement for an established BGP session means that attackers with network access or compromised peers could exploit this vulnerability remotely without authentication or user interaction. This raises concerns for multi-tenant data centers and peering arrangements common in European networks. While no confidentiality or integrity impacts are noted, the availability impact alone can cause significant financial and reputational damage. The presence of traceoptions enabled in production environments, often for troubleshooting, increases the attack surface. European organizations must be aware of this risk, particularly those with Juniper infrastructure running affected Junos OS versions and BGP traceoptions enabled.
Mitigation Recommendations
1. Immediate action should be to verify if BGP traceoptions are enabled on Juniper devices running affected Junos OS versions. If traceoptions are not required for active troubleshooting, disable them to eliminate exposure. 2. Apply the latest Juniper patches or software updates that address CVE-2025-52946 as soon as they become available. Since this vulnerability affects multiple Junos OS and Junos OS Evolved versions, coordinate with Juniper support to obtain the appropriate fixed releases. 3. Implement network segmentation and strict access controls to limit which peers can establish BGP sessions, reducing the risk of malicious BGP updates from untrusted sources. 4. Monitor BGP session stability and rpd process logs for signs of crashes or restarts, which may indicate exploitation attempts. 5. Employ anomaly detection systems to identify malformed BGP updates or unusual AS PATH attributes. 6. For environments requiring traceoptions, consider enabling them only temporarily during controlled troubleshooting windows and disable immediately afterward. 7. Engage with Juniper Networks for guidance on best practices for secure BGP configuration and traceoptions usage. 8. Review and update incident response plans to include procedures for handling routing daemon crashes and potential DoS attacks targeting network infrastructure.
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- juniper
- Date Reserved
- 2025-06-23T13:16:01.408Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 687131bea83201eaacaf6626
Added to database: 7/11/2025, 3:46:06 PM
Last enriched: 7/11/2025, 4:01:12 PM
Last updated: 7/14/2025, 8:32:42 PM
Views: 10
Related Threats
CVE-2025-7367: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpchill Strong Testimonials
MediumCVE-2025-7360: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in htplugins HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder.
CriticalCVE-2025-7341: CWE-269 Improper Privilege Management in htplugins HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder.
CriticalCVE-2025-7340: CWE-434 Unrestricted Upload of File with Dangerous Type in htplugins HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder.
CriticalCVE-2025-5394: CWE-862 Missing Authorization in Bearsthemes Alone – Charity Multipurpose Non-profit WordPress Theme
CriticalActions
Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.
External Links
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.