title: Junos OS and Junos OS Evolved: In a BGP rib sharding scenario an rpd crash will happen shortly after a specific CLI command is issued
description: A Use After Free vulnerability in the routing protocol daemon of Juniper Networks Junos OS and Junos OS Evolved allows a locally authenticated attacker with low privileges to cause Denial of Service (DoS). In a rib sharding scenario the rpd process will crash shortly after specific CLI command is issued. This issue is more likely to occur in a scenario with high route scale (>1M routes).
This issue affects:
Juniper Networks Junos OS
*  20.2 version 20.2R3-S5 and later versions prior to 20.2R3-S6;
*  20.3 version 20.3R3-S2 and later versions prior to 20.3R3-S5;
*  20.4 version 20.4R3-S1 and later versions prior to 20.4R3-S4
*  21.1 version 21.1R3 and later versions prior to 21.1R3-S3;
*  21.2 version 21.2R1-S2, 21.2R2-S1 and later versions prior to 21.2R3-S2;
*  21.3 version 21.3R2 and later versions prior to 21.3R3;
*  21.4 versions prior to 21.4R2-S1, 21.4R3;
*  22.1 versions prior to 22.1R2.
Juniper Networks Junos OS Evolved
*  20.4-EVO version 20.4R3-S1-EVO and later versions prior to 20.4R3-S6-EVO;
*  21.2-EVO version 21.2R1-S2-EVO and later versions prior to 21.2R3-S4-EVO;
*  21.3-EVO version 21.3R2-EVO and later versions prior to 21.3R3-S1-EVO;
*  21.4-EVO versions prior to 21.4R2-S1-EVO, 21.4R3-EVO;
*  22.1-EVO versions prior to 22.1R2-EVO.
problem types: CWE-416 Use After Free
affected:
{
defaultStatus: unaffected
product: Junos OS
vendor: Juniper Networks
versions:
lessThan: 20.2R3-S6, status: affected, version: 20.2R3-S5, versionType: semver
lessThan: 20.3R3-S5, status: affected, version: 20.3R3-S2, versionType: semver
lessThan: 20.4R3-S4, status: affected, version: 20.4R3-S1, versionType: semver
lessThan: 21.1R3-S3, status: affected, version: 21.1R3, versionType: semver
lessThan: 21.2R3-S2, status: affected, version: 21.2R1-S2, 21.2R2-S1, versionType: semver
lessThan: 21.3R3, status: affected, version: 21.3R2, versionType: semver
lessThan: 21.4R2-S1, 21.4R3, status: affected, version: 21.4R1, versionType: semver
lessThan: 22.1R2, status: affected, version: 22.1R1, versionType: semver
}
{
defaultStatus: unaffected
product: Junos OS Evolved
vendor: Juniper Networks
versions:
lessThan: 20.4R3-S6-EVO, status: affected, version: 20.4R3-S1-EVO, versionType: semver
lessThan: 21.2R3-S4-EVO, status: affected, version: 21.2R1-S2-EVO, versionType: semver
lessThan: 21.3R3-S1-EVO, status: affected, version: 21.3R2-EVO, versionType: semver
lessThan: 21.4R2-S1-EVO, 21.4R3-EVO, status: affected, version: 21.4R1-EVO, versionType: semver
lessThan: 22.1R2-EVO, status: affected, version: 22.1R1-EVO, versionType: semver
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: LOCAL
availabilityImpact: HIGH
baseScore: 5.5
baseSeverity: MEDIUM
confidentialityImpact: NONE
integrityImpact: NONE
privilegesRequired: LOW
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
version: 3.1
]
format: CVSS
scenarios: GENERAL
exploits: Juniper SIRT is not aware of any malicious exploitation of this vulnerability.
solutions: The following software releases have been updated to resolve this specific issue:
Junos OS Evolved: 20.4R3-S6-EVO, 21.2R3-S4-EVO, 21.3R3-S1-EVO, 21.4R2-S1-EVO, 21.4R3-EVO, 22.1R2-EVO, 22.2R1-EVO, and all subsequent releases.
Junos OS: 20.2R3-S6, 20.3R3-S5, 20.4R3-S4, 21.1R3-S3, 21.2R3-S2, 21.3R3, 21.4R2-S1, 21.4R3, 22.1R2, 22.2R1, and all subsequent releases.
workarounds: There are no known workarounds for this issue.
To reduce the risk of exploitation use access controls to limit CLI access to the device only from trusted networks, hosts and users.