Lantronix S2220 Series 2 a3cli Restricted Shell OS Command Injection (CVE-2026-18530)
Overview
The vulnerability resides in the a3cli restricted shell provided on Lantronix S2220 Series 2 devices. The shell is intended to limit command execution, but it fails to sanitize command substitution meta-characters. An attacker who can authenticate over SSH can embed backticks or $() in parameters of allowed commands, causing the underlying OS to execute arbitrary commands. The issue is addressed in firmware version 1.3.37.
Technical Details
The a3cli restricted shell parses command arguments without filtering backticks (`) or the $() command substitution construct. When an authenticated SSH session passes a permitted command with these meta-characters, the shell expands them and executes the resulting OS command. This bypasses the intended command whitelist, granting the attacker full command execution capability on the device. Exploitation requires valid SSH credentials and the use of vulnerable firmware prior to version 1.3.37.
Impact
An attacker who obtains valid SSH access can execute arbitrary operating system commands, potentially leading to full device compromise, data exfiltration, or disruption of network services. All Lantronix S2220 Series 2 devices running firmware versions earlier than 1.3.37 are exposed.
Recommended Actions
- Apply the firmware update to version 1.3.37 or later.
- Restrict SSH access to trusted administrators only.
- Disable the a3cli restricted shell if it is not required for operations.
- Monitor SSH logs for command patterns containing backticks or $() syntax.
Detection
Review SSH session logs for use of the a3cli shell and inspect command arguments for backticks (`) or $() constructs. Alert on any execution of commands that include these meta-characters or on unexpected privilege escalation attempts. Correlate with authentication logs to identify anomalous user activity.