Security Advisory

CVE-2022-3385: Advantech R-SeeNet show_code Overflow

Last updated:
  • CVE-2022-3385

CVE-2022-3385 is a stack-based buffer overflow in the show_code.php endpoint of Advantech R-SeeNet 2.4.17 and earlier: an over-long filename 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-3385 · 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 remotely 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 the narrower 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-1451 (2022-10-21) gives the detail the CVE text leaves out: "The specific flaw exists within the processing of POST requests sent to the show_code.php endpoint. When processing the filename element, the process does not properly validate the length of user-supplied data prior to copying it to a fixed-length stack-based buffer." No authentication is needed, and code runs in the context of the service account. ZDI credits the researcher rgod and reported the flaw to Advantech on 2022-06-06. A sibling overflow in the out.php endpoint is CVE-2022-3386.

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 this flaw and CVE-2022-3386, plus a path traversal (CVE-2022-3387) up to 2.4.19 that lets an unauthenticated attacker delete PDF files. Advantech's remedy for all three is R-SeeNet 2.4.21 or later. CISA lists Critical Manufacturing, Energy and Water and Wastewater as the sectors where the product is deployed and recommends keeping it off the internet, behind firewalls and reachable remotely only over a VPN. Later R-SeeNet releases had their own fixes, including the hidden root user CVE-2023-2611 fixed in 2.4.23, so moving straight to the current release is the safer step.

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. Another stack overflow in Advantech gear is CVE-2014-8385 in EKI-1200 gateways.

CVE-2022-3385 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-1451 (2022-10-21, ZDI-CAN-17409): Advantech R-SeeNet show_code endpoint stack-based buffer overflow RCE; CVSS 9.8; no authentication required; POST requests to show_code.php, filename element 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.77097, 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-1451: Advantech R-SeeNet show_code Endpoint Stack-based Buffer Overflow
  5. CVE.org record CVE-2022-3385
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

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

CISA's advisory says Advantech recommends R-SeeNet 2.4.21 or later; 2.4.17 and earlier are affected (per CISA ICSA-22-291-01 and NVD).

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

No. ZDI states authentication is not required, and NVD and CISA both use a vector with no privileges and no user interaction (per ZDI-22-1451, NVD and CISA).

What is the difference between CVE-2022-3385 and CVE-2022-3386?

Both are unauthenticated stack overflows in R-SeeNet 2.4.17 and earlier. CVE-2022-3385 is in the filename element of POST requests to show_code.php; CVE-2022-3386 is in the filename and path elements of POST requests to out.php (per ZDI-22-1451 and ZDI-22-1450).

Is CVE-2022-3385 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).