Vulnerability Name:

CVE-2022-22239 (CCN-238485)

Assigned:2021-12-21
Published:2022-10-12
Updated:2022-10-20
Summary: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 v3 Severity:8.8 High (CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H)
7.7 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
8.2 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H)
7.1 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:6.8 Medium (CCN CVSS v2 Vector: AV:L/AC:L/Au:S/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-269
Vulnerability Consequences:Gain Privileges
References:Source: MITRE
Type: CNA
CVE-2022-22239

Source: XF
Type: UNKNOWN
juniper-cve202222239-priv-esc(238485)

Source: CONFIRM
Type: Vendor Advisory
https://kb.juniper.net/JSA69895

Source: CCN
Type: Juniper Networks Security Bulletin JSA69895
Junos OS Evolved: The ssh CLI command always runs as root which can lead to privilege escalation (CVE-2022-22239)

Vulnerable Configuration:Configuration 1:
  • cpe:/o:juniper:junos_os_evolved:20.4:r1:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:21.1:r1:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:21.1:r2:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:21.1:r1-s1:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:21.2:r1:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:21.2:r1-s1:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:21.2:r2:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:21.1:-:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:20.4:r1-s1:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:20.4:r3-s4:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:*:*:*:*:*:*:*:* (Version < 20.4)
  • OR cpe:/o:juniper:junos_os_evolved:20.4:-:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:20.4:r1-s2:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:20.4:r2:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:20.4:r2-s1:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:20.4:r2-s2:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:20.4:r2-s3:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:20.4:r3:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:20.4:r3-s1:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:20.4:r3-s2:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:20.4:r3-s3:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:21.2:-:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:21.2:r1-s2:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:21.3:-:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:21.3:r1:*:*:*:*:*:*
  • OR cpe:/o:juniper:junos_os_evolved:21.3:r1-s1:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/o:juniper:junos_os_evolved:*:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    juniper junos os evolved 20.4 r1
    juniper junos os evolved 21.1 r1
    juniper junos os evolved 21.1 r2
    juniper junos os evolved 21.1 r1-s1
    juniper junos os evolved 21.2 r1
    juniper junos os evolved 21.2 r1-s1
    juniper junos os evolved 21.2 r2
    juniper junos os evolved 21.1 -
    juniper junos os evolved 20.4 r1-s1
    juniper junos os evolved 20.4 r3-s4
    juniper junos os evolved *
    juniper junos os evolved 20.4 -
    juniper junos os evolved 20.4 r1-s2
    juniper junos os evolved 20.4 r2
    juniper junos os evolved 20.4 r2-s1
    juniper junos os evolved 20.4 r2-s2
    juniper junos os evolved 20.4 r2-s3
    juniper junos os evolved 20.4 r3
    juniper junos os evolved 20.4 r3-s1
    juniper junos os evolved 20.4 r3-s2
    juniper junos os evolved 20.4 r3-s3
    juniper junos os evolved 21.2 -
    juniper junos os evolved 21.2 r1-s2
    juniper junos os evolved 21.3 -
    juniper junos os evolved 21.3 r1
    juniper junos os evolved 21.3 r1-s1
    juniper junos os evolved *