First published: Wed Oct 13 2021(Updated: )
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.
Credit: sirt@juniper.net
Affected Software | Affected Version | How to fix |
---|---|---|
Juniper Networks Junos OS Evolved | <=20.3 | |
Juniper Networks Junos OS Evolved | =20.4-r1 | |
Juniper Networks Junos OS Evolved | =20.4-r1-s1 | |
Juniper Networks Junos OS Evolved | =20.4-r1-s2 | |
Juniper Networks Junos OS Evolved | =20.4-r2 | |
Juniper Networks Junos OS Evolved | =20.4-r2-s1 | |
Juniper Networks Junos OS Evolved | =20.4-r2-s2 | |
Juniper Networks Junos OS Evolved | =20.4-r2-s3 | |
Juniper Networks Junos OS Evolved | =20.4-r3 | |
Juniper Networks Junos OS Evolved | =21.1 | |
Juniper Networks Junos OS Evolved | =21.1-r1 | |
Juniper Networks Junos OS Evolved | =21.1-r1-s1 | |
Juniper Networks Junos OS Evolved | =21.1-r2 | |
Juniper Networks Junos OS Evolved | =21.2-r1 | |
Juniper Networks Junos OS Evolved | =21.2-r1-s1 | |
Juniper Networks Junos OS Evolved | =21.2-r2 |
The following software releases have been updated to resolve this specific issue: Junos OS Evolved 20.4R2-S2-EVO, 21.1R2-EVO, 21.2R1-S1-EVO, 21.2R2-EVO, 21.3R1-EVO, and all subsequent releases.
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-31358 has been classified with a high severity due to the ability to execute arbitrary commands.
To fix CVE-2021-31358, upgrade the Junos OS Evolved to a version that contains the security patch addressing this vulnerability.
CVE-2021-31358 affects Juniper Networks Junos OS Evolved versions up to and including 20.3 and specific versions within the 20.4 and 21.x series.
CVE-2021-31358 can be exploited by attackers with authenticated CLI access to the affected Junos OS Evolved systems.
The potential impacts of CVE-2021-31358 include unauthorized access to system functions, data manipulation, and execution of arbitrary commands.