CVE-2025-52986

Junos OS and Junos OS Evolved: When RIB sharding is configured each time a show command is executed RPD memory leaks

AllVuln state: AFFECTED

MEDIUM
CVSS
5.5
3.1
EPSS
0.13%
Percentile 3.01%
CISA KEV
Not listed
Published
July 11, 2025
Updated July 15, 2025

Description

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.

Risk details

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
attack vector
L
attack complexity
L
privileges required
L
user interaction
N
scope
U
CWE
CWE-401

What should I do?

Review the vendor remediation for fixed or recommended release 22.2R3-S7-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
22.2R3-S7-EVO
NOT_AFFECTED · EXACT
22.2R3-S7-EVO
AFFECTED · RANGE
22.4R3-S7-EVO
NOT_AFFECTED · EXACT
22.4R3-S7-EVO
AFFECTED · RANGE
23.2R2-S4-EVO
NOT_AFFECTED · EXACT
23.2R2-S4-EVO
AFFECTED · RANGE
23.4R2-S4-EVO
NOT_AFFECTED · EXACT
23.4R2-S4-EVO
AFFECTED · RANGE
24.2R2-EVO
NOT_AFFECTED · EXACT
24.2R2-EVO
AFFECTED · RANGE
24.4R2-EVO
NOT_AFFECTED · EXACT
24.4R2-EVO
NOT_AFFECTED · DEFAULT
{"defaultStatus": "unaffected"}

Remediation

FIX_AVAILABLE
Release train: 22.2
First fixed: 22.2R3-S7-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.4
First fixed: 22.4R3-S7-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 23.2
First fixed: 23.2R2-S4-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 23.4
First fixed: 23.4R2-S4-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 24.2
First fixed: 24.2R2-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 24.4
First fixed: 24.4R2-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-S9
NOT_AFFECTED · EXACT
21.2R3-S9
AFFECTED · RANGE
21.4R3-S11
NOT_AFFECTED · EXACT
21.4R3-S11
AFFECTED · RANGE
22.2R3-S7
NOT_AFFECTED · EXACT
22.2R3-S7
AFFECTED · RANGE
22.4R3-S7
NOT_AFFECTED · EXACT
22.4R3-S7
AFFECTED · RANGE
23.2R2-S4
NOT_AFFECTED · EXACT
23.2R2-S4
AFFECTED · RANGE
23.4R2-S4
NOT_AFFECTED · EXACT
23.4R2-S4
AFFECTED · RANGE
24.2R2
NOT_AFFECTED · EXACT
24.2R2
UNKNOWN · UNKNOWN
{"lessThan": "24.4R1-S2, 24.4R2", "status": "affected", "version": "24.4", "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-S11
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.2
First fixed: 22.2R3-S7
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.4
First fixed: 22.4R3-S7
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 23.2
First fixed: 23.2R2-S4
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 23.4
First fixed: 23.4R2-S4
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 24.2
First fixed: 24.2R2
Vendor recommended: Not supplied
Remediation source ↗
Juniper Networks · Junos OS Evolved
Referenced / metadata only · CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
22.2R3-S7-EVO
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]
AFFECTED · RANGE
22.4-EVO → 22.4R3-S7-EVO
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]
AFFECTED · RANGE
23.2-EVO → 23.2R2-S4-EVO
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]
AFFECTED · RANGE
23.4-EVO → 23.4R2-S4-EVO
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]
AFFECTED · RANGE
24.2-EVO → 24.2R2-EVO
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]
AFFECTED · RANGE
24.4-EVO → 24.4R2-EVO
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]

Remediation

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

Applicability

AFFECTED · RANGE
23.4 → 23.4R2-S4
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]
AFFECTED · RANGE
21.2R3-S9
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]
AFFECTED · RANGE
21.4 → 21.4R3-S11
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]
AFFECTED · RANGE
22.2 → 22.2R3-S7
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]
AFFECTED · RANGE
22.4 → 22.4R3-S7
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]
AFFECTED · RANGE
23.2 → 23.2R2-S4
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]
AFFECTED · RANGE
24.2 → 24.2R2
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]
AFFECTED · RANGE
24.4 → 24.4R1-S2, 24.4R2
Required configuration: To be exposed to this issue a system needs to be configured with RIB sharding: [ system processes routing bgp rib-sharding ]

Remediation

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