Back to Labs
Security Advisory

CVE-2021-3351

About

OpenPLC runtime V3 through 2016-03-14 allows stored XSS via the Device Name to the web server's Add New Device page.

Weakness (CWE):CWE-79

Rainforest analyst review

OpenPLC's web runtime stores whatever you type into the Device Name field on the Add New Device page and renders it back without neutralizing it, so a script payload placed there persists and executes in the browser of anyone who later views it. It's stored XSS, but the setting is what gives it weight — this is the web management interface of a programmable logic controller runtime, the software layer that drives industrial process logic.

The preconditions keep this at medium rather than higher. An attacker needs at least a low-privileged authenticated account to add a device, and a victim with access to the runtime UI has to view the poisoned entry for the payload to fire. So the realistic story is one operator (or a compromised low-tier account) planting script that runs in a higher-privileged operator's session — a way to pivot within the OT management plane, not a remote takeover of the PLC itself. In an ICS context even browser-session compromise of an engineering interface is unwelcome, but the bar to reach it is real.

Our angle here is exposure isolation, because OT web interfaces should never be casually reachable. We'd confirm any OpenPLC runtime is confined to a segmented control network with tight access, which shrinks both who can inject and who can be hit. Given the ICS setting we treat the stored-XSS as a management-plane integrity issue to fix on the runtime's update path, and rank it by how tightly the interface is walled off rather than by the 5.4 alone.

References

Related CVEs

Frequently asked questions

What is CVE-2021-3351?

OpenPLC runtime V3 through 2016-03-14 allows stored XSS via the Device Name to the web server's Add New Device page.

How severe is CVE-2021-3351?

CVE-2021-3351 carries a CVSS 3.1 base score of 5.4, rated medium. On the Rainforest Risk Index — which weighs the severity alongside how easy the flaw is to reach and how broad its impact is — it scores 59 out of 100, in the elevated band.

How is CVE-2021-3351 exploited?

According to the CVSS vector (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N): attack vector Network, attack complexity Low, privileges required Low, user interaction Required. Impact on confidentiality Low, integrity Low and availability None.

Which products are affected by CVE-2021-3351?

Public advisories list the following as affected: openplc. Check the references on this page for the exact versions each vendor confirms.

How do I fix CVE-2021-3351?

Apply the fix the vendor published — the references on this page link to the primary advisories and patches. When patching can't happen right away, reduce the exposure of the affected component and watch it for exploitation attempts. Rainforest customers see this vulnerability correlated to their own assets and prioritized by real exposure, not by score alone.

Empower Your Security Strategy with Rainforest

Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.

Share this:LinkedInX Email