CVE-2025-52985 Security feature bypass in Junos OS Evolved

Medium 6.9 Published Updated

Attackers can bypass firewall filters on Junos OS Evolved if prefix lists exceed ten entries, allowing unauthorized access to management interfaces.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-52985?

CVE-2025-52985 is a medium-severity vulnerability in Juniper Junos Os Evolved, published on 11 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-480

Which versions are affected by CVE-2025-52985?

It affects 1 product.

Products include Juniper Junos Os Evolved.

How do I fix CVE-2025-52985?

No fix has been published for CVE-2025-52985 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-52985 being exploited?

There is no known exploitation of CVE-2025-52985 in the wild and no public exploit code.

All Juniper Junos Os Evolved vulnerabilities

Sources

Also known as GHSA-c7mr-h37w-h53j.

Is CVE-2025-52985 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free