Home / Juniper Networks / Junos OS Evolved / CVE-2021-31357
CVE-2021-31357: is it exploited, and which versions of Juniper Networks Junos OS Evolved are affected and fixed?
CVE-2021-31357 is a command injection vulnerability in Juniper Networks Junos OS Evolved. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: Junos OS Evolved before 20.3R2-S1-EVO, Junos OS Evolved from 20.4 before 20.4R2-S2-EVO, Junos OS Evolved from 21.1 before 21.1R2-EVO and 1 more (CVE record by juniper). Fixed in 20.3R2-S1-EVO, 20.4R2-S2-EVO, 21.1R2-EVO and 21.2R1-S1-EVO, 21.2R2-EVO (CVE record by juniper). Severity: High (7.8, CVSS 3.1, from juniper).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 28, 2026, 20:10 UTC and NVD November 19, 2026, 07:54 UTC.
What is CVE-2021-31357?
Junos OS Evolved: shell-injection vulnerabilities in evo_tcpdump UI wrapper script
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.
From the CVE record by juniper, last updated September 17, 2024, 02:16 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Juniper Networks | Junos OS Evolved | before 20.3R2-S1-EVO from 20.4 before 20.4R2-S2-EVO from 21.1 before 21.1R2-EVO from 21.2 before 21.2R1-S1-EVO, 21.2R2-EVO | 20.3R2-S1-EVO, 20.4R2-S2-EVO, 21.1R2-EVO, 21.2R1-S1-EVO, 21.2R2-EVO |
As the CVE record by juniper states it, last updated September 17, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| juniper | junos os evolved | through 20.3 | operating system |
| juniper | junos os evolved | 20.4 | operating system |
| juniper | junos os evolved | 21.1 | operating system |
| juniper | junos os evolved | 21.2 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 03:51 UTC.
How severe is CVE-2021-31357?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | juniper |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 7.2 | CVSS 2.0 | AV:L/AC:L/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-31357 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.63% probability of exploitation activity in the next 30 days, percentile 51.7 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-77 Improper Neutralization of Special Elements used in a Command
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
How do I fix it? (from the CVE record)
The following software releases have been updated to resolve this specific issue: Junos OS Evolved 20.3R2-S1-EVO, 20.4R2-S2-EVO, 21.1R2-EVO, 21.2R1-S1-EVO, 21.2R2-EVO, 21.3R1-EVO, and all subsequent releases.
Is there a workaround? (from the CVE record)
Use access lists or firewall filters to limit access to the device via CLI only from trusted hosts and from trusted administrators. Limit access to the 'monitor traffic' command to authorized administrators.
Where are the vendor advisories and references?
- https://kb.juniper.net/JSA11221 x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- April 15, 2021
- Published
- October 19, 2021, 18:16 UTC
- CVE record updated
- September 17, 2024, 02:16 UTC by juniper
- NVD
- Modified, last modified June 17, 2026, 03:51 UTC
- Last checked
- CVE list November 28, 2026, 20:10 UTC; NVD November 19, 2026, 07:54 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Junos OS Evolved?
- Oct 14, 2026CVE-2026-101954 Juniper Networks Junos OS: authentication bypass (improper authentication)
- Oct 14, 2026CVE-2026-101952 Juniper Networks Junos OS: quantity not validated
- Oct 14, 2026CVE-2026-101949 Juniper Networks Junos OS: NULL pointer dereference (crash)
- Oct 14, 2026CVE-2026-101964 Juniper Networks Junos OS: reachable assertion (crash)
- Oct 14, 2026CVE-2026-101963 Juniper Networks Junos OS: incorrect calculation
- Oct 14, 2026CVE-2026-101962 Juniper Networks Junos OS: improper Handling of Length Parameter Inconsistency
- Oct 14, 2026CVE-2026-101961 Juniper Networks Junos OS: NULL pointer dereference (crash)
- Oct 14, 2026CVE-2026-101959 Juniper Networks Junos OS: function Call With Incorrect Variable or Reference as Argument
Questions about CVE-2021-31357
Is CVE-2021-31357 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 0.63% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Juniper Networks Junos OS Evolved are affected by CVE-2021-31357?
Junos OS Evolved before 20.3R2-S1-EVO, Junos OS Evolved from 20.4 before 20.4R2-S2-EVO, Junos OS Evolved from 21.1 before 21.1R2-EVO and Junos OS Evolved from 21.2 before 21.2R1-S1-EVO, 21.2R2-EVO, per the CVE record by juniper. The tables above give every range the sources list.
Which version fixes CVE-2021-31357?
20.3R2-S1-EVO, 20.4R2-S2-EVO, 21.1R2-EVO and 21.2R1-S1-EVO, 21.2R2-EVO, per the CVE record by juniper. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-31357?
High (7.8, CVSS 3.1, from juniper). The severity table above shows each score with its source.
Where is the official record of CVE-2021-31357?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.