title: Junos OS Evolved: 'file copy' CLI command can disclose password to shell users
description: An Exposure of Sensitive Information vulnerability in the 'file copy' command of Junos OS Evolved allows a local, authenticated attacker with shell access to view passwords supplied on the CLI command-line. These credentials can then be used to provide unauthorized access to the remote system.
This issue affects Juniper Networks Junos OS Evolved:
*  All versions prior to 20.4R3-S7-EVO;
*  21.1 versions 21.1R1-EVO and later;
*  21.2 versions prior to 21.2R3-S5-EVO;
*  21.3 versions prior to 21.3R3-S4-EVO;
*  21.4 versions prior to 21.4R3-S4-EVO;
*  22.1 versions prior to 22.1R3-S2-EVO;
*  22.2 versions prior to 22.2R2-EVO.
problem types: CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
affected:
{
defaultStatus: unaffected
product: Junos OS Evolved
vendor: Juniper Networks
versions:
lessThan: 20.4R3-S7-EVO, status: affected, version: 0, versionType: semver
lessThan: 21.1*, status: affected, version: 21.1R1, versionType: semver
lessThan: 21.2R3-S5-EVO, status: affected, version: 21.2, versionType: semver
lessThan: 21.3R3-S4-EVO, status: affected, version: 21.3, versionType: semver
lessThan: 21.4R3-S4-EVO, status: affected, version: 21.4, versionType: semver
lessThan: 22.1R3-S2-EVO, status: affected, version: 22.1, versionType: semver
lessThan: 22.2R2-EVO, status: affected, version: 22.2, versionType: semver
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: LOCAL
availabilityImpact: NONE
baseScore: 5.9
baseSeverity: MEDIUM
confidentialityImpact: HIGH
integrityImpact: NONE
privilegesRequired: LOW
scope: CHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:N/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 Evolved 20.4R3-S7-EVO, 21.2R3-S5-EVO, 21.3R3-S4-EVO, 21.4R3-S4-EVO, 22.1R3-S2-EVO, 22.2R2-EVO, 22.3R1-EVO, and all subsequent releases.
workarounds: Restrict Junos OS Evolved shell access to trusted users only.
Avoid or disallow the use of the 'file copy' command.