# CVE-2024-21598: Junos OS and Junos OS Evolved: A malformed BGP tunnel encapsulation attribute will lead to an rpd crash

- Vendor: Juniper Networks, Junos OS, Junos OS Evolved
- Severity: HIGH (CVSS 4.0 8.7)
- Exploited (CISA KEV): not listed
- EPSS: 0.6% on 2026-12-02
- Public exploit: not checked
- Patch available: yes
- Vendor advisory: JSA75739, http://supportportal.juniper.net/JSA75739
- Published: 2024-04-10; updated: 2024-04-10
- Page: https://patchtonight.com/cve/CVE-2024-21598/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| Junos OS 20.4 | 20.4R3-S9 or later |
| Junos OS 21.2 | 21.2R3-S7 or later |
| Junos OS 21.3 | 21.3R3-S5 or later |
| Junos OS 21.4 | 21.4R3-S5 or later |
| Junos OS 22.1 | 22.1R3-S4 or later |
| Junos OS 22.2 | 22.2R3-S3 or later |
| Junos OS 22.3 | 22.3R3-S1 or later |
| Junos OS 22.4 | 22.4R3 or later |
| Junos OS 23.2 | 23.2R1-S2, 23.2R2 or later |
| Junos OS Evolved 20.4-EVO | 20.4R3-S9-EVO or later |
| Junos OS Evolved 21.2-EVO | 21.2R3-S7-EVO or later |
| Junos OS Evolved 21.3-EVO | 21.3R3-S5-EVO or later |
| Junos OS Evolved 21.4-EVO | 21.4R3-S5-EVO or later |
| Junos OS Evolved 22.1-EVO | 22.1R3-S4-EVO or later |
| Junos OS Evolved 22.2-EVO | 22.2R3-S3-EVO or later |
| Junos OS Evolved 22.3-EVO | 22.3R3-S1-EVO or later |
| Junos OS Evolved 22.4-EVO | 22.4R3-EVO or later |
| Junos OS Evolved 23.2-EVO | 23.2R1-S2-EVO, 23.2R2-EVO or later |

## The vendor's description

An Improper Validation of Syntactic Correctness of Input vulnerability in the Routing Protocol Daemon (rpd) of Juniper Networks Junos OS and Junos OS Evolved allows a network-based, unauthenticated attacker to cause a Denial of Service (DoS).

If a BGP update is received over an established BGP session which contains a tunnel encapsulation attribute with a specifically malformed TLV, rpd will crash and restart.

This issue affects Juniper Networks
Junos OS:
  *  20.4 versions 20.4R1 and later versions earlier than 20.4R3-S9;
  *  21.2 versions earlier than 21.2R3-S7;
  *  21.3 versions earlier than 21.3R3-S5;
  *  21.4 versions earlier than 21.4R3-S5;
  *  22.1 versions earlier than 22.1R3-S4;
  *  22.2 versions earlier than 22.2R3-S3;
  *  22.3 versions earlier than 22.3R3-S1;
  *  22.4 versions earlier than 22.4R3;
  *  23.2 versions earlier than 23.2R1-S2, 23.2R2;



Junos OS Evolved:
  *  20.4-EVO versions 20.4R1-EVO and later versions earlier than 20.4R3-S9-EVO;
  *  21.2-EVO versions earlier than 21.2R3-S7-EVO;
  *  21.3-EVO versions earlier than 21.3R3-S5-EVO;
  *  21.4-EVO versions earlier than 21.4R3-S5-EVO;
  *  22.1-EVO versions earlier than 22.1R3-S4-EVO;
  *  22.2-EVO versions earlier than 22.2R3-S3-EVO;
  *  22.3-EVO versions earlier than 22.3R3-S1-EVO;
  *  22.4-EVO versions earlier than 22.4R3-EVO;
  *  23.2-EVO versions earlier than 23.2R1-S2-EVO, 23.2R2-EVO;



This issue does not affect Juniper Networks
  *  Junos OS versions earlier than 20.4R1;
  *  Junos OS Evolved versions earlier than 20.4R1-EVO.



This is a related but separate issue than the one described in JSA79095.

## Workarounds

There are no known workarounds for this issue.

## Sources

- [Juniper Networks advisory](http://supportportal.juniper.net/JSA75739)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
