CVE-2018-0052: Junos OS: Unauthenticated remote root access possible when RSH service is enabled

Published Oct 10, 2018
·
Updated

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.

Affected Software

138 affected components
Juniper Junos=12.1x46
Juniper Junos=12.1x46-d10
Juniper Junos=12.1x46-d15
Juniper Junos=12.1x46-d20
Juniper Junos=12.1x46-d25
Juniper Junos=12.1x46-d30
Juniper Junos=12.1x46-d35
Juniper Junos=12.1x46-d40
Juniper Junos=12.1x46-d45
Juniper Junos=12.1x46-d50
Juniper Junos=12.1x46-d55
Juniper Junos=12.1x46-d60
Juniper Junos=12.1x46-d65
Juniper Junos=12.3
Juniper Junos=12.3-r1
Juniper Junos=12.3-r11
Juniper Junos=12.3-r2
Juniper Junos=12.3-r3
Juniper Junos=12.3-r4
Juniper Junos=12.3-r5
Juniper Junos=12.3-r6
Juniper Junos=12.3-r7
Juniper Junos=12.3-r8
Juniper Junos=12.3-r9
Juniper Junos=12.3x48
Juniper Junos=12.3x48-d10
Juniper Junos=12.3x48-d15
Juniper Junos=12.3x48-d20
Juniper Junos=12.3x48-d25
Juniper Junos=12.3x48-d30
Juniper Junos=12.3x48-d35
Juniper Junos=12.3x48-d40
Juniper Junos=12.3x48-d45
Juniper Junos=12.3x48-d50
Juniper Junos=12.3x48-d55
Juniper Junos=12.3x48-d60
Juniper Junos=12.3x48-d65
Juniper Junos=12.3x48-d70
Juniper Junos=14.1x53
Juniper Junos=14.1x53-d10
Juniper Junos=14.1x53-d121
Juniper Junos=14.1x53-d15
Juniper Junos=14.1x53-d16
Juniper Junos=14.1x53-d25
Juniper Junos=14.1x53-d26
Juniper Junos=14.1x53-d27
Juniper Junos=14.1x53-d30
Juniper Junos=14.1x53-d35
Juniper Junos=14.1x53-d40
Juniper Junos=14.1x53-d42
Juniper Junos=14.1x53-d43
Juniper Junos=14.1x53-d44
Juniper Junos=14.1x53-d45
Juniper Junos=14.1x53-d46
Juniper Junos=15.1
Juniper Junos=15.1-r1
Juniper Junos=15.1-r2
Juniper Junos=15.1-r3
Juniper Junos=15.1-r6-s6
Juniper Junos=15.1-r7
Juniper Junos=15.1x49
Juniper Junos=15.1x49-d10
Juniper Junos=15.1x49-d100
Juniper Junos=15.1x49-d110
Juniper Junos=15.1x49-d120
Juniper Junos=15.1x49-d140
Juniper Junos=15.1x49-d20
Juniper Junos=15.1x49-d30
Juniper Junos=15.1x49-d35
Juniper Junos=15.1x49-d40
Juniper Junos=15.1x49-d45
Juniper Junos=15.1x49-d50
Juniper Junos=15.1x49-d55
Juniper Junos=15.1x49-d60
Juniper Junos=15.1x49-d65
Juniper Junos=15.1x49-d70
Juniper Junos=15.1x49-d75
Juniper Junos=15.1x49-d80
Juniper Junos=15.1x49-d90
Juniper Junos=15.1x53
Juniper Junos=15.1x53-d50
Juniper Junos=15.1x53-d51
Juniper Junos=15.1x53-d52
Juniper Junos=15.1x53-d55
Juniper Junos=15.1x53-d57
Juniper Junos=15.1x53-d58
Juniper EX2300
Juniper EX3400
Juniper Junos=15.1x53-d10
Juniper Junos=15.1x53-d20
Juniper Junos=15.1x53-d21
Juniper Junos=15.1x53-d30
Juniper Junos=15.1x53-d32
Juniper Junos=15.1x53-d33
Juniper Junos=15.1x53-d34
Juniper Junos=15.1x53-d60
Juniper Junos=15.1x53-d61
Juniper Junos=15.1x53-d62
Juniper Junos=15.1x53-d63
Juniper Junos=15.1x53-d64
Juniper Junos=15.1x53-d65
Juniper Junos=15.1x53-d66
Juniper QFX10000
Juniper Junos=15.1x53-d210
Juniper Junos=15.1x53-d230
Juniper Junos=15.1x53-d231
Juniper Junos=15.1x53-d232
Juniper QFX5110
Juniper QFX5200
Juniper Junos=15.1x53-d40
Juniper Junos=15.1x53-d45
Juniper Junos=15.1x53-d490
Juniper NFX150
Juniper NFX250
Juniper Junos=16.1
Juniper Junos=16.1-r1
Juniper Junos=16.1-r2
Juniper Junos=16.1-r3
Juniper Junos=16.1-r4-s9
Juniper Junos=16.1-r5-s4
Juniper Junos=16.1-r6-s4
Juniper Junos=16.1-r7
Juniper Junos=16.2
Juniper Junos=16.2-r1
Juniper Junos=17.1
Juniper Junos=17.1-r2-s7
Juniper Junos=17.1-r3
Juniper Junos=17.2
Juniper Junos=17.2-r1
Juniper Junos=17.2-r2
Juniper Junos=17.2x75
Juniper Junos=17.2x75-d91
Juniper Junos=17.3
Juniper Junos=17.3-r2-s2
Juniper Junos=17.3-r3
Juniper Junos=17.4
Juniper Junos=17.4-r2
Juniper Junos=18.2x75

Remediation

Information

This CLI option has been removed from the fixed Junos releases. The following software releases have been updated to resolve this specific issue: 12.1X46-D77, 12.3R12-S10, 12.3X48-D75, 14.1X53-D47, 15.1R4-S9, 15.1R6-S6, 15.1R7, 15.1X49-D131, 15.1X49-D140, 15.1X53-D233, 15.1X53-D471, 15.1X53-D490, 15.1X53-D59, 15.1X53-D67, 16.1R3-S9, 16.1R4-S9, 16.1R5-S4, 16.1R6-S4, 16.1R7, 16.2R2-S5, 17.1R1-S7, 17.1R2-S7, 17.1R3, 17.2R1-S6, 17.2R2-S4, 17.2R3, 17.2X75-D110, 17.2X75-D91, 17.3R1-S4, 17.3R2-S2, 17.3R3, 17.4R1-S3, 17.4R2, 18.1R1, 18.2R1, 18.2X75-D5, and all subsequent releases.

Event History

Oct 10, 2018
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
RemedyDescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2018-0052?

CVE-2018-0052 has a high severity rating due to the potential for root access by unauthenticated remote attackers.

2

How do I fix CVE-2018-0052?

To mitigate CVE-2018-0052, disable the RSH service if it is enabled and ensure PAM authentication is configured properly.

3

Which versions of Junos OS are affected by CVE-2018-0052?

CVE-2018-0052 affects several versions of Junos OS, including 12.1x46 and multiple releases of 12.3, 14.1x53, and later versions up to 17.4.

4

Is the RSH service enabled by default on Junos OS, according to CVE-2018-0052?

No, the RSH service is disabled by default on Junos OS, but it can be enabled through undocumented methods.

5

Who can exploit CVE-2018-0052?

CVE-2018-0052 can be exploited by remote unauthenticated attackers who can access the device remotely.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203