# CVE-2021-31372: Junos OS: J-Web allows a locally authenticated attacker to escalate their privileges to root.

- Severity: High 8.8 (CVSS:3.1, scored by juniper) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.23%, higher than 69% of CVEs (2026-12-02)
- Published: 2021-10-19T18:17:06.961Z
- Modified: 2026-06-17T03:51:39.747Z
- Weaknesses: CWE-20
- Assigned by: juniper

## Description

An Improper Input Validation vulnerability in J-Web of Juniper Networks Junos OS allows a locally authenticated J-Web attacker to escalate their privileges to root over the target device. This issue affects: Juniper Networks Junos OS All 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.2R3-S3; 19.3 versions prior to 19.3R3-S3; 19.4 versions prior to 19.4R3-S5; 20.1 versions prior to 20.1R3-S1; 20.2 versions prior to 20.2R3-S2; 20.3 versions prior to 20.3R3-S1; 20.4 versions prior to 20.4R3; 21.1 versions prior to 21.1R2, 21.1R3; 21.2 versions prior to 21.2R1-S1, 21.2R2;

(As written by CVE List.)

## Affected

- Juniper Networks Junos OS: from unspecified before 18.3R3-S5; from 18.4 before 18.4R3-S9; from 19.1 before 19.1R3-S6; from 19.2 before 19.2R3-S3; from 19.3 before 19.3R3-S3; from 19.4 before 19.4R3-S5; from 20.1 before 20.1R3-S1; from 20.2 before 20.2R3-S2; from 20.3 before 20.3R3-S1; from 20.4 before 20.4R3; from 21.1 before 21.1R2, 21.1R3; from 21.2 before 21.2R1-S1, 21.2R2
- juniper junos: up to 18.2; 18.3; 18.4; 19.1

## Every score

- juniper: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 9.0 High `AV:N/AC:L/Au:S/C:C/I:C/A:C`

## References

- <https://kb.juniper.net/JSA11237> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-31372](https://www.cve.org/CVERecord?id=CVE-2021-31372), CVE Terms of Use, modified 2024-09-16
- NVD: [CVE-2021-31372](https://nvd.nist.gov/vuln/detail/CVE-2021-31372), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31372 · Whole record: https://cve.day/CVE-2021-31372.json · Rebuilt by cve.day 2026-11-25T22:58:04.587Z
