CVE-2022-22239

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

AllVuln state: AFFECTED

HIGH
CVSS
8.2
3.1
EPSS
0.19%
Percentile 9.45%
CISA KEV
Not listed
Published
October 18, 2022
Updated May 10, 2025

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.

Risk details

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
attack vector
L
attack complexity
L
privileges required
L
user interaction
R
scope
C
CWE
CWE-250

What should I do?

Review the vendor remediation for fixed or recommended release 20.4R3-S5-EVO.

Supported product evidence

Juniper Networks · Junos OS Evolved
Confirmed affected by authoritative structured evidence · Juniper Networks CNA / CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
20.4R3-S5-EVO
NOT_AFFECTED · EXACT
20.4R3-S5-EVO
AFFECTED · RANGE
21.1R3-EVO
NOT_AFFECTED · EXACT
21.1R3-EVO
UNKNOWN · UNKNOWN
{"lessThan": "21.2R2-S1-EVO, 21.2R3-EVO", "status": "affected", "version": "21.2-EVO", "versionType": "custom"}
AFFECTED · RANGE
21.3R2-EVO
NOT_AFFECTED · EXACT
21.3R2-EVO
UNKNOWN · DEFAULT
{"defaultStatus": null}

Remediation

FIX_AVAILABLE
Release train: 20.4
First fixed: 20.4R3-S5-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 21.1
First fixed: 21.1R3-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 21.3
First fixed: 21.3R2-EVO
Vendor recommended: Not supplied
Remediation source ↗
Juniper Networks · Junos OS Evolved
Referenced / metadata only · CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
unspecified → 20.4R3-S5-EVO
AFFECTED · RANGE
21.1-EVO → 21.1R3-EVO
AFFECTED · RANGE
21.2-EVO → 21.2R2-S1-EVO, 21.2R3-EVO
AFFECTED · RANGE
21.3-EVO → 21.3R2-EVO

Remediation

UNKNOWN
Release train: Not specified
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 21.1
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 21.2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 21.3
First fixed: Unknown
Vendor recommended: Not supplied

Evidence sources

Coverage varies by vendor, product, platform, and historical source availability. Absence of a finding is not a security guarantee. Validate critical remediation against the linked vendor advisory.

AllVuln data refreshed November 5, 2026.

CVE-2022-22239 – Junos OS Evolved Affected Versions & Fix | AllVuln