CVE-2021-31356: Juniper Networks Junos OS Evolved - Command Injection
- Cve: CVE-2021-31356
- Name: Juniper Networks Junos OS Evolved - Command Injection
- 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.
- Impact: Authenticated users can bypass command restrictions and execute arbitrary shell commands, potentially leading to unauthorized actions within the system.
- Remediation: Update to version 20.4R3-S1-EVO or later, or latest available version.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker needs authenticated CLI access
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00869
- Epss percentile: 0.59704
- Assignee: [email protected]
- Published at: 2021-10-19T19:15:08Z
- Age in days: 1862
- Modified at: 2026-06-17T03:51:36Z
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-31356
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
References
| Url | Source | Tags |
|---|---|---|
| https://kb.juniper.net/JSA11221 | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| juniper:junos_os_evolved | = 21.2 r1, = 21.2 r1-s1, = 21.2 r2, = 21.1, = 21.1 r1, = 21.1 r1-s1, = 21.1 r2, = 20.4 r1, = 20.4 r1-s1, = 20.4 r1-s2, = 20.4 r2, = 20.4 r2-s1, = 20.4 r2-s2, = 20.4 r2-s3, = 20.4 r3, <= 20.3 | no | nvd | /v1/products/juniper/junos_os_evolved |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts