CVE-2021-31356: juniper networks junos os evolved Command Injection
Vulnerability summary
CVE-2021-31356 is a high (CVSS 7.8) Command Injection vulnerability in juniper networks junos os evolved. EPSS estimates a 0.87% chance of exploitation in the next 30 days, higher than 58.1% of scored vulnerabilities.
Timeline
- 19-10-2021PublishedVulnerability first disclosed.
- 16-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.87%
Chance of exploitation in the next 30 days
Percentile
58%
Versus all other CVEs
30-day change
0.00 pp
From 0.87% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Affected systems
Juniper1 product
- junos_os_evolved≤ 20.3 | 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 | 21.1 | 21.1:r1 | 21.1:r1-s1 | 21.1:r2 | 21.2:r1 | 21.2:r1-s1 | 21.2:r2
Juniper networks1 product
- junos os evolved≥ unspecified, < 20.4R3-S1-EVO | ≥ 21.1R1-EVO, < 21.1* | ≥ 21.2R1-EVO, < 21.2*
2 vendors · 2 products