An Improper Initialization vulnerability in Juniper Networks Junos OS Evolved may cause a commit operation for disabling the telnet service to not take effect as expected, resulting in the telnet service staying enabled.
When it is not intended to be operating on the device, an administrator can issue the following command to verify whether telnet is operating in the background:
user@device > show system connections | grep :23
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 20879/xinetd
This issue affects Juniper Networks Junos OS Evolved:
Juniper SIRT is not aware of any malicious exploitation of this vulnerability.
This issue was seen during production usage.
This issue has been assigned CVE-2022-22164 .
The following software releases have been updated to resolve this specific issue: Junos OS Evolved: 20.4R2-S2-EVO, 20.4R3-EVO, 21.2R2-EVO, 21.4R3-S3-EVO, 22.2R3-EVO, 22.3R2-EVO, 22.4R2-EVO, 23.2R1-EVO, and all subsequent releases.
This issue is being tracked as 1596411.and 1690827
Software releases or updates are available for download at https://support.juniper.net/support/downloads/
To work around the issue, the xinetd service can be restarted manually using one of the commands below:
user@device% systemctl restart xinetd
or
user@device% systemctl restart services-xinetd
Additionally, loopback/firewall filters can be applied to disable remote access to the telnet service.
2022-01-12: Initial Publication2024-01-10: updated the JSA with information on an additional PR which fixed some releases which were not completely fixed originally