# CVE-2026-102178: Junos BGP flowspec buffer overflow can compromise the routing engine

A malformed BGP flowspec route can overflow a stack buffer in the routing daemon and take over the routing engine, but only with BGP update-threading on. Juniper knows of no exploitation, it is not on CISA's KEV list, and no public proof of concept is confirmed.

- Vendor: Juniper Networks, Junos OS and Junos OS Evolved (BGP flowspec with update-threading)
- Severity: CRITICAL (CVSS 4.0 9.3)
- Exploited (CISA KEV): not listed
- EPSS: 0.5% on 2026-12-02
- Public exploit: none reported
- Patch available: yes
- Vendor advisory: JSA112187, https://supportportal.juniper.net/JSA112187
- Published: 2026-10-14; updated: 2026-10-21
- Page: https://patchtonight.com/cve/CVE-2026-102178/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| Junos OS before 23.2R2-S7.7 | 23.2R2-S7.7 or later |
| Junos OS 23.4 | 23.4R2-S8.13 or later |
| Junos OS 24.2 | 24.2R2-S5.5 or later |
| Junos OS 24.4 | 24.4R2-S5 or later |
| Junos OS 25.2 | 25.2R2-S2 or later |
| Junos OS 25.4 | 25.4R1-S3, 25.4R2 or later |
| Junos OS 26.2 | 26.2R1-S2, 26.2R2 or later |
| Junos OS Evolved before 23.2R2-S7.7-EVO | 23.2R2-S7.7-EVO or later |
| Junos OS Evolved 23.4 | 23.4R2-S8.11-EVO or later |
| Junos OS Evolved 24.2 | 24.2R2-S5.6-EVO or later |
| Junos OS Evolved 24.4 | 24.4R2-S5-EVO or later |
| Junos OS Evolved 25.2 | 25.2R2-S2-EVO or later |
| Junos OS Evolved 25.4 | 25.4R1-S3-EVO, 25.4R2-EVO or later |
| Junos OS Evolved 26.2 | 26.2R1-S2-EVO, 26.2R2-EVO or later |
| Junos OS Evolved 25.2X100 | 25.2X100-D35-EVO or later |
| Junos OS Evolved 25.4X300 | 25.4X300-D40-EVO or later |
| Junos OS Evolved 23.4X100 | Listed as affected; no fixed version given in the CVE record |

## What it is

The BGP routing daemon (`rpd`) on Junos OS and Junos OS Evolved has a **stack-based buffer overflow** (CWE-121) in how it handles flowspec routes. A BGP flowspec peer that your router is configured to talk to can send a malformed flowspec NLRI. When the router re-advertises that route, the overflow can **compromise the routing engine** or crash the routing daemon.

It only happens when **BGP update-threading is enabled**. Juniper rates it CVSS 4.0 9.3 (critical); the CVE record also gives CVSS 3.1 9.8. CISA's SSVC data in the record says the bug is automatable with total technical impact.

This is not limited to SRX firewalls. Any Junos or Junos Evolved device with the configuration below is in scope, including routers.

Juniper found the bug internally. It says its SIRT is **not aware of any malicious exploitation**, and the CVE is not in CISA's KEV catalog as of the 2026-10-20 catalog. We found no public proof of concept. The EPSS score is low (0.5%).

## Am I affected?

You are exposed if **both** are true:

1. You run a Junos OS or Junos OS Evolved release older than the fixed version for your branch (see the table above).
2. BGP update-threading is on (`[system processes routing bgp update-threading]`) **and** BGP runs with the flowspec address family (`family inet flow` or `family inet6 flow` under `[protocols bgp]`).

The attacker must be a configured BGP flowspec peer, or control one. A peer you trust but that gets compromised counts.

**Check your version:**

```
show version
```

**Check the configuration.** Look for `update-threading` under `system processes routing bgp`, and for `flow` under the `inet` or `inet6` family in your BGP groups and neighbors. These are the configuration hierarchies named in the CVE record.

Devices without update-threading, or without flowspec, are outside the conditions Juniper lists. Keep upgrading them anyway, because the same releases also carry other fixes.

## What to do

1. **Upgrade** to a fixed release for your branch. Juniper's fixed releases include 23.2R2-S7.7, 23.4R2-S8.13, 24.2R2-S5.5, 24.4R2-S5, 25.2R2-S2, 25.4R1-S3, 25.4R2, 26.2R1-S2, 26.2R2 and 26.4R1, and Evolved equivalents with the `-EVO` suffix. For 23.2, 23.4 and 24.2 (Junos OS and Evolved), Juniper rebuilt previously published versions as respins, so check the advisory for the exact build.
2. **Juniper lists no workaround.** If you can't upgrade tonight, reducing exposure is your own call and not a vendor fix. Options to weigh: stop accepting flowspec routes from peers you don't fully control, or turn off update-threading. Both change routing behavior, so test first.
3. **If you run Junos OS Evolved 23.4X100**, the record lists it as affected with no fixed version. Ask Juniper support for guidance.
4. **After patching**, review routing daemon health and BGP peers (see below). Because no exploitation is known, a rebuild is not called for unless you find signs of compromise.

## Detection

No indicators of compromise are published. Look for signs of the bug being triggered:

- **`rpd` crashes or restarts**, and core files from the routing daemon. The record says the overflow can crash the routing daemon.
- Unexpected BGP session resets with flowspec peers around the same time.
- Flowspec routes received from a peer that you don't expect, or that look malformed.
- Unexplained configuration changes, new users or new processes on the routing engine, if you see rpd crashes.

## Sources

- [Juniper advisory JSA112187](https://supportportal.juniper.net/JSA112187)
- [CVE record (Juniper CNA)](https://cveawg.mitre.org/api/cve/CVE-2026-102178)

---

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.
