CVE-2021-31360

Junos OS and Junos OS Evolved: Denial of Service vulnerability in local file processing

HIGH
7.1
CVSS Score
Published: October 19, 2021 at 06:16 PM UTC
Updated: June 17, 2026 at 03:51 AM UTC
3 products affected across 2 vendorsJunosJunos OS EvolvedJunos OS Evolved

Using Junos OS by Juniper Networks?

Get instant alerts when new vulnerabilities affect Junos OS - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.2%

Description

An improper privilege management vulnerability in the Juniper Networks Junos OS and Junos OS Evolved command-line interpreter (CLI) allows a low-privileged user to overwrite local files as root, possibly leading to a system integrity issue or Denial of Service (DoS). Depending on the files overwritten, exploitation of this vulnerability could lead to a sustained Denial of Service (DoS) condition, requiring manual user intervention to recover. Systems are only vulnerable if jdhcpd is running, which can be confirmed via the 'show system processes' command. For example: root@host# run show system processes extensive | match dhcp 26537 root -16 0 97568K 13692K RUN 0 0:01 3.71% jdhcpd This issue affects: Juniper Networks Junos OS: All versions, including the following supported releases: 15.1 versions prior to 15.1R7-S10; 17.4 versions prior to 17.4R3-S5; 18.3 versions prior to 18.3R3-S5; 18.4 versions prior to 18.4R3-S9; 19.1 versions prior to 19.1R3-S6; 19.2 versions prior to 19.2R1-S7, 19.2R3-S3; 19.3 versions prior to 19.3R2-S6, 19.3R3-S3; 19.4 versions prior to 19.4R3-S6; 20.1 versions prior to 20.1R2-S2, 20.1R3-S1; 20.2 versions prior to 20.2R3-S2; 20.3 versions prior to 20.3R3; 20.4 versions prior to 20.4R2-S1, 20.4R3; 21.1 versions prior to 21.1R1-S1, 21.1R2. Juniper Networks Junos OS Evolved: All versions prior to 20.4R2-S3-EVO; All versions of 21.1-EVO.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

15.1 ≤ v < 15.1R7-S1017.4 ≤ v < 17.4R3-S518.3 ≤ v < 18.3R3-S518.4 ≤ v < 18.4R3-S919.1 ≤ v < 19.1R3-S619.2 ≤ v < 19.2R1-S7, 19.2R3-S319.3 ≤ v < 19.3R2-S6, 19.3R3-S319.4 ≤ v < 19.4R3-S620.1 ≤ v < 20.1R2-S2, 20.1R3-S120.2 ≤ v < 20.2R3-S220.3 ≤ v < 20.3R320.4 ≤ v < 20.4R2-S1, 20.4R321.1 ≤ v < 21.1R1-S1, 21.1R215.115.1 a115.1 f15.1 f115.1 f215.1 f2-s115.1 f2-s215.1 f2-s315.1 f2-s415.1 f315.1 f415.1 f515.1 f5-s715.1 f615.1 f6-s115.1 f6-s1015.1 f6-s1215.1 f6-s215.1 f6-s315.1 f6-s415.1 f6-s515.1 f6-s615.1 f6-s715.1 f6-s815.1 f6-s915.1 f715.1 r15.1 r115.1 r215.1 r315.1 r415.1 r4-s715.1 r4-s815.1 r4-s915.1 r515.1 r5-s115.1 r5-s315.1 r5-s515.1 r5-s615.1 r615.1 r6-s115.1 r6-s215.1 r6-s315.1 r6-s415.1 r6-s615.1 r715.1 r7-s115.1 r7-s215.1 r7-s315.1 r7-s415.1 r7-s515.1 r7-s615.1 r7-s715.1 r7-s815.1 r7-s917.417.4 r117.4 r1-s117.4 r1-s217.4 r1-s317.4 r1-s417.4 r1-s517.4 r1-s617.4 r1-s717.4 r217.4 r2-s117.4 r2-s1017.4 r2-s1117.4 r2-s1217.4 r2-s217.4 r2-s317.4 r2-s417.4 r2-s517.4 r2-s617.4 r2-s717.4 r2-s817.4 r2-s917.4 r317.4 r3-s117.4 r3-s217.4 r3-s317.4 r3-s418.318.3 r118.3 r1-s118.3 r1-s218.3 r1-s318.3 r1-s418.3 r1-s518.3 r1-s618.3 r218.3 r2-s118.3 r2-s218.3 r2-s318.3 r2-s418.3 r318.3 r3-s118.3 r3-s218.3 r3-s318.3 r3-s418.418.4 r118.4 r1-s118.4 r1-s218.4 r1-s318.4 r1-s418.4 r1-s518.4 r1-s618.4 r1-s718.4 r218.4 r2-s118.4 r2-s218.4 r2-s318.4 r2-s418.4 r2-s518.4 r2-s618.4 r2-s718.4 r2-s818.4 r318.4 r3-s118.4 r3-s218.4 r3-s318.4 r3-s418.4 r3-s518.4 r3-s618.4 r3-s718.4 r3-s819.119.1 r119.1 r1-s119.1 r1-s219.1 r1-s319.1 r1-s419.1 r1-s519.1 r1-s619.1 r219.1 r2-s119.1 r2-s219.1 r319.1 r3-s119.1 r3-s219.1 r3-s319.1 r3-s419.1 r3-s519.219.2 r119.2 r1-s119.2 r1-s219.2 r1-s319.2 r1-s419.2 r1-s519.2 r1-s619.2 r219.2 r2-s119.2 r319.2 r3-s119.2 r3-s219.319.3 r119.3 r1-s119.3 r219.3 r2-s119.3 r2-s219.3 r2-s319.3 r2-s419.3 r2-s519.3 r319.3 r3-s119.3 r3-s219.419.4 r119.4 r1-s119.4 r1-s219.4 r1-s319.4 r219.4 r2-s119.4 r2-s219.4 r2-s319.4 r2-s419.4 r319.4 r3-s119.4 r3-s219.4 r3-s319.4 r3-s419.4 r3-s520.120.1 r120.1 r1-s120.1 r1-s220.1 r1-s320.1 r1-s420.1 r220.1 r2-s120.1 r320.220.2 r120.2 r1-s120.2 r1-s220.2 r1-s320.2 r220.2 r2-s120.2 r2-s220.2 r2-s320.2 r320.2 r3-s120.320.3 r120.3 r1-s120.3 r220.3 r2-s120.420.4 r120.4 r1-s120.4 r221.121.1 r1
Affected range stops below 15.1R7-S10, so it looks safe — our inference, not a vendor statement
Affected range stops below 17.4R3-S5, so it looks safe — our inference, not a vendor statement
Affected range stops below 18.3R3-S5, so it looks safe — our inference, not a vendor statement
Affected range stops below 18.4R3-S9, so it looks safe — our inference, not a vendor statement
Affected range stops below 19.1R3-S6, so it looks safe — our inference, not a vendor statement
Affected range stops below 19.2R1-S7, 19.2R3-S3, so it looks safe — our inference, not a vendor statement
Affected range stops below 19.3R2-S6, 19.3R3-S3, so it looks safe — our inference, not a vendor statement
Affected range stops below 19.4R3-S6, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.1R2-S2, 20.1R3-S1, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.2R3-S2, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.3R3, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.4R2-S1, 20.4R3, so it looks safe — our inference, not a vendor statement
Affected range stops below 21.1R1-S1, 21.1R2, so it looks safe — our inference, not a vendor statement
v < 20.4R2-S3-EVO21.1R1-EVO ≤ v < 21.1*21.1R1-EVO
Affected range stops below 20.4R2-S3-EVO, so it looks safe — our inference, not a vendor statement
Affected range stops below 21.1*, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

References (1)

x_refsource_CONFIRMVendor Advisory
https://kb.juniper.net/JSA11222

CVSS

7.1HIGHjuniper
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-20CWE-269

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card