CVE-2018-7791 in Schneider-Electric Modicon M221 and 1 more product
A Permissions, Privileges, and Access Control vulnerability exists in Schneider Electric's Modicon M221 product (all references, all versions prior to firmware V1.6.2.0). The vulnerability allows unauthorized users to overwrite the original password with their password. If an attacker exploits this vulnerability and overwrite the password, the attacker can upload the original program from the PLC.
Affects 2 products from 1 vendor. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Schneider-Electric | Modicon M221 (device and firmware) | < 1.6.2.0 |
Fix and vendor advisory
- Modicon M221 all references: all versions prior to firmware v1.6.2.0: Mitigation: A fix for these vulnerabilities is implemented in Modicon M221 Firmware v1.6.2.0, delivered within SoMachine Basic v1.6 SP2, which is available for download below, or by using Schneider Electric Software Update tool
- Modicon M221 all references: all versions prior to firmware v1.6.2.0: Mitigation: As a temporary mitigation, Modicon M221 users should take the following measures: Set up a firewall blocking all remote/external access to Port 502.
- Modicon M221 all references: all versions prior to firmware v1.6.2.0: Mitigation: Within the Modicon M221 application, users must disable all unused protocols, especially programming protocol, as described in section “Configuring Ethernet Network” of SoMachine Basic online help. This will prevent remote programming of the M221 PLC.
- Modicon M221 all references: all versions prior to firmware v1.6.2.0: Mitigation: Schneider Electric's security notice SEVD-2018-235-01 is available
Source: ICSA-18-240-01
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2018-7791 |
|---|---|
| BreachSpider ID | BS-2018-GLOBAL-219968-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2018-08-29 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strict network segmentation and access controls to limit access to the Modicon M221 PLCs. Regularly monitor network traffic for suspicious activity and ensure that only authorized personnel have access to the PLCs.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.