CVE-2018-0052

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

AllVuln state: AFFECTED

HIGH
CVSS
7.2
3.0
EPSS
4.85%
Percentile 92.28%
CISA KEV
Not listed
Published
October 10, 2018
Updated September 16, 2024

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.

Risk details

CVSS vector
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
attack vector
N
attack complexity
L
privileges required
H
user interaction
N
scope
U
CWE
Unauthenticated remote root access

What should I do?

Review the vendor remediation for fixed or recommended release 12.1X46-D77.

Supported product evidence

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

Applicability

AFFECTED · RANGE
12.1X46 → 12.1X46-D77
NOT_AFFECTED · EXACT
12.1X46-D77
AFFECTED · RANGE
12.3X48 → 12.3X48-D75
NOT_AFFECTED · EXACT
12.3X48-D75
UNKNOWN · UNKNOWN
{"lessThan": "15.1X49-D131, 15.1X49-D140", "status": "affected", "version": "15.1X49", "versionType": "custom"}
UNKNOWN · DEFAULT
{"defaultStatus": null}
AFFECTED · RANGE
12.3R12-S10
NOT_AFFECTED · EXACT
12.3R12-S10
UNKNOWN · UNKNOWN
{"lessThan": "15.1R4-S9, 15.1R6-S6, 15.1R7", "status": "affected", "version": "15.1", "versionType": "custom"}
UNKNOWN · UNKNOWN
{"lessThan": "16.1R3-S9, 16.1R4-S9, 16.1R5-S4, 16.1R6-S4, 16.1R7", "status": "affected", "version": "16.1", "versionType": "custom"}
AFFECTED · RANGE
16.2R2-S5
NOT_AFFECTED · EXACT
16.2R2-S5
UNKNOWN · UNKNOWN
{"lessThan": "17.1R1-S7, 17.1R2-S7, 17.1R3", "status": "affected", "version": "17.1", "versionType": "custom"}
UNKNOWN · UNKNOWN
{"lessThan": "17.2R1-S6, 17.2R2-S4, 17.2R3", "status": "affected", "version": "17.2", "versionType": "custom"}
UNKNOWN · UNKNOWN
{"lessThan": "17.2X75-D110, 17.2X75-D91", "status": "affected", "version": "17.2X75", "versionType": "custom"}
UNKNOWN · UNKNOWN
{"lessThan": "17.3R1-S4, 17.3R2-S2, 17.3R3", "status": "affected", "version": "17.3", "versionType": "custom"}
UNKNOWN · UNKNOWN
{"lessThan": "17.4R1-S3, 17.4R2", "status": "affected", "version": "17.4", "versionType": "custom"}
AFFECTED · RANGE
18.2X75 → 18.2X75-D5
NOT_AFFECTED · EXACT
18.2X75-D5
UNKNOWN · DEFAULT
{"defaultStatus": null}
AFFECTED · RANGE
14.1X53 → 14.1X53-D47
NOT_AFFECTED · EXACT
14.1X53-D47
UNKNOWN · DEFAULT
{"defaultStatus": null}
AFFECTED · RANGE
15.1X53 → 15.1X53-D59
NOT_AFFECTED · EXACT
15.1X53-D59
UNKNOWN · DEFAULT
{"defaultStatus": null}
AFFECTED · RANGE
15.1X53 → 15.1X53-D67
NOT_AFFECTED · EXACT
15.1X53-D67
UNKNOWN · DEFAULT
{"defaultStatus": null}
AFFECTED · RANGE
15.1X53 → 15.1X53-D233
NOT_AFFECTED · EXACT
15.1X53-D233
UNKNOWN · DEFAULT
{"defaultStatus": null}
UNKNOWN · UNKNOWN
{"lessThan": "15.1X53-D471, 15.1X53-D490", "status": "affected", "version": "15.1X53", "versionType": "custom"}
UNKNOWN · DEFAULT
{"defaultStatus": null}

Remediation

FIX_AVAILABLE
Release train: 12.1
First fixed: 12.1X46-D77
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 12.3
First fixed: 12.3X48-D75
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 12.3
First fixed: 12.3R12-S10
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 16.2
First fixed: 16.2R2-S5
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 18.2
First fixed: 18.2X75-D5
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 14.1
First fixed: 14.1X53-D47
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 15.1
First fixed: 15.1X53-D59
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 15.1
First fixed: 15.1X53-D67
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 15.1
First fixed: 15.1X53-D233
Vendor recommended: Not supplied
Remediation source ↗
Juniper Networks · Junos OS
Referenced / metadata only · CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
12.1X46 → 12.1X46-D77
Platform: SRX Series
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
12.3X48 → 12.3X48-D75
Platform: SRX Series
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
15.1X49 → 15.1X49-D131, 15.1X49-D140
Platform: SRX Series
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
12.3 → 12.3R12-S10
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
15.1 → 15.1R4-S9, 15.1R6-S6, 15.1R7
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
16.1 → 16.1R3-S9, 16.1R4-S9, 16.1R5-S4, 16.1R6-S4, 16.1R7
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
16.2 → 16.2R2-S5
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
17.1 → 17.1R1-S7, 17.1R2-S7, 17.1R3
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
17.2 → 17.2R1-S6, 17.2R2-S4, 17.2R3
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
17.2X75 → 17.2X75-D110, 17.2X75-D91
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
17.3 → 17.3R1-S4, 17.3R2-S2, 17.3R3
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
17.4 → 17.4R1-S3, 17.4R2
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
18.2X75 → 18.2X75-D5
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
14.1X53 → 14.1X53-D47
Platform: QFX/EX Series
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
15.1X53 → 15.1X53-D59
Platform: EX2300/EX3400 Series
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
15.1X53 → 15.1X53-D67
Platform: QFX10K Series
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
15.1X53 → 15.1X53-D233
Platform: QFX5200/QFX5110 Series
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.
AFFECTED · RANGE
15.1X53 → 15.1X53-D471, 15.1X53-D490
Platform: NFX Series
Required configuration: This issue only affects configurations where RSH service is enabled and the PAM authentication is disabled.

Remediation

UNKNOWN
Release train: 12.1X46
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 12.3X48
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 15.1X49
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 12.3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 15.1
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 16.1
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 16.2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 17.1
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 17.2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 17.2X75
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 17.3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 17.4
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 18.2X75
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 14.1X53
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 15.1X53
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 15.1X53
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 15.1X53
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 15.1X53
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.