CVE-2021-31356
Junos OS Evolved: Multiple shell-injection vulnerabilities in EVO UI wrapper scripts
AllVuln state: AFFECTED
Description
A command injection vulnerability in 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.4R3-S1-EVO; All versions of 21.1-EVO and 21.2-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.4R3-S1-EVO.
Supported product evidence
Applicability
Remediation
Applicability
Remediation
Evidence sources
- Juniper Networks CNA / CVE List V5 ↗CNA AUTHORITATIVE
- CVE List V5 ↗CNA AUTHORITATIVE
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.