CVE-2022-22239

published 18 Oct 2022 · updated 10 May 2025

Junos OS Evolved: The ssh CLI command always runs as root which can lead to privilege escalation

8.2HighCVSS 8.2EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 20.4R3-S5-EVO, 21.1R3-EVO, 21.2R2-S1-EVO, 21.2R3-EVO and 1 more.

An Execution with Unnecessary Privileges vulnerability in Management Daemon (mgd) of Juniper Networks Junos OS Evolved allows a locally authenticated attacker with low privileges to escalate their privileges on the device and potentially remote systems. This vulnerability allows a locally authenticated attacker with access to the ssh operational command to escalate their privileges on the system to root, or if there is user interaction on the local device to potentially escalate privileges on a remote system to root. This issue affects Juniper Networks Junos OS Evolved: All versions prior to 20.4R3-S5-EVO; 21.1-EVO versions prior to 21.1R3-EVO; 21.2-EVO versions prior to 21.2R2-S1-EVO, 21.2R3-EVO; 21.3-EVO versions prior to 21.3R2-EVO. This issue does not affect Juniper Networks Junos OS.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Juniper Networks<20.4R3-S5-EVO, >=21.1-EVO <21.1R3-EVO, >=21.2-EVO <21.2R2-S1-EVO, 21.2R3-EVO, >=21.3-EVO <21.3R2-EVO20.4R3-S5-EVO, 21.1R3-EVO, 21.2R2-S1-EVO, 21.2R3-EVO, 21.3R2-EVO

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-22239 severity on Zeptric[![CVE-2022-22239](https://zeptric.io/badge/cve/CVE-2022-22239.svg)](https://zeptric.io/cve/CVE-2022-22239)