CVE-2021-31359: juniper networks junos os Stack-based Buffer Overflow
Vulnerability summary
CVE-2021-31359 is a high (CVSS 7.8) Stack-based Buffer Overflow vulnerability in juniper networks junos os. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14.5% of scored vulnerabilities.
Timeline
- 19-10-2021PublishedVulnerability first disclosed.
- 16-09-2024Last modifiedVulnerability information updated.
Description
A local privilege escalation vulnerability in Juniper Networks Junos OS and Junos OS Evolved allows a local, low-privileged user to cause the Juniper DHCP daemon (jdhcpd) process to crash, resulting in a Denial of Service (DoS), or execute arbitrary commands as root. Continued processing of malicious input will repeatedly crash the system and sustain the Denial of Service (DoS) condition. 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.
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.24%
Chance of exploitation in the next 30 days
Percentile
15%
Versus all other CVEs
30-day change
0.00 pp
From 0.24% on 18-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-121Stack-based Buffer OverflowA stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
- CWE-269Improper Privilege ManagementThe product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.
Affected systems
Juniper2 products
- junos15.1 | 15.1:a1 | 15.1:f | 15.1:f1 | 15.1:f2 | 15.1:f2-s1 | 15.1:f2-s2 | 15.1:f2-s3 | 15.1:f2-s4 | 15.1:f3 | 15.1:f4 | 15.1:f5 | 15.1:f5-s7 | 15.1:f6 | 15.1:f6-s1 | 15.1:f6-s10 | 15.1:f6-s12 | 15.1:f6-s2 | 15.1:f6-s3 | 15.1:f6-s4 | 15.1:f6-s5 | 15.1:f6-s6 | 15.1:f6-s7 | 15.1:f6-s8 | 15.1:f6-s9 | 15.1:f7 | 15.1:r | 15.1:r1 | 15.1:r2 | 15.1:r3 | 15.1:r4 | 15.1:r4-s7 | 15.1:r4-s8 | 15.1:r4-s9 | 15.1:r5 | 15.1:r5-s1 | 15.1:r5-s3 | 15.1:r5-s5 | 15.1:r5-s6 | 15.1:r6 | 15.1:r6-s1 | 15.1:r6-s2 | 15.1:r6-s3 | 15.1:r6-s4 | 15.1:r6-s6 | 15.1:r7 | 15.1:r7-s1 | 15.1:r7-s2 | 15.1:r7-s3 | 15.1:r7-s4 | 15.1:r7-s5 | 15.1:r7-s6 | 15.1:r7-s7 | 15.1:r7-s8 | 15.1:r7-s9 | 17.4 | 17.4:r1 | 17.4:r1-s1 | 17.4:r1-s2 | 17.4:r1-s3 | 17.4:r1-s4 | 17.4:r1-s5 | 17.4:r1-s6 | 17.4:r1-s7 | 17.4:r2 | 17.4:r2-s1 | 17.4:r2-s10 | 17.4:r2-s11 | 17.4:r2-s12 | 17.4:r2-s2 | 17.4:r2-s3 | 17.4:r2-s4 | 17.4:r2-s5 | 17.4:r2-s6 | 17.4:r2-s7 | 17.4:r2-s8 | 17.4:r2-s9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s2 | 19.4:r1 | 19.4:r1-s1 | 19.4:r1-s2 | 19.4:r1-s3 | 19.4:r2 | 19.4:r2-s1 | 19.4:r2-s2 | 19.4:r2-s3 | 19.4:r2-s4 | 19.4:r3 | 19.4:r3-s1 | 19.4:r3-s2 | 19.4:r3-s3 | 19.4:r3-s4 | 19.4:r3-s5 | 20.1:r1 | 20.1:r1-s1 | 20.1:r1-s2 | 20.1:r1-s3 | 20.1:r1-s4 | 20.1:r2 | 20.1:r2-s1 | 20.1:r3 | 20.2:r1 | 20.2:r1-s1 | 20.2:r1-s2 | 20.2:r1-s3 | 20.2:r2 | 20.2:r2-s1 | 20.2:r2-s2 | 20.2:r2-s3 | 20.2:r3 | 20.2:r3-s1 | 20.3:r1 | 20.3:r1-s1 | 20.3:r2 | 20.3:r2-s1 | 20.4:r1 | 20.4:r1-s1 | 20.4:r2 | 21.1:r1
- 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 | 21.1 | 21.1:r1 | 21.1:r1-s1 | 21.1:r2
Juniper networks2 products
- junos os≥ 15.1, < 15.1R7-S10 | ≥ 17.4, < 17.4R3-S5 | ≥ 18.3, < 18.3R3-S5 | ≥ 18.4, < 18.4R3-S9 | ≥ 19.1, < 19.1R3-S6 | ≥ 19.2, < 19.2R1-S7, 19.2R3-S3 | ≥ 19.3, < 19.3R2-S6, 19.3R3-S3 | ≥ 19.4, < 19.4R3-S6 | ≥ 20.1, < 20.1R2-S2, 20.1R3-S1 | ≥ 20.2, < 20.2R3-S2 | ≥ 20.3, < 20.3R3 | ≥ 20.4, < 20.4R2-S1, 20.4R3 | ≥ 21.1, < 21.1R1-S1, 21.1R2
- junos os evolved≥ unspecified, < 20.4R2-S3-EVO | ≥ 21.1R1-EVO, < 21.1*
2 vendors · 4 products