title: Junos OS and Junos OS Evolved: An Unchecked Return Value in multiple users interfaces affects confidentiality and integrity of device operations
description:
An Unchecked Return Value vulnerability in the user interfaces to the Juniper Networks Junos OS and Junos OS Evolved, the CLI, the XML API, the XML Management Protocol, the NETCONF Management Protocol, the gNMI interfaces, and the J-Web User Interfaces causes unintended effects such as demotion or elevation of privileges associated with an operators actions to occur.
Multiple scenarios may occur; for example: privilege escalation over the device or another account, access to files that should not otherwise be accessible, files not being accessible where they should be accessible, code expected to run as non-root may run as root, and so forth.
This issue affects:
Juniper Networks Junos OS
*  All versions prior to 20.4R3-S7;
*  21.1 versions prior to 21.1R3-S5;
*  21.2 versions prior to 21.2R3-S5;
*  21.3 versions prior to 21.3R3-S4;
*  21.4 versions prior to 21.4R3-S3;
*  22.1 versions prior to 22.1R3-S2;
*  22.2 versions prior to 22.2R2-S2, 22.2R3;
*  22.3 versions prior to 22.3R1-S2, 22.3R2.
Juniper Networks Junos OS Evolved
*  All versions prior to 21.4R3-S3-EVO;
*  22.1-EVO version 22.1R1-EVO and later versions prior to 22.2R2-S2-EVO, 22.2R3-EVO;
*  22.3-EVO versions prior to 22.3R1-S2-EVO, 22.3R2-EVO.
problem types: CWE-252 Unchecked Return Value
affected:
{
defaultStatus: unaffected
product: Junos OS
vendor: Juniper Networks
versions:
lessThan: 20.4R3-S7, status: affected, version: 0, versionType: semver
lessThan: 21.1R3-S5, status: affected, version: 21.1, versionType: semver
lessThan: 21.2R3-S5, status: affected, version: 21.2, versionType: semver
lessThan: 21.3R3-S4, status: affected, version: 21.3, versionType: semver
lessThan: 21.4R3-S3, status: affected, version: 21.4, versionType: semver
lessThan: 22.1R3-S2, status: affected, version: 22.1, versionType: semver
lessThan: 22.2R2-S2, 22.2R3, status: affected, version: 22.2, versionType: semver
lessThan: 22.3R1-S2, 22.3R2, status: affected, version: 22.3, versionType: semver
}
{
defaultStatus: unaffected
product: Junos OS Evolved
vendor: Juniper Networks
versions:
lessThan: 21.4R3-S3-EVO, status: affected, version: 0, versionType: semver
lessThan: 22.1*-EVO, status: affected, version: 22.1R1-EVO, versionType: semver
lessThan: 22.2R2-S2-EVO, 22.2R3-EVO, status: affected, version: 22.2-EVO, versionType: semver
lessThan: 22.3R1-S2-EVO, 22.3R2-EVO, status: affected, version: 22.3-EVO, versionType: semver
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 7.3
baseSeverity: HIGH
confidentialityImpact: HIGH
integrityImpact: HIGH
privilegesRequired: LOW
scope: UNCHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
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: 20.4R3-S7, 21.1R3-S5, 21.2R3-S4, 21.2R3-S5, 21.3R3-S4, 21.4R3-S3, 22.1R3-S2, 22.2R2-S2, 22.2R3, 22.3R1-S2, 22.3R2, 22.3R3, 22.4R1, and all subsequent releases.
Junos OS Evolved: 21.4R3-S3-EVO, 22.2R2-S2-EVO, 22.2R3-EVO, 22.3R1-S2-EVO, 22.3R2-EVO, 22.4R1-EVO, and all subsequent releases.
workarounds: There are no known workarounds for this issue.
Methods that may reduce, but not eliminate, the risk of exploitation of these problems, and which do not mitigate or resolve the underlying problems include:
•	Discontinuing the use of any unnecessary administrative interfaces to the system
•	Using access lists or firewall filters to limit access to the device only from trusted users, hosts, and networks
•	Limiting the number of changes performed to a device through administrative interfaces
•	Reducing the frequency of unique telemetry events