CVE-2021-31357
Last modified
CVE-2021-31357 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. A command injection vulnerability in tcpdump 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. EPSS estimates a 0.63% chance of exploitation in the next 30 days.
Description
A command injection vulnerability in tcpdump 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.3R2-S1-EVO; 20.4 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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Juniper | Junos Os Evolved | <= 20.3 | — |
| Juniper | Junos Os Evolved | 20.4 | R1 |
| Juniper | Junos Os Evolved | 21.1 | — |
| Juniper | Junos Os Evolved | 21.2 | R1 |
References
- https://kb.juniper.net/JSA11221Vendor Advisory
- https://kb.juniper.net/JSA11221Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-31357?
How severe is CVE-2021-31357?
How do I fix CVE-2021-31357?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-31351An Improper Check for Unusual or Exceptional Conditions in p…7.5
- CVE-2021-31352An Information Exposure vulnerability in Juniper Networks SR…5.3
- CVE-2021-31353An Improper Handling of Exceptional Conditions vulnerability…7.5
- CVE-2021-31354An Out Of Bounds (OOB) access vulnerability in the handling …8.8
- CVE-2021-31355A persistent cross-site scripting (XSS) vulnerability in the…5.4
- CVE-2021-31356A command injection vulnerability in command processing on J…7.8
- CVE-2021-31358A command injection vulnerability in sftp command processing…7.8
- CVE-2021-31359A local privilege escalation vulnerability in Juniper Networ…7.8
- CVE-2021-31360An improper privilege management vulnerability in the Junipe…7.1
- CVE-2021-31361An Improper Check for Unusual or Exceptional Conditions vuln…5.3
- CVE-2021-31362A Protection Mechanism Failure vulnerability in RPD (routing…6.5
- CVE-2021-31363In an MPLS P2MP environment a Loop with Unreachable Exit Con…6.5
Are you affected by CVE-2021-31357?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
