Security Advisory

CVE-2021-20591: MELSEC iQ-R MELSOFT TCP Port DoS

Last updated:
  • CVE-2021-20591

CVE-2021-20591 is uncontrolled resource consumption (CWE-400) in the MELSOFT transmission port (TCP/IP) of Mitsubishi Electric MELSEC iQ-R CPUs, all versions: an attacker who opens a connection and never closes it locks legitimate engineering clients out of that port. The control program keeps running. NVD scores it 7.5, Mitsubishi 5.3, and no fixed firmware exists.

Vulnerability summary

CVSS base score

7.5

High severity

EPSS score (FIRST)

1.5%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2021-20591 · Source: NVD

Affected components

ComponentCPEVersion range
MELSEC iQ-R R00/01/02CPUcpe:2.3:o:mitsubishielectric:r00cpu_firmware:*:*:*:*:*:*:*:*All versions (NVD, Mitsubishi advisory 2021-003); no fixed version
MELSEC iQ-R R04/08/16/32/120(EN)CPUcpe:2.3:o:mitsubishielectric:r04cpu_firmware:*:*:*:*:*:*:*:*All versions (NVD, Mitsubishi advisory 2021-003); no fixed version
MELSEC iQ-R R08/16/32/120SFCPU (Safety CPU)cpe:2.3:o:mitsubishielectric:r08sfcpu_firmware:*:*:*:*:*:*:*:*All versions (NVD, Mitsubishi advisory 2021-003); no fixed version
MELSEC iQ-R R08/16/32/120PCPU (Process CPU)cpe:2.3:o:mitsubishielectric:r08pcpu_firmware:*:*:*:*:*:*:*:*All versions (NVD, Mitsubishi advisory 2021-003); no fixed version
MELSEC iQ-R R08/16/32/120PSFCPU (SIL2 Process CPU)cpe:2.3:o:mitsubishielectric:r08psfcpu_firmware:*:*:*:*:*:*:*:*All versions (NVD, Mitsubishi advisory 2021-003); no fixed version

What does this mean for affected devices?

NVD's description: the flaw "allows a remote unauthenticated attacker to prevent legitimate clients from connecting to the MELSOFT transmission port (TCP/IP) by not closing a connection properly". NVD's Primary score is CVSS v3.1 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) with CWE-400. Mitsubishi Electric, CISA and JPCERT/CC give 5.3, rating availability impact low rather than high. NVD's CPE configuration lists 20 iQ-R CPU firmware entries (R00 to R120, SFCPU, PCPU and PSFCPU models) with no version bound. The record was published on 2021-06-11 (NVD).

What does the attack do to a MELSEC iQ-R CPU?

Mitsubishi Electric's advisory 2021-003 (27 May 2021) puts it down to improper session management on the MELSOFT transmission port (TCP/IP). If an attacker does not close the connection, legitimate clients cannot connect to that port. The advisory limits the impact: other open MELSOFT TCP ports are not affected, and "sequence control is not affected". All versions of the R00/01/02CPU, R04/08/16/32/120(EN)CPU, Safety, Process and SIL2 Process CPUs are listed, and no fixed version is named. Younes Dragoni of Nozomi Networks reported it.

CISA published it as ICSA-21-147-05 on 2021-05-27 with the same mitigations (CISA CSAF); JPCERT/CC's entry is JVNVU#98060539.

How do you recover from and prevent it?

To recover, Mitsubishi describes the forced connection invalidation function in the MELSEC iQ-R Ethernet User's Manual (Application), Appendix 3, Buffer Memory: set bit b2 to ON from a watch window or the Device/Buffer Memory Batch Monitor, then back to OFF, and legitimate clients can connect again. If TCP port 5007 is not used at all, set b2 to 1 in advance so the port stays closed. The other mitigations are a firewall or VPN where Internet access is required, keeping the CPU in a LAN with untrusted hosts blocked, the IP filter function to restrict connecting addresses, and using the MELSOFT transmission port (UDP/IP) instead.

A connection to TCP port 5007 that stays open with no traffic is worth an IDS alert. The same CPUs carry other network-reachable flaws, among them password hash replay (CVE-2022-25155) and an Ethernet-level DoS (CVE-2021-20609). Our Mitsubishi MELSEC SLMP protocol security guide explains which MELSOFT ports to close or filter.

CVE-2021-20591 is not in the CISA KEV catalog as of 2026-11-18 (catalog version 2026.11.17), which has no Mitsubishi Electric entry. FIRST EPSS gives it 0.01497, the 74th percentile, in the 2026-11-17 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Resource exhaustion. Our practical guide covers how to detect, fix, verify and disclose it: How to fix SQL injection, XSS, resource exhaustion and deserialization flaws in embedded firmware.

Evidence

  • NVD: iQ-R R00-R120(EN)CPU, SFCPU, PCPU, PSFCPU all versions; remote unauthenticated attacker prevents legitimate clients from connecting to the MELSOFT transmission port (TCP/IP) by not closing a connection properly; NVD Primary CVSS v3.1 7.5 A:H; CWE-400; 20 CPEs with no version bound; published 2021-06-11. — NVD
  • Mitsubishi Electric advisory 2021-003 (2021-05-27): CVSS v3.1 5.3 A:L; improper session management; other MELSOFT TCP ports not affected; sequence control not affected; all versions; recovery via forced connection invalidation b2 ON then OFF; if port 5007 not used set b2 to 1 in advance; mitigations firewall/VPN, LAN, IP filter, use MELSOFT UDP/IP port; reported by Younes Dragoni of Nozomi Networks. — Mitsubishi Electric PSIRT
  • ICSA-21-147-05 (2021-05-27): CVE-2021-20591 CWE-400, CVSS v3.0 5.3; mitigations as in Mitsubishi's advisory. — CISA CSAF ICSA-21-147-05
  • JVNVU#98060539: CVSS v3.0 5.3; references ICSA-21-147-05. — JPCERT/CC JVN
  • Not in the CISA KEV catalog, version 2026.11.17 (1,782 entries, no Mitsubishi Electric vendor entry), checked 2026-11-18. — CISA KEV
  • EPSS 0.01497, percentile 0.74661, dataset 2026-11-17. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Mitsubishi Electric advisory 2021-003: DoS vulnerability in MELSOFT transmission port (TCP/IP)
  3. CISA ICS Advisory ICSA-21-147-05: Mitsubishi Electric MELSEC iQ-R Series
  4. CISA CSAF: ICSA-21-147-05 (machine-readable advisory)
  5. JPCERT/CC JVNVU#98060539 (Japanese)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Does CVE-2021-20591 stop the PLC program?

No. Mitsubishi Electric states that sequence control is not affected and that other open MELSOFT transmission ports (TCP/IP) keep working; only the port held open by the attacker refuses legitimate clients (per Mitsubishi advisory 2021-003).

How do you restore access after a CVE-2021-20591 attack?

Use the forced connection invalidation function: set bit b2 to ON from a watch window or the Device/Buffer Memory Batch Monitor, then set it back to OFF, and legitimate clients can connect again (per Mitsubishi advisory 2021-003, referring to the MELSEC iQ-R Ethernet User's Manual (Application), Appendix 3).

Is there a firmware fix for CVE-2021-20591?

No fixed version is listed; all versions of the affected iQ-R CPUs are named. Mitsubishi's mitigations are firewalls or a VPN, the IP filter function, the MELSOFT UDP/IP port instead of TCP/IP, and disabling TCP port 5007 in advance if it is unused (per Mitsubishi advisory 2021-003 and CISA ICSA-21-147-05).

Is CVE-2021-20591 in the CISA KEV catalog?

No, not as of 2026-11-18 (catalog version 2026.11.17). FIRST EPSS gives it 0.01497, the 74th percentile, in the 2026-11-17 dataset (per CISA KEV and FIRST EPSS).