Back to CVE catalog
CVE-2018-0052

RSH service root access in Junos OS

Juniper Networks Junos OS

At a glance

If RSH service is enabled on Junos OS and if the PAM authentication is disabled, a remote unauthenticated attacker can obtain root access to the device. RSH service is disabled by default on Junos. There is no documented CLI command to enable this service. However, an undocumented CLI command allows a privileged Junos user to enable RSH service and disable PAM, and hence expose the system to unauthenticated root access. When RSH is enabled, the device is listing to RSH connections on port 514. This issue is not exploitable on platforms where Junos release is based on FreeBSD 10+. Affected releases are Juniper Networks Junos OS: 12.1X46 versions prior to 12.1X46-D77 on SRX Series; 12.3 versions prior to 12.3R12-S10; 12.3X48 versions prior to 12.3X48-D75 on SRX Series; 14.1X53 versions prior to 14.1X53-D47 on QFX/EX Series; 15.1 versions prior to 15.1R4-S9, 15.1R6-S6, 15.1R7; 15.1X49 versions prior to 15.1X49-D131, 15.1X49-D140 on SRX Series; 15.1X53 versions prior to 15.1X53-D59 on EX2300/EX3400 Series; 15.1X53 versions prior to 15.1X53-D67 on QFX10K Series; 15.1X53 versions prior to 15.1X53-D233 on QFX5200/QFX5110 Series; 15.1X53 versions prior to 15.1X53-D471, 15.1X53-D490 on NFX Series; 16.1 versions prior to 16.1R3-S9, 16.1R4-S9, 16.1R5-S4, 16.1R6-S4, 16.1R7; 16.2 versions prior to 16.2R2-S5; 17.1 versions prior to 17.1R1-S7, 17.1R2-S7, 17.1R3; 17.2 versions prior to…

Full source description

If RSH service is enabled on Junos OS and if the PAM authentication is disabled, a remote unauthenticated attacker can obtain root access to the device. RSH service is disabled by default on Junos. There is no documented CLI command to enable this service. However, an undocumented CLI command allows a privileged Junos user to enable RSH service and disable PAM, and hence expose the system to unauthenticated root access. When RSH is enabled, the device is listing to RSH connections on port 514. This issue is not exploitable on platforms where Junos release is based on FreeBSD 10+. Affected releases are Juniper Networks Junos OS: 12.1X46 versions prior to 12.1X46-D77 on SRX Series; 12.3 versions prior to 12.3R12-S10; 12.3X48 versions prior to 12.3X48-D75 on SRX Series; 14.1X53 versions prior to 14.1X53-D47 on QFX/EX Series; 15.1 versions prior to 15.1R4-S9, 15.1R6-S6, 15.1R7; 15.1X49 versions prior to 15.1X49-D131, 15.1X49-D140 on SRX Series; 15.1X53 versions prior to 15.1X53-D59 on EX2300/EX3400 Series; 15.1X53 versions prior to 15.1X53-D67 on QFX10K Series; 15.1X53 versions prior to 15.1X53-D233 on QFX5200/QFX5110 Series; 15.1X53 versions prior to 15.1X53-D471, 15.1X53-D490 on NFX Series; 16.1 versions prior to 16.1R3-S9, 16.1R4-S9, 16.1R5-S4, 16.1R6-S4, 16.1R7; 16.2 versions prior to 16.2R2-S5; 17.1 versions prior to 17.1R1-S7, 17.1R2-S7, 17.1R3; 17.2 versions prior to 17.2R1-S6, 17.2R2-S4, 17.2R3; 17.2X75 versions prior to 17.2X75-D110, 17.2X75-D91; 17.3 versions prior to 17.3R1-S4, 17.3R2-S2, 17.3R3; 17.4 versions prior to 17.4R1-S3, 17.4R2; 18.2X75 versions prior to 18.2X75-D5.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.0

7.2High
Published:
Updated:
EPSS:
4.85%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:Juniper NetworksJunos OS
Environments (1)
  • SRX Series
Affected versions:
≥ 12.1X46, < 12.1X46-D77Show full version range for Junos OS
≥ 12.3X48, < 12.3X48-D75≥ 15.1X49, < 15.1X49-D131, 15.1X49-D140
Vendor:Juniper NetworksJunos OSAffected versions:
≥ 12.3, < 12.3R12-S10Show full version range for Junos OS
≥ 15.1, < 15.1R4-S9, 15.1R6-S6, 15.1R7≥ 16.1, < 16.1R3-S9, 16.1R4-S9, 16.1R5-S4, 16.1R6-S4, 16.1R7≥ 16.2, < 16.2R2-S5≥ 17.1, < 17.1R1-S7, 17.1R2-S7, 17.1R3≥ 17.2, < 17.2R1-S6, 17.2R2-S4, 17.2R3≥ 17.2X75, < 17.2X75-D110, 17.2X75-D91≥ 17.3, < 17.3R1-S4, 17.3R2-S2, 17.3R3≥ 17.4, < 17.4R1-S3, 17.4R2≥ 18.2X75, < 18.2X75-D5
Vendor:Juniper NetworksJunos OS
Environments (1)
  • QFX/EX Series
Affected versions:
≥ 14.1X53, < 14.1X53-D47
Vendor:Juniper NetworksJunos OS
Environments (1)
  • EX2300/EX3400 Series
Affected versions:
≥ 15.1X53, < 15.1X53-D59
Vendor:Juniper NetworksJunos OS
Environments (1)
  • QFX10K Series
Affected versions:
≥ 15.1X53, < 15.1X53-D67
Vendor:Juniper NetworksJunos OS
Environments (1)
  • QFX5200/QFX5110 Series
Affected versions:
≥ 15.1X53, < 15.1X53-D233
Vendor:Juniper NetworksJunos OS
Environments (1)
  • NFX Series
Affected versions:
≥ 15.1X53, < 15.1X53-D471, 15.1X53-D490
Vendor:juniperjunosAffected versions:
17.2x75Show full version range for junos
17.118.2x7515.1x5314.1x5317.312.3x4812.317.415.1x4916.115.112.1x4616.217.2
  • CPE applicability can depend on other products or environments. Consult the full source configuration.

1–8 of 8 · Page 1 of 1

CVSS scores and metrics4
juniper · CVE List / CNA (cna)Primary7.2 / 10HighCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
High
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
[email protected] · NVD (Secondary)7.2 / 10HighCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
High
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
[email protected] · NVD (Primary)8.1 / 10HighCVSS 3.0Details
Attack complexity
High
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
[email protected] · NVD (Primary)9.3 / 10HighCVSS 2.0Details
Attack complexity
Medium
Confidentiality
Complete
Integrity
Complete
Availability
Complete
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:M/Au:N/C:C/I:C/A:C

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories5

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences