CVE-2025-52985: Junos OS Evolved: When a control-plane firewall filter refers to a prefix-list with more than 10 entries it's not matching

Published Jul 11, 2025
·
Updated

A Use of Incorrect Operator

vulnerability in the Routing Engine firewall of Juniper Networks Junos OS Evolved allows an unauthenticated, network-based attacker to bypass security restrictions.

When a firewall filter which is applied to the lo0 or re:mgmt interface references a prefix list with 'from prefix-list', and that prefix list contains more than 10 entries, the prefix list doesn't match and packets destined to or from the local device are not filtered.

This issue affects firewall filters applied to the re:mgmt interfaces as input and output, but only affects firewall filters applied to the lo0 interface as output. This issue is applicable to IPv4 and IPv6 as a prefix list can contain IPv4 and IPv6 prefixes. This issue affects Junos OS Evolved:

23.2R2-S3-EVO versions before 23.2R2-S4-EVO, 23.4R2-S3-EVO versions before 23.4R2-S5-EVO, 24.2R2-EVO versions before 24.2R2-S1-EVO, 24.4-EVO versions before 24.4R1-S3-EVO, 24.4R2-EVO.

This issue doesn't affect Junos OS Evolved versions before 23.2R1-EVO.

Affected Software

9 affected components
Juniper Networks Junos OS Evolved<23.2R2-S4-EVO, <23.4R2-S5-EVO, <24.2R2-S1-EVO, <24.4R1-S3-EVO, <24.4R2-EVO
Juniper Junos OS Evolved=23.2-r2-s3
Juniper Junos OS Evolved=23.4-r2-s3
Juniper Junos OS Evolved=23.4-r2-s4
Juniper Junos OS Evolved=24.2-r2
Juniper Junos OS Evolved=24.4
Juniper Junos OS Evolved=24.4-r1
Juniper Junos OS Evolved=24.4-r1-s2
Juniper Junos OS Evolved=24.4-r2

Remediation

Information

The following software releases have been updated to resolve this specific issue: 23.2R2-S4-EVO, 23.4R2-S5-EVO, 24.2R2-S1-EVO, 24.4R1-S3-EVO, 24.4R2-EVO, 25.2R1-EVO, and all subsequent releases.

Event History

Jul 11, 2025
CVE Published
via MITRE·03:09 PM
Data Sourced
via MITRE·03:09 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-52985?

CVE-2025-52985 has a high severity level due to its potential to allow unauthenticated attackers to bypass security restrictions.

2

How do I fix CVE-2025-52985?

To fix CVE-2025-52985, upgrade to a patched version of Junos OS Evolved that addresses this vulnerability.

3

What are the affected versions in CVE-2025-52985?

CVE-2025-52985 affects Junos OS Evolved versions prior to 24.4R2-EVO and others listed in the advisory.

4

Who is impacted by CVE-2025-52985?

All users of the Juniper Networks Junos OS Evolved firewall who have configured firewall filters incorrectly are impacted by CVE-2025-52985.

5

What kind of attack does CVE-2025-52985 enable?

CVE-2025-52985 enables a network-based attacker to bypass security restrictions by exploiting a misconfiguration in the firewall.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203