Security Advisory

CVE-2022-3386: Advantech R-SeeNet out.php Overflow

Last updated:
  • CVE-2022-3386

CVE-2022-3386 is a stack-based buffer overflow in the out.php endpoint of Advantech R-SeeNet 2.4.17 and earlier: an outsized filename or path in a POST request overruns a fixed-length stack buffer, giving remote code execution without authentication. NVD and CISA score it 9.8. Advantech's fix is R-SeeNet 2.4.21 or later, per CISA.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

1.6%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2022-3386 · Source: NVD

Affected components

ComponentCPEVersion range
Advantech R-SeeNetcpe:2.3:a:advantech:r-seenet:*:*:*:*:*:*:*:*Up to and including 2.4.17 (NVD CPE, CISA ICSA-22-291-01); update to 2.4.21 or later

What does this mean for affected devices?

NVD's description reads: "Advantech R-SeeNet Versions 2.4.17 and prior are vulnerable to a stack-based buffer overflow. An unauthorized attacker can use an outsized filename to overflow the stack buffer and enable remote code execution." NVD's Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) with CWE-787, out-of-bounds write; the CNA, ICS-CERT (CISA), gives the same score and CWE-121, stack-based buffer overflow. The record was published on 2022-10-27 (NVD, CVE record), and NVD's CPE configuration covers R-SeeNet up to and including 2.4.17.

Where is the overflow?

The Zero Day Initiative advisory ZDI-22-1450 (2022-10-21) names the endpoint: "The specific flaw exists within the processing of POST requests sent to the out.php endpoint. When processing the filename and path elements, the process does not properly validate the length of user-supplied data prior to copying it to a fixed-length stack-based buffer." Authentication is not required, and code runs in the context of the service account. ZDI credits rgod, who reported it to Advantech on 2022-06-06 together with the show_code.php overflow CVE-2022-3385.

Which R-SeeNet version fixes it?

CISA's ICSA-22-291-01 (2022-10-18; CSAF) lists R-SeeNet 2.4.17 and prior for both overflows and 2.4.19 and prior for the path traversal CVE-2022-3387, which can delete PDF files. Advantech recommends R-SeeNet 2.4.21 or later. CISA lists Critical Manufacturing, Energy and Water and Wastewater as deployment sectors and recommends keeping the server off the internet, behind a firewall and reachable remotely only over a VPN. The 2023 advisory for the hidden root user CVE-2023-2611 affects R-SeeNet up to 2.4.22, so a server updated only to 2.4.21 still needs 2.4.23 or later.

Our memory corruption fix guide covers bounded copies of request fields, and the Advantech EKI, router and WebAccess/SCADA guide covers R-SeeNet alongside Advantech's router advisories. A comparable unauthenticated stack overflow in router software is CVE-2021-27137 in DD-WRT.

CVE-2022-3386 is not in the CISA KEV catalog as of 2026-11-21 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS gives it 0.01649, the 77.1st percentile, in the 2026-11-20 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD: R-SeeNet 2.4.17 and prior, stack-based buffer overflow enabling remote code execution; Primary CVSS v3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; CNA (ICS-CERT) 9.8 same vector; CWE-787 (NVD), CWE-121 (ICS-CERT); CPE advantech:r-seenet <= 2.4.17; published 2022-10-27; read 2026-11-21. — NVD
  • CISA CSAF ICSA-22-291-01 'Advantech R-SeeNet' (released 2022-10-18, revision 1): R-SeeNet <= 2.4.17 affected by CVE-2022-3386 and CVE-2022-3385 (CWE-121, CVSS 3.0 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), <= 2.4.19 by CVE-2022-3387 (CWE-22 path traversal deleting .PDF files, 6.5); Advantech recommends updating to 2.4.21 or later; sectors Critical Manufacturing, Energy, Water and Wastewater; worldwide; credit rgod (Trend Micro ZDI); read 2026-11-21. — CISA ICS advisory / CSAF
  • ZDI-22-1450 (2022-10-21, ZDI-CAN-17392): Advantech R-SeeNet out endpoint stack-based buffer overflow RCE; CVSS 9.8; no authentication required; POST requests to out.php, filename and path elements not length-checked before copy to fixed-length stack buffer; code runs in context of the service account; reported to vendor 2022-06-06; credit rgod; read 2026-11-21. — Trend Micro Zero Day Initiative
  • CVE record: state PUBLISHED, assigner icscert, published 2022-10-27, Advantech R-SeeNet <= 2.4.17, CNA CVSS 3.1 9.8; reference ICSA-22-291-01; checked 2026-11-21. — CVE.org
  • Not in the CISA KEV catalog version 2026.11.20 (1,790 entries, released 2026-11-20), checked 2026-11-21. — CISA KEV
  • EPSS 0.01649, percentile 0.77096, dataset 2026-11-20, read 2026-11-21. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CISA ICSA-22-291-01: Advantech R-SeeNet
  3. CISA CSAF: ICSA-22-291-01 (machine-readable advisory)
  4. Zero Day Initiative ZDI-22-1450: Advantech R-SeeNet out Endpoint Stack-based Buffer Overflow
  5. CVE.org record CVE-2022-3386
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which R-SeeNet version fixes CVE-2022-3386?

CISA's advisory says Advantech recommends R-SeeNet 2.4.21 or later; 2.4.17 and earlier are affected. Later flaws such as CVE-2023-2611 need 2.4.23 or later (per CISA ICSA-22-291-01 and ICSA-23-173-02).

Does an attacker need a login to exploit CVE-2022-3386?

No. ZDI states authentication is not required, and NVD and CISA both score it with no privileges and no user interaction (per ZDI-22-1450, NVD and CISA).

Why do NVD and CISA list different CWEs for CVE-2022-3386?

NVD classifies it as CWE-787, out-of-bounds write; CISA uses the more specific CWE-121, stack-based buffer overflow. Both score it 9.8 (per NVD and CISA ICSA-22-291-01).

Is CVE-2022-3386 exploited in the wild?

It is not in the CISA KEV catalog as of 2026-11-21 (catalog version 2026.11.20). FIRST EPSS gives it 0.01649, the 77.1st percentile, in the 2026-11-20 dataset (per CISA KEV and FIRST EPSS).