An Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in J-Web of Juniper Networks Junos OS allows any low-privileged authenticated attacker to elevate their privileges to root.
This issue affects:
Juniper Networks Junos OS
The following minimal configuration is necessary:
[system services web-management http]
or
[system services web-management https]
Juniper SIRT is not aware of any malicious exploitation of this vulnerability.
This issue was discovered during external security research.
This issue has been assigned CVE-2021-31385 .
The following software releases have been updated to resolve this specific issue: 12.3R12-S19, 15.1R7-S10, 18.3R3-S5, 18.4R3-S9, 19.1R3-S6, 19.2R1-S7, 19.2R3-S3, 19.3R3-S3, 19.4R3-S5, 20.1R2-S2, 20.1R3-S1, 20.2R3-S2, 20.3R3, 20.4R2-S1, 20.4R3, 21.1R1-S1, 21.1R2, 21.2R1, and all subsequent releases.
This issue is being tracked as 1591145 .
Software releases or updates are available for download at https://support.juniper.net/support/downloads/
There are no viable workarounds for these issues other than disabling J-Web.
To reduce the risk of exploitation of these issues, use access lists or firewall filters to limit access to only trusted administrative networks, hosts and users.
2021-10-13: Initial Publication.
Andy Coles of Microsoft MSRC Vulnerabilities and Mitigations Team