High severity · published Oct 18, 2022
CVE-2022-22239
Junos OS Evolved: The ssh CLI command always runs as root which can lead to privilege escalation
8.8
CVSS
0.2%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 9% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
JO
Junos OS Evolved · Juniper Networks
before 20.4R3-S5-EVO; 21.1-EVO before 21.1R3-EVO; 21.2-EVO before 21.2R2-S1-EVO, 21.2R3-EVO; 21.3-EVO before 21.3R2-EVO · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-22239
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-22239
Vendor Advisory
https://kb.juniper.net/JSA69895
More from Junos OS Evolved
9.8
CVE-2026-101954
Junos OS and Junos OS Evolved: Unauthenticated network access causes full device takeover when J-Web is enabled
9.8
CVE-2026-101983
Junos OS and Junos OS Evolved: An attacker causes remote code execution when J-Web virtual-domain is configured
9.8
CVE-2026-101982
Junos OS and Junos OS Evolved: A EVPN peer causes an rpd crash or root-level compromise when EVPN-VPWS is used
9.8
CVE-2026-33796
Junos OS and Junos OS Evolved: An attacker causes remote root command execution when BMP route monitoring is enabled
9.8
CVE-2026-33789
Junos OS and Junos OS Evolved: With BGP Monitoring Protocol is enabled, receipt of a specifically crafted BGP route update results in denial of service
