# CVE-2025-21598: Junos OS and Junos OS Evolved: When BGP traceoptions are configured, receipt of malformed BGP packets causes RPD to crash

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L/AU:Y/R:A/V:C/RE:M/U:Amber`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: Low; AU: Y; R: A; V: C; RE: M; U: Amber
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.83% (percentile 55, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-01-09T18:16:32.549Z
- **Modified:** 2026-06-17T08:43:49.230Z

## Who should check

- Anyone running Juniper Networks Junos OS \>= 21.2R3-S8, \< 21.2R3-S9; \>= 21.4R3-S7, \< 21.4R3-S9; \>= 22.2R3-S4, \< 22.2R3-S5; \>= 22.3R3-S2, \< 22.3R3-S4; \>= 22.4R3, \< 22.4R3-S5; \>= 23.2R2, \< 23.2R2-S2; \>= 23.4R1, \< 23.4R2-S1; \>= 24.2R1, \< 24.2R1-S1, 24.2R2
- Anyone running Juniper Networks Junos OS Evolved \>= 21.4R3-S7-EVO, \< 21.4R3-S9-EVO; \>= 22.2R3-S4-EVO, \< 22.2R3-S5-EVO; \>= 22.3R3-S2-EVO, \< 22.3R3-S4-EVO; \>= 22.4R3-EVO, \< 22.4R3-S5-EVO; \>= 23.2R2-EVO, \< 23.2R2-S2-EVO; \>= 23.4R1-EVO, \< 23.4R2-S1-EVO; \>= 24.2R1-EVO, \< 24.2R1-S2-EVO, 24.2R2-EVO

## 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

## Affected and fixed versions

- Juniper Networks Junos OS: \>= 21.2R3-S8, \< 21.2R3-S9; \>= 21.4R3-S7, \< 21.4R3-S9; \>= 22.2R3-S4, \< 22.2R3-S5; \>= 22.3R3-S2, \< 22.3R3-S4; \>= 22.4R3, \< 22.4R3-S5; \>= 23.2R2, \< 23.2R2-S2; \>= 23.4R1, \< 23.4R2-S1; \>= 24.2R1, \< 24.2R1-S1, 24.2R2 (cvelist)
- Juniper Networks Junos OS Evolved: \>= 21.4R3-S7-EVO, \< 21.4R3-S9-EVO; \>= 22.2R3-S4-EVO, \< 22.2R3-S5-EVO; \>= 22.3R3-S2-EVO, \< 22.3R3-S4-EVO; \>= 22.4R3-EVO, \< 22.4R3-S5-EVO; \>= 23.2R2-EVO, \< 23.2R2-S2-EVO; \>= 23.4R1-EVO, \< 23.4R2-S1-EVO; \>= 24.2R1-EVO, \< 24.2R1-S2-EVO, 24.2R2-EVO (cvelist)

## Mitigation

- Vendor workaround: Disabling packet tracing options will work around this issue.
- 
- There are no other available workarounds for this issue.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21598. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21598.md
Affected: Juniper Networks Junos OS >= 21.2R3-S8, < 21.2R3-S9; >= 21.4R3-S7, < 21.4R3-S9; >= 22.2R3-S4, < 22.2R3-S5; >= 22.3R3-S2, < 22.3R3-S4; >= 22.4R3, < 22.4R3-S5; >= 23.2R2, < 23.2R2-S2; >= 23.4R1, < 23.4R2-S1; >= 24.2R1, < 24.2R1-S1, 24.2R2; Juniper Networks Junos OS Evolved >= 21.4R3-S7-EVO, < 21.4R3-…
Fixed in: Juniper Networks Junos OS 21.2R3-S9, Juniper Networks Junos OS 21.4R3-S9, Juniper Networks Junos OS 22.2R3-S5, Juniper Networks Junos OS 22.3R3-S4, Juniper Networks Junos OS 22.4R3-S5, Juniper Networks Junos OS 23.2R2-S2, Juniper Networks Junos OS 23.4R2-S1, Juniper Networks Junos OS 24.2R1-S1, Jun…

Steps:
1. Search this machine and project for Juniper Networks Junos OS, Juniper Networks Junos OS Evolved: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21598 being exploited?

There is no confirmed exploitation: CVE-2025-21598 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.83% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21598?

High: CVSS 8.2 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-21598?

Juniper Networks Junos OS \>= 21.2R3-S8, \< 21.2R3-S9; \>= 21.4R3-S7, \< 21.4R3-S9; \>= 22.2R3-S4, \< 22.2R3-S5; \>= 22.3R3-S2, \< 22.3R3-S4; \>= 22.4R3, \< 22.4R3-S5; \>= 23.2R2, \< 23.2R2-S2; \>= 23.4R1, \< 23.4R2-S1; \>= 24.2R1, \< 24.2R1-S1, 24.2R2; Juniper Networks Junos OS Evolved \>= 21.4R3-S7-EVO, \< 21.4R3-S9-EVO; \>= 22.2R3-S4-EVO, \< 22.2R3-S5-EVO; \>= 22.3R3-S2-EVO, \< 22.3R3-S4-EVO; \>= 22.4R3-EVO, \< 22.4R3-S5-EVO; \>= 23.2R2-EVO, \< 23.2R2-S2-EVO; \>= 23.4R1-EVO, \< 23.4R2-S1-EVO; \>= 24.2R1-EVO, \< 24.2R1-S2-EVO, 24.2R2-EVO.

### Is there a fix for CVE-2025-21598?

Yes. Fixed in Juniper Networks Junos OS 21.2R3-S9, Juniper Networks Junos OS 21.4R3-S9, Juniper Networks Junos OS 22.2R3-S5, Juniper Networks Junos OS 22.3R3-S4, Juniper Networks Junos OS 22.4R3-S5, Juniper Networks Junos OS 23.2R2-S2, Juniper Networks Junos OS 23.4R2-S1, Juniper Networks Junos OS 24.2R1-S1, Juniper Networks Junos OS Evolved 21.4R3-S9-EVO, Juniper Networks Junos OS Evolved 22.2R3-S5-EVO, Juniper Networks Junos OS Evolved 22.3R3-S4-EVO, Juniper Networks Junos OS Evolved 22.4R3-S5-EVO, Juniper Networks Junos OS Evolved 23.2R2-S2-EVO, Juniper Networks Junos OS Evolved 23.4R2-S1-EVO, Juniper Networks Junos OS Evolved 24.2R1-S2-EVO. Vendor workaround: Disabling packet tracing options will work around this issue.  There are no other available workarounds for this issue.

### How do I check if I'm affected by CVE-2025-21598?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://supportportal.juniper.net/JSA92867>
- other: <https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/statement/traceoptions-edit-protocols-bgp.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21598>

HTML: <https://flawdb.com/CVE-2025-21598> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21598>
