CVE-2025-52981 Overview
CVE-2025-52981 is an Improper Check for Unusual or Exceptional Conditions vulnerability (CWE-754) affecting the flow processing daemon (flowd) in Juniper Networks Junos OS. This vulnerability allows an unauthenticated, network-based attacker to cause a Denial-of-Service (DoS) condition on affected Juniper SRX Series firewalls. When a specific sequence of Protocol Independent Multicast (PIM) packets is received by a vulnerable device, the flowd process crashes and restarts, disrupting network traffic flow and security inspection capabilities.
This vulnerability is similar to, but distinct from, CVE-2024-47503 which was previously documented in Juniper Security Advisory JSA88133.
Critical Impact
Unauthenticated remote attackers can crash the flow processing daemon on enterprise-grade SRX firewalls, causing service disruption and potential security gaps during the restart period.
Affected Products
- Juniper Junos OS all versions before 21.2R3-S9
- Juniper Junos OS 21.4 versions before 21.4R3-S11
- Juniper Junos OS 22.2 versions before 22.2R3-S7
- Juniper Junos OS 22.4 versions before 22.4R3-S6
- Juniper Junos OS 23.2 versions before 23.2R2-S4
- Juniper Junos OS 23.4 versions before 23.4R2-S4
- Juniper Junos OS 24.2 versions before 24.2R2
- Juniper SRX1600, SRX2300, SRX 4000 Series (SRX4100, SRX4120, SRX4200, SRX4300, SRX4600, SRX4700)
- Juniper SRX 5000 Series with SPC3 (SRX5400, SRX5600, SRX5800, SRX5K-SPC3)
Discovery Timeline
- July 11, 2025 - CVE-2025-52981 published to NVD
- January 30, 2026 - Last updated in NVD database
Technical Details for CVE-2025-52981
Vulnerability Analysis
The vulnerability resides in the flow processing daemon (flowd), which is a critical component of Junos OS responsible for handling traffic flow through SRX Series firewalls. The flowd process performs stateful packet inspection, security policy enforcement, and traffic forwarding decisions.
The root cause is an improper check for unusual or exceptional conditions when processing Protocol Independent Multicast (PIM) protocol packets. PIM is a multicast routing protocol that operates at Layer 3 and is commonly used in enterprise networks for efficient distribution of multicast traffic. The flowd daemon fails to properly validate certain edge cases or malformed sequences within PIM packet processing, leading to an unhandled exception that causes the process to crash.
When exploited, the flowd daemon crashes and automatically restarts. During the restart period, traffic processing is interrupted, which can result in dropped packets, session timeouts, and temporary loss of security inspection capabilities. Repeated exploitation could maintain a persistent denial of service condition.
Root Cause
The vulnerability stems from CWE-754: Improper Check for Unusual or Exceptional Conditions. The flowd daemon does not adequately validate or handle specific sequences of PIM packets before processing them. This lack of proper boundary checking or exception handling allows malformed or unexpected packet sequences to trigger a crash condition in the flow processing logic.
Attack Vector
This vulnerability can be exploited remotely over the network without authentication. An attacker needs network access to send specially crafted PIM packets to a vulnerable Juniper SRX firewall. The attack does not require any user interaction or prior authentication to the device.
The exploitation involves sending a specific sequence of PIM protocol packets to the target device. PIM typically operates on IP protocol number 103 and uses multicast addressing. The attack can be launched from any network location that has routing connectivity to send PIM packets to the target device's interfaces where PIM processing is enabled.
Since PIM is a multicast routing protocol, organizations running multicast services or with PIM enabled on their SRX firewalls are at elevated risk. The attack surface includes any interface configured to process PIM traffic.
Detection Methods for CVE-2025-52981
Indicators of Compromise
- Unexpected flowd process restarts in system logs with crash signatures related to PIM packet processing
- Repeated core dumps from the flowd daemon in /var/crash/ or similar directories
- Unusual volume of PIM protocol traffic (IP protocol 103) targeting the firewall interfaces
- Service disruption patterns correlating with incoming multicast or PIM traffic
Detection Strategies
- Monitor Junos OS system logs for flowd crash events using show log messages | match flowd
- Configure SNMP traps or streaming telemetry to alert on process restart events
- Implement network-based detection for anomalous PIM packet sequences targeting SRX devices
- Review core dump files for evidence of exploitation attempts
Monitoring Recommendations
- Enable detailed logging for the flow daemon and PIM protocol processing
- Deploy network traffic analysis to baseline normal PIM traffic patterns and alert on deviations
- Configure SentinelOne Singularity for Network to monitor traffic flows to Juniper devices and detect anomalous protocol behavior
- Establish automated alerting for multiple flowd restarts within short time windows
How to Mitigate CVE-2025-52981
Immediate Actions Required
- Upgrade Junos OS to patched versions: 21.2R3-S9, 21.4R3-S11, 22.2R3-S7, 22.4R3-S6, 23.2R2-S4, 23.4R2-S4, or 24.2R2 or later
- Review the Juniper Support Advisory JSA100087 for complete remediation guidance
- Inventory all SRX1600, SRX2300, SRX 4000 Series, and SRX 5000 Series with SPC3 devices in your environment
- Prioritize patching for devices exposed to untrusted networks or with PIM routing enabled
Patch Information
Juniper Networks has released security patches addressing this vulnerability. The following Junos OS versions contain the fix:
| Branch | Fixed Version |
|---|---|
| 21.2 | 21.2R3-S9 and later |
| 21.4 | 21.4R3-S11 and later |
| 22.2 | 22.2R3-S7 and later |
| 22.4 | 22.4R3-S6 and later |
| 23.2 | 23.2R2-S4 and later |
| 23.4 | 23.4R2-S4 and later |
| 24.2 | 24.2R2 and later |
Organizations should download patches from the Juniper Support Portal and follow standard change management procedures for deployment. See the Juniper Support Advisory JSA100087 for additional details.
Workarounds
- Disable PIM protocol processing on SRX devices where multicast routing is not required
- Implement firewall filters to restrict PIM traffic (IP protocol 103) to trusted sources only
- Deploy network segmentation to limit exposure of vulnerable devices to untrusted networks
- Enable rate limiting on interfaces to reduce the impact of potential exploitation attempts
# Example: Junos firewall filter to restrict PIM traffic to trusted sources
set firewall family inet filter PROTECT-FLOWD term ALLOW-TRUSTED-PIM from source-prefix-list TRUSTED-PIM-SOURCES
set firewall family inet filter PROTECT-FLOWD term ALLOW-TRUSTED-PIM from protocol pim
set firewall family inet filter PROTECT-FLOWD term ALLOW-TRUSTED-PIM then accept
set firewall family inet filter PROTECT-FLOWD term BLOCK-PIM from protocol pim
set firewall family inet filter PROTECT-FLOWD term BLOCK-PIM then discard
set firewall family inet filter PROTECT-FLOWD term ALLOW-OTHER then accept
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

