CVE-2018-0052

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

7.2 high EPSS 4.85%

Published 10 Oct 2018 Updated 16 Sep 2024 CNA: juniper

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.

Severity (CVSS)

7.2 high CVSS 3.0 from juniper (CNA)
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
high: the attacker needs an administrative account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 4.85%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 92.8% of all scored CVEs. Scores of 28 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Junos OS
affected from 12.1X46, before 12.1X46-D77
affected from 12.3X48, before 12.3X48-D75
affected from 15.1X49, before 15.1X49-D131, 15.1X49-D140
Junos OS
affected from 12.3, before 12.3R12-S10
affected from 15.1, before 15.1R4-S9, 15.1R6-S6, 15.1R7
affected from 16.1, before 16.1R3-S9, 16.1R4-S9, 16.1R5-S4, 16.1R6-S4, 16.1R7
affected from 16.2, before 16.2R2-S5
affected from 17.1, before 17.1R1-S7, 17.1R2-S7, 17.1R3
affected from 17.2, before 17.2R1-S6, 17.2R2-S4, 17.2R3
affected from 17.2X75, before 17.2X75-D110, 17.2X75-D91
affected from 17.3, before 17.3R1-S4, 17.3R2-S2, 17.3R3
affected from 17.4, before 17.4R1-S3, 17.4R2
affected from 18.2X75, before 18.2X75-D5
Junos OS
affected from 14.1X53, before 14.1X53-D47
Junos OS
affected from 15.1X53, before 15.1X53-D59
Junos OS
affected from 15.1X53, before 15.1X53-D67
Junos OS
affected from 15.1X53, before 15.1X53-D233
Junos OS
affected from 15.1X53, before 15.1X53-D471, 15.1X53-D490

Is my server affected?

This CVE is in Junos OS of Juniper Networks, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Advisories

Other references

  • 1041853 securitytracker.com · vdb entry

Source: the record CVE-2018-0052 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.