# CVE-2025-52986: Junos OS and Junos OS Evolved: When RIB sharding is configured each time a show command is executed RPD memory leaks

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-11 · Modified: 2025-07-15
- Record: https://cvemate.com/vulnerability/CVE-2025-52986 · JSON: https://cvemate.com/vulnerability/CVE-2025-52986/json

## Description

```text
A Missing Release of Memory after Effective Lifetime vulnerability in the routing protocol daemon (rpd) of Juniper Networks Junos OS and Junos OS Evolved allows a local, low privileged user to cause an impact to the availability of the device.

When RIB sharding is enabled and a user executes one of several routing related 'show' commands, a certain amount of memory is leaked. When all available memory has been consumed rpd will crash and restart.

The leak can be monitored with the CLI command:



show task memory detail | match task_shard_mgmt_cookie



where the allocated memory in bytes can be seen to continuously increase with each exploitation.



This issue affects:

Junos OS:

  *  all versions before 21.2R3-S9,
  *  21.4 versions before 21.4R3-S11,
  *  22.2 versions before 22.2R3-S7,
  *  22.4 versions before 22.4R3-S7,
  *  23.2 versions before 23.2R2-S4,
  *  23.4 versions before 23.4R2-S4,
  *  24.2 versions before 24.2R2,
  *  24.4 versions before 24.4R1-S2, 24.4R2;


Junos OS Evolved:

  *  all versions before 22.2R3-S7-EVO
  *  22.4-EVO versions before 22.4R3-S7-EVO,
  *  23.2-EVO versions before 23.2R2-S4-EVO,
  *  23.4-EVO versions before 23.4R2-S4-EVO,
  *  24.2-EVO versions before 24.2R2-EVO,
  *  24.4-EVO versions before 24.4R2-EVO.
```

## Signals

- CVSS: 6.8 medium (v4.0, CVE.org) CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L/AU:Y/R:A/RE:M
- EPSS: 0.133%, percentile 3.027%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- juniper networks junos os: \< 21.2R3-S9 \| ≥ 21.4, \< 21.4R3-S11 \| ≥ 22.2, \< 22.2R3-S7 \| ≥ 22.4, \< 22.4R3-S7 \| ≥ 23.2, \< 23.2R2-S4 \| ≥ 23.4, \< 23.4R2-S4 \| ≥ 24.2, \< 24.2R2 \| ≥ 24.4, \< 24.4R1-S2, 24.4R2
- juniper networks junos os evolved: \< 22.2R3-S7-EVO \| ≥ 22.4-EVO, \< 22.4R3-S7-EVO \| ≥ 23.2-EVO, \< 23.2R2-S4-EVO \| ≥ 23.4-EVO, \< 23.4R2-S4-EVO \| ≥ 24.2-EVO, \< 24.2R2-EVO \| ≥ 24.4-EVO, \< 24.4R2-EVO
- juniper junos: \< 21.2 \| 21.2 \| 21.2:r1 \| 21.2:r1-s1 \| 21.2:r1-s2 \| 21.2:r2 \| 21.2:r2-s1 \| 21.2:r2-s2 \| 21.2:r3 \| 21.2:r3-s1 \| 21.2:r3-s2 \| 21.2:r3-s3 \| 21.2:r3-s4 \| 21.2:r3-s5 \| 21.2:r3-s6 \| 21.2:r3-s7 \| 21.2:r3-s8 \| 21.4 \| 21.4:r1 \| 21.4:r1-s1 \| 21.4:r1-s2 \| 21.4:r2 \| 21.4:r2-s1 \| 21.4:r2-s2 \| 21.4:r3 \| 21.4:r3-s1 \| 21.4:r3-s10 \| 21.4:r3-s2 \| 21.4:r3-s3 \| 21.4:r3-s4 \| 21.4:r3-s5 \| 21.4:r3-s6 \| 21.4:r3-s7 \| 21.4:r3-s8 \| 21.4:r3-s9 \| 22.2 \| 22.2:r1 \| 22.2:r1-s1 \| 22.2:r1-s2 \| 22.2:r2 \| 22.2:r2-s1 \| 22.2:r2-s2 \| 22.2:r3 \| 22.2:r3-s1 \| 22.2:r3-s2 \| 22.2:r3-s3 \| 22.2:r3-s4 \| 22.2:r3-s5 \| 22.2:r3-s6 \| 22.4 \| 22.4:r1 \| 22.4:r1-s1 \| 22.4:r1-s2 \| 22.4:r2 \| 22.4:r2-s1 \| 22.4:r2-s2 \| 22.4:r3 \| 22.4:r3-s1 \| 22.4:r3-s2 \| 22.4:r3-s3 \| 22.4:r3-s4 \| 22.4:r3-s5 \| 22.4:r3-s6 \| 23.2 \| 23.2:r1 \| 23.2:r1-s1 \| 23.2:r1-s2 \| 23.2:r2 \| 23.2:r2-s1 \| 23.2:r2-s2 \| 23.2:r2-s3 \| 23.4 \| 23.4:r1 \| 23.4:r1-s1 \| 23.4:r1-s2 \| 23.4:r2 \| 23.4:r2-s1 \| 23.4:r2-s2 \| 23.4:r2-s3 \| 24.2 \| 24.2:r1 \| 24.2:r1-s1 \| 24.2:r1-s2 \| 24.4 \| 24.4:r1 \| 24.4:r2
- juniper junos\_os\_evolved: \< 22.2 \| 22.2 \| 22.2:r1 \| 22.2:r1-s1 \| 22.2:r1-s2 \| 22.2:r2 \| 22.2:r2-s1 \| 22.2:r2-s2 \| 22.2:r3 \| 22.2:r3-s1 \| 22.2:r3-s2 \| 22.2:r3-s3 \| 22.2:r3-s4 \| 22.2:r3-s5 \| 22.2:r3-s6 \| 22.4 \| 22.4:r1 \| 22.4:r1-s1 \| 22.4:r1-s2 \| 22.4:r2 \| 22.4:r2-s1 \| 22.4:r2-s2 \| 22.4:r3 \| 22.4:r3-s1 \| 22.4:r3-s2 \| 22.4:r3-s3 \| 22.4:r3-s4 \| 22.4:r3-s5 \| 22.4:r3-s6 \| 23.2 \| 23.2:r1 \| 23.2:r1-s1 \| 23.2:r1-s2 \| 23.2:r2 \| 23.2:r2-s1 \| 23.2:r2-s2 \| 23.2:r2-s3 \| 23.4 \| 23.4:r1 \| 23.4:r1-s1 \| 23.4:r1-s2 \| 23.4:r2 \| 23.4:r2-s1 \| 23.4:r2-s2 \| 23.4:r2-s3 \| 24.2 \| 24.2:r1 \| 24.2:r1-s2 \| 24.4 \| 24.4:r1 \| 24.4:r1-s2 \| 24.4:r1-s3

## References

- <https://supportportal.juniper.net/JSA100092>

---

Data as of 2026-12-05T06:33:29.464Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
