{"id":"CVE-2021-31630","aliases":["EUVD-2021-18519","GHSA-2c27-grr5-3w2g"],"status":"published","title":"Command Injection in Open PLC Webserver v3 allows remote attackers to execute arbitrary code via...","description":"Command Injection in Open PLC Webserver v3 allows remote attackers to execute arbitrary code via the \"Hardware Layer Code Box\" component on the \"/hardware\" page of the application.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.27075,"percentile":0.98074,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-78","CWE-94"],"published":"2021-08-03T14:50:46Z","modified":"2026-06-17T03:52:05Z","exploits":[{"source":"pocgithub","id":"FlojBoj/CVE-2021-31630","title":"FlojBoj/CVE-2021-31630","date":"2024-07-26","url":"https://github.com/FlojBoj/CVE-2021-31630"},{"source":"pocgithub","id":"Hunt3r0x/CVE-2021-31630-HTB","title":"Hunt3r0x/CVE-2021-31630-HTB","date":"2024-03-20","url":"https://github.com/Hunt3r0x/CVE-2021-31630-HTB"},{"source":"pocgithub","id":"UserB1ank/CVE-2021-31630","title":"UserB1ank/CVE-2021-31630","date":"2025-10-06","url":"https://github.com/UserB1ank/CVE-2021-31630"},{"source":"pocgithub","id":"adibna/cve-2021-31630","title":"adibna/cve-2021-31630","date":"2024-06-21","url":"https://github.com/adibna/cve-2021-31630"},{"source":"pocgithub","id":"behindsecurity/htb-wifinetictwo-exploit","title":"behindsecurity/htb-wifinetictwo-exploit","date":"2024-04-04","url":"https://github.com/behindsecurity/htb-wifinetictwo-exploit"},{"source":"pocgithub","id":"hev0x/CVE-2021-31630-OpenPLC_RCE","title":"hev0x/CVE-2021-31630-OpenPLC_RCE","date":"2021-08-02","url":"https://github.com/hev0x/CVE-2021-31630-OpenPLC_RCE"},{"source":"pocgithub","id":"junnythemarksman/CVE-2021-31630","title":"junnythemarksman/CVE-2021-31630","date":"2024-06-04","url":"https://github.com/junnythemarksman/CVE-2021-31630"},{"source":"pocgithub","id":"machevalia/OpenPLC-CVE-2021-31630-RCE","title":"machevalia/OpenPLC-CVE-2021-31630-RCE","date":"2025-06-23","url":"https://github.com/machevalia/OpenPLC-CVE-2021-31630-RCE"},{"source":"pocgithub","id":"manuelsantosiglesias/CVE-2021-31630","title":"manuelsantosiglesias/CVE-2021-31630","date":"2024-07-24","url":"https://github.com/manuelsantosiglesias/CVE-2021-31630"},{"source":"pocgithub","id":"mind2hex/CVE-2021-31630-OpenPLC-3-Authenticated-RCE","title":"mind2hex/CVE-2021-31630-OpenPLC-3-Authenticated-RCE","date":"2024-04-15","url":"https://github.com/mind2hex/CVE-2021-31630-OpenPLC-3-Authenticated-RCE"},{"source":"pocgithub","id":"thewhiteh4t/cve-2021-31630","title":"thewhiteh4t/cve-2021-31630","date":"2024-03-28","url":"https://github.com/thewhiteh4t/cve-2021-31630"},{"source":"pocgithub","id":"tranquac/OpenPLC_v3","title":"tranquac/OpenPLC_v3","date":"2025-10-27","url":"https://github.com/tranquac/OpenPLC_v3"}],"products":[{"vendor":"openplcproject","product":"openplc_v3_firmware"}],"references":[{"url":"https://www.youtube.com/watch?v=l08DHB08Gow","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory"]},{"url":"https://packetstormsecurity.com/files/162563/OpenPLC-WebServer-3-Remote-Code-Execution.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31630"},{"url":"https://github.com/advisories/GHSA-2c27-grr5-3w2g"}],"sources":{"cve":[{"id":"CVE-2021-31630","description":"Command Injection in Open PLC Webserver v3 allows remote attackers to execute arbitrary code via the \"Hardware Layer Code Box\" component on the \"/hardware\" page of the application.","status":"published","published":"2021-08-03T14:50:46Z","modified":"2024-08-03T23:03:33.671Z","updated_at":"2026-11-02T14:33:05.665371Z"}],"euvd":[{"id":"EUVD-2021-18519","description":"Command Injection in Open PLC Webserver v3 allows remote attackers to execute arbitrary code via the \"Hardware Layer Code Box\" component on the \"/hardware\" page of the application.","status":"published","published":"2021-08-03T14:50:46Z","modified":"2024-08-03T23:03:33Z","updated_at":"2026-11-03T03:24:38.423371Z"}],"ghsa":[{"id":"GHSA-2c27-grr5-3w2g","title":"Command Injection in Open PLC Webserver v3 allows remote attackers to execute arbitrary code via...","description":"Command Injection in Open PLC Webserver v3 allows remote attackers to execute arbitrary code via the \"Hardware Layer Code Box\" component on the \"/hardware\" page of the application.","status":"published","published":"2022-05-24T19:09:52Z","modified":"2023-01-30T05:01:15Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-78","CWE-94"],"updated_at":"2026-11-02T14:46:22.009402Z"}],"nvd":[{"id":"CVE-2021-31630","description":"Command Injection in Open PLC Webserver v3 allows remote attackers to execute arbitrary code via the \"Hardware Layer Code Box\" component on the \"/hardware\" page of the application.","status":"published","published":"2021-08-03T15:15:08.417Z","modified":"2026-06-17T03:52:05.827Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:06:56.562207Z"}]}}
