CVE-2018-0052

Junos OS: Unauthenticated remote root access possible when RSH service is enabled

HIGH
7.2
CVSS Score
Published: October 10, 2018 at 06:00 PM UTC
Updated: June 17, 2026 at 01:29 AM UTC
8 products affected across 2 vendorsJunosQfx5200Qfx5110

Using Junos OS by Juniper Networks?

Get instant alerts when new vulnerabilities affect Junos OS - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.2
Exploit prediction
EPSS 5%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

12.1X46 ≤ v < 12.1X46-D7712.3 ≤ v < 12.3R12-S1012.3X48 ≤ v < 12.3X48-D7514.1X53 ≤ v < 14.1X53-D4715.1 ≤ v < 15.1R4-S9, 15.1R6-S6, 15.1R715.1X49 ≤ v < 15.1X49-D131, 15.1X49-D14015.1X53 ≤ v < 15.1X53-D23315.1X53 ≤ v < 15.1X53-D471, 15.1X53-D49015.1X53 ≤ v < 15.1X53-D5915.1X53 ≤ v < 15.1X53-D6716.1 ≤ v < 16.1R3-S9, 16.1R4-S9, 16.1R5-S4, 16.1R6-S4, 16.1R716.2 ≤ v < 16.2R2-S517.1 ≤ v < 17.1R1-S7, 17.1R2-S7, 17.1R317.2 ≤ v < 17.2R1-S6, 17.2R2-S4, 17.2R317.2X75 ≤ v < 17.2X75-D110, 17.2X75-D9117.3 ≤ v < 17.3R1-S4, 17.3R2-S2, 17.3R317.4 ≤ v < 17.4R1-S3, 17.4R218.2X75 ≤ v < 18.2X75-D512.1X4612.1x4612.1x46 d1012.1x46 d1512.1x46 d2012.1x46 d2512.1x46 d3012.1x46 d3512.1x46 d4012.1x46 d4512.1x46 d5012.1x46 d5512.1x46 d6012.1x46 d6512.312.3 r112.3 r1112.3 r212.3 r312.3 r412.3 r512.3 r612.3 r712.3 r812.3 r912.3X4812.3x4812.3x48 d1012.3x48 d1512.3x48 d2012.3x48 d2512.3x48 d3012.3x48 d3512.3x48 d4012.3x48 d4512.3x48 d5012.3x48 d5512.3x48 d6012.3x48 d6512.3x48 d7014.1X5314.1x5314.1x53 d1014.1x53 d12114.1x53 d1514.1x53 d1614.1x53 d2514.1x53 d2614.1x53 d2714.1x53 d3014.1x53 d3514.1x53 d4014.1x53 d4214.1x53 d4314.1x53 d4414.1x53 d4514.1x53 d4615.115.1 r115.1 r215.1 r315.1 r6-s615.1 r715.1X4915.1X5315.1x4915.1x49 d1015.1x49 d10015.1x49 d11015.1x49 d12015.1x49 d14015.1x49 d2015.1x49 d3015.1x49 d3515.1x49 d4015.1x49 d4515.1x49 d5015.1x49 d5515.1x49 d6015.1x49 d6515.1x49 d7015.1x49 d7515.1x49 d8015.1x49 d9015.1x5315.1x53 d1015.1x53 d2015.1x53 d2115.1x53 d21015.1x53 d23015.1x53 d23115.1x53 d23215.1x53 d3015.1x53 d3215.1x53 d3315.1x53 d3415.1x53 d4015.1x53 d4515.1x53 d49015.1x53 d5015.1x53 d5115.1x53 d5215.1x53 d5515.1x53 d5715.1x53 d5815.1x53 d6015.1x53 d6115.1x53 d6215.1x53 d6315.1x53 d6415.1x53 d6515.1x53 d6616.116.1 r116.1 r216.1 r316.1 r4-s916.1 r5-s416.1 r6-s416.1 r716.216.2 r117.117.1 r2-s717.1 r317.217.2 r117.2 r217.2X7517.2x7517.2x75 d9117.317.3 r2-s217.3 r317.417.4 r218.2X7518.2x75
Affected range stops below 12.1X46-D77, so it looks safe — our inference, not a vendor statement
Affected range stops below 12.3R12-S10, so it looks safe — our inference, not a vendor statement
Affected range stops below 12.3X48-D75, so it looks safe — our inference, not a vendor statement
Affected range stops below 14.1X53-D47, so it looks safe — our inference, not a vendor statement
Affected range stops below 15.1R4-S9, 15.1R6-S6, 15.1R7, so it looks safe — our inference, not a vendor statement
Affected range stops below 15.1X49-D131, 15.1X49-D140, so it looks safe — our inference, not a vendor statement
Affected range stops below 15.1X53-D233, so it looks safe — our inference, not a vendor statement
Affected range stops below 15.1X53-D471, 15.1X53-D490, so it looks safe — our inference, not a vendor statement
Affected range stops below 15.1X53-D59, so it looks safe — our inference, not a vendor statement
Affected range stops below 15.1X53-D67, so it looks safe — our inference, not a vendor statement
Affected range stops below 16.1R3-S9, 16.1R4-S9, 16.1R5-S4, 16.1R6-S4, 16.1R7, so it looks safe — our inference, not a vendor statement
Affected range stops below 16.2R2-S5, so it looks safe — our inference, not a vendor statement
Affected range stops below 17.1R1-S7, 17.1R2-S7, 17.1R3, so it looks safe — our inference, not a vendor statement
Affected range stops below 17.2R1-S6, 17.2R2-S4, 17.2R3, so it looks safe — our inference, not a vendor statement
Affected range stops below 17.2X75-D110, 17.2X75-D91, so it looks safe — our inference, not a vendor statement
Affected range stops below 17.3R1-S4, 17.3R2-S2, 17.3R3, so it looks safe — our inference, not a vendor statement
Affected range stops below 17.4R1-S3, 17.4R2, so it looks safe — our inference, not a vendor statement
Affected range stops below 18.2X75-D5, so it looks safe — our inference, not a vendor statement
juniper-ex2300 (environment) · juniper-ex3400 (environment) · juniper-nfx150 (environment) · juniper-nfx250 (environment) · juniper-qfx10000 (environment) · juniper-qfx5110 (environment) · juniper-qfx5200 (environment)
All versions
All versions
All versions
All versions
All versions
All versions
All versions

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

References (2)

VDB Entryx_refsource_SECTRACKThird Party Advisory
http://www.securitytracker.com/id/1041853
x_refsource_CONFIRMVendor Advisory
https://kb.juniper.net/JSA10886

CVSS

7.2HIGHjuniper
Attack Vector
NETWORK
Complexity
LOW
Privileges
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-287

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card