CVE-2025-21598

Junos OS and Junos OS Evolved: When BGP traceoptions are configured, receipt of malformed BGP packets causes RPD to crash

AllVuln state: AFFECTED

HIGH
CVSS
7.5
3.1
EPSS
0.72%
Percentile 55.23%
CISA KEV
Not listed
Published
January 9, 2025
Updated January 9, 2025

Description

An Out-of-bounds Read vulnerability in Juniper Networks Junos OS and Junos OS Evolved's routing protocol daemon (rpd) allows an unauthenticated, network-based attacker to send malformed BGP packets to a device configured with packet receive trace options enabled to crash rpd. This issue affects: Junos OS:  * from 21.2R3-S8 before 21.2R3-S9,  * from 21.4R3-S7 before 21.4R3-S9,  * from 22.2R3-S4 before 22.2R3-S5,  * from 22.3R3-S2 before 22.3R3-S4,  * from 22.4R3 before 22.4R3-S5,  * from 23.2R2 before 23.2R2-S2,  * from 23.4R1 before 23.4R2-S1,  * from 24.2R1 before 24.2R1-S1, 24.2R2. Junos OS Evolved: * from 21.4R3-S7-EVO before 21.4R3-S9-EVO,  * from 22.2R3-S4-EVO before 22.2R3-S5-EVO,  * from 22.3R3-S2-EVO before 22.3R3-S4-EVO,  * from 22.4R3-EVO before 22.4R3-S5-EVO,  * from 23.2R2-EVO before 23.2R2-S2-EVO,  * from 23.4R1-EVO before 23.4R2-S1-EVO,  * from 24.2R1-EVO before 24.2R1-S2-EVO, 24.2R2-EVO. This issue requires a BGP session to be established. This issue can propagate and multiply through multiple ASes until reaching vulnerable devices. This issue affects iBGP and eBGP. This issue affects IPv4 and IPv6. An indicator of compromise may be the presence of malformed update messages in a neighboring AS which is unaffected by this issue: For example, by issuing the command on the neighboring device:  show log messages Reviewing for similar messages from devices within proximity to each other may indicate this malformed packet is propagating:   rpd[<pid>]: Received malformed update from <IP address> (External AS <AS#>) and   rpd[<pid>]: Malformed Attribute

Risk details

CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
attack vector
N
attack complexity
L
privileges required
N
user interaction
N
scope
U
CWE
CWE-125, Denial of Service (DoS)

What should I do?

Review the vendor remediation for fixed or recommended release 21.4R3-S9-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
21.4R3-S7-EVO → 21.4R3-S9-EVO
NOT_AFFECTED · EXACT
21.4R3-S9-EVO
AFFECTED · RANGE
22.2R3-S4-EVO → 22.2R3-S5-EVO
NOT_AFFECTED · EXACT
22.2R3-S5-EVO
AFFECTED · RANGE
22.3R3-S2-EVO → 22.3R3-S4-EVO
NOT_AFFECTED · EXACT
22.3R3-S4-EVO
AFFECTED · RANGE
22.4R3-EVO → 22.4R3-S5-EVO
NOT_AFFECTED · EXACT
22.4R3-S5-EVO
AFFECTED · RANGE
23.2R2-EVO → 23.2R2-S2-EVO
NOT_AFFECTED · EXACT
23.2R2-S2-EVO
AFFECTED · RANGE
23.4R1-EVO → 23.4R2-S1-EVO
NOT_AFFECTED · EXACT
23.4R2-S1-EVO
UNKNOWN · UNKNOWN
{"lessThan": "24.2R1-S2-EVO, 24.2R2-EVO", "status": "affected", "version": "24.2R1-EVO", "versionType": "semver"}
NOT_AFFECTED · DEFAULT
{"defaultStatus": "unaffected"}

Remediation

FIX_AVAILABLE
Release train: 21.4
First fixed: 21.4R3-S9-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.2
First fixed: 22.2R3-S5-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.3
First fixed: 22.3R3-S4-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.4
First fixed: 22.4R3-S5-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 23.2
First fixed: 23.2R2-S2-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 23.4
First fixed: 23.4R2-S1-EVO
Vendor recommended: Not supplied
Remediation source ↗
Juniper Networks · Junos OS
Confirmed affected by authoritative structured evidence · Juniper Networks CNA / CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
21.2R3-S8 → 21.2R3-S9
NOT_AFFECTED · EXACT
21.2R3-S9
AFFECTED · RANGE
21.4R3-S7 → 21.4R3-S9
NOT_AFFECTED · EXACT
21.4R3-S9
AFFECTED · RANGE
22.2R3-S4 → 22.2R3-S5
NOT_AFFECTED · EXACT
22.2R3-S5
AFFECTED · RANGE
22.3R3-S2 → 22.3R3-S4
NOT_AFFECTED · EXACT
22.3R3-S4
AFFECTED · RANGE
22.4R3 → 22.4R3-S5
NOT_AFFECTED · EXACT
22.4R3-S5
AFFECTED · RANGE
23.2R2 → 23.2R2-S2
NOT_AFFECTED · EXACT
23.2R2-S2
AFFECTED · RANGE
23.4R1 → 23.4R2-S1
NOT_AFFECTED · EXACT
23.4R2-S1
UNKNOWN · UNKNOWN
{"lessThan": "24.2R1-S1, 24.2R2", "status": "affected", "version": "24.2R1", "versionType": "semver"}
NOT_AFFECTED · DEFAULT
{"defaultStatus": "unaffected"}

Remediation

FIX_AVAILABLE
Release train: 21.2
First fixed: 21.2R3-S9
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 21.4
First fixed: 21.4R3-S9
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.2
First fixed: 22.2R3-S5
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.3
First fixed: 22.3R3-S4
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.4
First fixed: 22.4R3-S5
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 23.2
First fixed: 23.2R2-S2
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 23.4
First fixed: 23.4R2-S1
Vendor recommended: Not supplied
Remediation source ↗
Juniper Networks · Junos OS Evolved
Referenced / metadata only · CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
21.4R3-S7-EVO → 21.4R3-S9-EVO
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
22.2R3-S4-EVO → 22.2R3-S5-EVO
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
22.3R3-S2-EVO → 22.3R3-S4-EVO
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
22.4R3-EVO → 22.4R3-S5-EVO
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
23.2R2-EVO → 23.2R2-S2-EVO
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
23.4R1-EVO → 23.4R2-S1-EVO
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
24.2R1-EVO → 24.2R1-S2-EVO, 24.2R2-EVO
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.

Remediation

UNKNOWN
Release train: 21.4R3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 22.2R3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 22.3R3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 22.4R3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 23.2R2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 23.4R1
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 24.2R1
First fixed: Unknown
Vendor recommended: Not supplied
Juniper Networks · Junos OS
Referenced / metadata only · CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
21.2R3-S8 → 21.2R3-S9
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
21.4R3-S7 → 21.4R3-S9
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
22.2R3-S4 → 22.2R3-S5
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
22.3R3-S2 → 22.3R3-S4
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
22.4R3 → 22.4R3-S5
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
23.2R2 → 23.2R2-S2
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
23.4R1 → 23.4R2-S1
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.
AFFECTED · RANGE
24.2R1 → 24.2R1-S1, 24.2R2
Required configuration: This issue can occur when bgp trace options are enabled at global, group, or neighbor-level. The following global example is provided:   [protocols bgp traceoptions flag update detail] or   [protocols bgp traceoptions flag receive detail] and   [protocols bgp traceoptions flag update detail]   [protocols bgp traceoptions flag receive detail] The following neighbor-level example is provided:   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag update detail]   [protocols bgp group test neighbor 192.168.1.1 traceoptions flag receive detail] Refer to your product documentation for other examples and configurations.

Remediation

UNKNOWN
Release train: 21.2R3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 21.4R3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 22.2R3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 22.3R3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 22.4R3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 23.2R2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 23.4R1
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 24.2R1
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.