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

AllVuln state: AFFECTED

MEDIUM
CVSS
5.3
3.1
EPSS
0.30%
Percentile 24.12%
CISA KEV
Not listed
Published
July 11, 2025
Updated July 18, 2025

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.

Risk details

CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
attack vector
N
attack complexity
L
privileges required
N
user interaction
N
scope
U
CWE
CWE-480

What should I do?

Review the vendor remediation for fixed or recommended release 23.2R2-S4-EVO.

Supported product evidence

Juniper Networks · Junos OS Evolved
Confirmed affected by authoritative structured evidence · Juniper Networks CNA / CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
23.2R2-S3-EVO → 23.2R2-S4-EVO
NOT_AFFECTED · EXACT
23.2R2-S4-EVO
AFFECTED · RANGE
23.4R2-S3-EVO → 23.4R2-S5-EVO
NOT_AFFECTED · EXACT
23.4R2-S5-EVO
AFFECTED · RANGE
24.2R2-EVO → 24.2R2-S1-EVO
NOT_AFFECTED · EXACT
24.2R2-S1-EVO
UNKNOWN · UNKNOWN
{"lessThan": "24.4R1-S3-EVO, 24.4R2-EVO", "status": "affected", "version": "24.4-EVO", "versionType": "semver"}
NOT_AFFECTED · DEFAULT
{"defaultStatus": "unaffected"}

Remediation

FIX_AVAILABLE
Release train: 23.2
First fixed: 23.2R2-S4-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 23.4
First fixed: 23.4R2-S5-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 24.2
First fixed: 24.2R2-S1-EVO
Vendor recommended: Not supplied
Remediation source ↗
Juniper Networks · Junos OS Evolved
Referenced / metadata only · CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
23.2R2-S3-EVO → 23.2R2-S4-EVO
Required configuration: A system will only be affected by this vulnerability if like in the following example a firewall filter applied to the lo0 or re:mgmt interface references a prefix list with the 'from prefix-list' clause, and that prefix list contains more than 10 entries: [ policy-options prefix-list <prefix-list name> <prefix1> ] ... [ policy-options prefix-list <prefix-list name> <prefix11> ] ... [ firewall family <inet/inet6> filter <filter name> term <term name> from prefix-list <prefix-list name> ] [ interfaces <lo0 unit <unit> / re:mgmt<0/1> unit <unit>> family <inet/inet6> filter <input/output> <filter name> ]
AFFECTED · RANGE
23.4R2-S3-EVO → 23.4R2-S5-EVO
Required configuration: A system will only be affected by this vulnerability if like in the following example a firewall filter applied to the lo0 or re:mgmt interface references a prefix list with the 'from prefix-list' clause, and that prefix list contains more than 10 entries: [ policy-options prefix-list <prefix-list name> <prefix1> ] ... [ policy-options prefix-list <prefix-list name> <prefix11> ] ... [ firewall family <inet/inet6> filter <filter name> term <term name> from prefix-list <prefix-list name> ] [ interfaces <lo0 unit <unit> / re:mgmt<0/1> unit <unit>> family <inet/inet6> filter <input/output> <filter name> ]
AFFECTED · RANGE
24.2R2-EVO → 24.2R2-S1-EVO
Required configuration: A system will only be affected by this vulnerability if like in the following example a firewall filter applied to the lo0 or re:mgmt interface references a prefix list with the 'from prefix-list' clause, and that prefix list contains more than 10 entries: [ policy-options prefix-list <prefix-list name> <prefix1> ] ... [ policy-options prefix-list <prefix-list name> <prefix11> ] ... [ firewall family <inet/inet6> filter <filter name> term <term name> from prefix-list <prefix-list name> ] [ interfaces <lo0 unit <unit> / re:mgmt<0/1> unit <unit>> family <inet/inet6> filter <input/output> <filter name> ]
AFFECTED · RANGE
24.4-EVO → 24.4R1-S3-EVO, 24.4R2-EVO
Required configuration: A system will only be affected by this vulnerability if like in the following example a firewall filter applied to the lo0 or re:mgmt interface references a prefix list with the 'from prefix-list' clause, and that prefix list contains more than 10 entries: [ policy-options prefix-list <prefix-list name> <prefix1> ] ... [ policy-options prefix-list <prefix-list name> <prefix11> ] ... [ firewall family <inet/inet6> filter <filter name> term <term name> from prefix-list <prefix-list name> ] [ interfaces <lo0 unit <unit> / re:mgmt<0/1> unit <unit>> family <inet/inet6> filter <input/output> <filter name> ]

Remediation

UNKNOWN
Release train: 23.2R2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 23.4R2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 24.2R2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 24.4
First fixed: Unknown
Vendor recommended: Not supplied

Evidence sources

Coverage varies by vendor, product, platform, and historical source availability. Absence of a finding is not a security guarantee. Validate critical remediation against the linked vendor advisory.

AllVuln data refreshed November 5, 2026.