CVE-2021-31358

Junos OS Evolved: shell-injection vulnerabilities in evo_sftp UI wrapper script

AllVuln state: AFFECTED

HIGH
CVSS
7.8
3.1
EPSS
0.62%
Percentile 51.39%
CISA KEV
Not listed
Published
October 19, 2021
Updated September 16, 2024

Description

A command injection vulnerability in sftp command processing on Juniper Networks Junos OS Evolved allows an attacker with authenticated CLI access to be able to bypass configured access protections to execute arbitrary shell commands within the context of the current user. The vulnerability allows an attacker to bypass command authorization restrictions assigned to their specific user account and execute commands that are available to the privilege level for which the user is assigned. For example, a user that is in the super-user login class, but restricted to executing specific CLI commands could exploit the vulnerability to execute any other command available to an unrestricted admin user. This vulnerability does not increase the privilege level of the user, but rather bypasses any CLI command restrictions by allowing full access to the shell. This issue affects Juniper Networks Junos OS Evolved: All versions prior to 20.4R2-S2-EVO; 21.1 versions prior to 21.1R2-EVO; 21.2 versions prior to 21.2R1-S1-EVO, 21.2R2-EVO.

Risk details

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

What should I do?

Review the vendor remediation for fixed or recommended release 20.4R2-S2-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
20.4R2-S2-EVO
NOT_AFFECTED · EXACT
20.4R2-S2-EVO
AFFECTED · RANGE
21.1R2-EVO
NOT_AFFECTED · EXACT
21.1R2-EVO
UNKNOWN · UNKNOWN
{"lessThan": "21.2R1-S1-EVO, 21.2R2-EVO", "status": "affected", "version": "21.2", "versionType": "custom"}
UNKNOWN · DEFAULT
{"defaultStatus": null}

Remediation

FIX_AVAILABLE
Release train: 20.4
First fixed: 20.4R2-S2-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 21.1
First fixed: 21.1R2-EVO
Vendor recommended: Not supplied
Remediation source ↗
Juniper Networks · Junos OS Evolved
Referenced / metadata only · CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
unspecified → 20.4R2-S2-EVO
AFFECTED · RANGE
21.1 → 21.1R2-EVO
AFFECTED · RANGE
21.2 → 21.2R1-S1-EVO, 21.2R2-EVO

Remediation

UNKNOWN
Release train: Not specified
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 21.1
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 21.2
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.

CVE-2021-31358 – Junos OS Evolved Affected Versions & Fix | AllVuln