Skip to content
OpenAdvisories
High · 7.8 Public exploit CVE-2019-0053 EUVD-2019-0860GHSA-4vvc-hp8x-p32m

Junos OS: Insufficient validation of environment variables in telnet client may lead to stack-based buffer overflow

Published Jul 11, 2019 · Updated Sep 16, 2024 · Assigned by juniper

Description

Insufficient validation of environment variables in the telnet client supplied in Junos OS can lead to stack-based buffer overflows, which can be exploited to bypass veriexec restrictions on Junos OS. A stack-based overflow is present in the handling of environment variables when connecting via the telnet client to remote telnet servers. This issue only affects the telnet client — accessible from the CLI or shell — in Junos OS. Inbound telnet services are not affected by this issue. This issue affects: Juniper Networks Junos OS: 12.3 versions prior to 12.3R12-S13; 12.3X48 versions prior to 12.3X48-D80; 14.1X53 versions prior to 14.1X53-D130, 14.1X53-D49; 15.1 versions prior to 15.1F6-S12, 15.1R7-S4; 15.1X49 versions prior to 15.1X49-D170; 15.1X53 versions prior to 15.1X53-D237, 15.1X53-D496, 15.1X53-D591, 15.1X53-D69; 16.1 versions prior to 16.1R3-S11, 16.1R7-S4; 16.2 versions prior to 16.2R2-S9; 17.1 versions prior to 17.1R3; 17.2 versions prior to 17.2R1-S8, 17.2R2-S7, 17.2R3-S1; 17.3 versions prior to 17.3R3-S4; 17.4 versions prior to 17.4R1-S6, 17.4R2-S3, 17.4R3; 18.1 versions prior to 18.1R2-S4, 18.1R3-S3; 18.2 versions prior to 18.2R1-S5, 18.2R2-S2, 18.2R3; 18.2X75 versions prior to 18.2X75-D40; 18.3 versions prior to 18.3R1-S3, 18.3R2; 18.4 versions prior to 18.4R1-S2, 18.4R2.

Affected products

VendorProductAffectedFixed
Juniper Networks Junos OS 12.3 versions prior to 12.3R12-S13, 12.3X48 versions prior to 12.3X48-D80, 14.1X53 versions prior to 14.1X53-D130 and 14.1X53-D49, 15.1 versions prior to 15.1F6-S12 and15.1R7-S4, 15.1X49 versions prior to 15.1X49-D170, 15.1X53 versions prior to 15.1X53-D237 and 15.1X53-D496 and 15.1X53-D591 and 15.… —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 inetutils 2:1.9.4-11 —
Debian 13 inetutils 2:1.9.4-11 —
Debian 12 inetutils 2:1.9.4-11 —
Debian 10 inetutils 2:1.9.4-7+deb10u3 DLA-3611-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS socks4-server No fix yet —
Ubuntu 16.04 LTS socks4-server No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS inetutils 2:1.9.4-3ubuntu0.1+esm2 USN-7781-1
Ubuntu Pro 16.04 LTS inetutils 2:1.9.4-1ubuntu0.1~esm3 USN-7781-1
Ubuntu Pro 14.04 LTS inetutils 2:1.9.2-1ubuntu0.1~esm2 USN-7781-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 2

References