Security Advisory

CVE-2022-25157: MELSEC Password Hash Used as Password

Last updated:
  • CVE-2022-25157

CVE-2022-25157 is the use of a password hash instead of the password for authentication (CWE-287 per NVD, CWE-836 per Mitsubishi) in MELSEC iQ-F, iQ-R, Q and L CPUs and network modules, all versions: with an eavesdropped hash an attacker can read or tamper with information in the PLC. NVD scores it 9.1, Mitsubishi 7.4. There is no fix.

Vulnerability summary

CVSS base score

9.1

Critical severity

EPSS score (FIRST)

2.4%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2022-25157 · Source: NVD

Affected components

ComponentCPEVersion range
MELSEC iQ-F FX5U(C) CPU modulescpe:2.3:o:mitsubishielectric:fx5uc_firmware:-:*:*:*:*:*:*:*All versions (NVD, Mitsubishi advisory 2021-031); no fixed version
MELSEC iQ-F FX5UJ CPU modulescpe:2.3:o:mitsubishielectric:fx5uj_firmware:-:*:*:*:*:*:*:*All versions (NVD, Mitsubishi advisory 2021-031); no fixed version
MELSEC iQ-R CPUs: R00/01/02CPU, R04/08/16/32/120(EN)CPU, R08-R120SFCPU, R08-R120PCPU, R08-R120PSFCPU and R16/32/64MTCPU—All versions (Mitsubishi advisory 2021-031, added 2022-05-31); no fixed version; not in NVD's CPE configuration
MELSEC iQ-R modules: RJ71C24(-R2/R4), RJ71EN71, RJ71GF11-T2, RJ71GP21(S)-SX, RJ72GF15-T2—All versions (Mitsubishi advisory 2021-031); no fixed version; not in NVD's CPE configuration
MELSEC Q CPUs: Q03UDECPU, Q04-Q100UDEHCPU, Q03-Q26UDVCPU, Q04-Q26UDPVCPU—All versions (Mitsubishi advisory 2021-031); no fixed version; not in NVD's CPE configuration
MELSEC Q modules: QJ71C24N(-R2/R4), QJ71E71-100—All versions (Mitsubishi advisory 2021-031); no fixed version; not in NVD's CPE configuration
MELSEC L CPUs and modules: L02/06/26CPU(-P), L26CPU-(P)BT, LJ71C24(-R2), LJ71E71-100, LJ72GF15-T2—All versions (Mitsubishi advisory 2021-031); no fixed version; not in NVD's CPE configuration

What does this mean for affected devices?

NVD's description: the flaw "allows a remote unauthenticated attacker to disclose or tamper with the information in the product by using an eavesdropped password hash." NVD's Primary score is CVSS v3.1 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) with CWE-287 (Improper Authentication). Mitsubishi Electric, CISA and JPCERT/CC give 7.4 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N): the same impact, but high attack complexity because the hash has to be captured first. The description lists 24 CPU and module families, but NVD's CPE configuration covers only 16 FX5UC and FX5UJ entries. The record was published on 2022-04-01 (NVD).

Which MELSEC products are affected?

Mitsubishi Electric's advisory 2021-031 (released 31 March 2022, updated 31 May 2022 to add the iQ-R, Q and L series) credits Anton Dorfman of Positive Technologies. All versions are affected:

  • MELSEC iQ-F: FX5U(C) and FX5UJ CPU modules
  • MELSEC iQ-R: R00/01/02CPU, R04/08/16/32/120(EN)CPU, Safety, Process and SIL2 Process CPUs, R16/32/64MTCPU motion CPUs, and the RJ71C24(-R2/R4), RJ71EN71, RJ71GF11-T2, RJ71GP21(S)-SX and RJ72GF15-T2 modules
  • MELSEC Q: Q03UDECPU, QnUDEHCPU, QnUDVCPU, QnUDPVCPU, and the QJ71C24N(-R2/R4) and QJ71E71-100 modules
  • MELSEC L: L02/06/26CPU(-P), L26CPU-(P)BT, LJ71C24(-R2), LJ71E71-100 and LJ72GF15-T2

Unlike CVE-2022-25155, this CVE includes the R16/32/64MTCPU motion CPUs and the RJ71GF11-T2 and RJ71GP21(S)-SX modules, but not the RJ71GN11-T2, RJ71GN11-EIP, QJ72BR15 or QJ72LP25 modules. CISA's ICSA-22-090-04 (Update A, 2022-05-31) carries the same list (CISA CSAF).

How does it fit with the rest of the advisory?

CVE Weakness (per Mitsubishi) Mitsubishi CVSS v3.1
CVE-2022-25155 Use of password hash instead of password for authentication (CWE-836): login by replay 5.9
CVE-2022-25156 Use of weak hash (CWE-328) 5.9
CVE-2022-25157 Use of password hash instead of password for authentication (CWE-836): disclose or tamper 7.4
CVE-2022-25158 Cleartext storage of sensitive information (CWE-312) 7.4
CVE-2022-25159 Authentication bypass by capture-replay (CWE-294) 5.9
CVE-2022-25160 Cleartext storage of sensitive information (CWE-312) 6.8

An attacker who captures the hash once, for example from engineering traffic that already crosses the network in cleartext under CVE-2020-5594, can keep using it until the password is changed. The Safety CPU credential flaws CVE-2021-20597 and CVE-2021-20599 show the same pattern on the iQ-R safety line.

How do you mitigate it?

Mitsubishi lists mitigations only: when communicating via untrusted networks or hosts, encrypt the path with a VPN, and use firewalls or the IP filter function to restrict connections to the products and keep untrusted networks and hosts away. The IP filter is set per product: section 12.1 of the MELSEC iQ-F FX5 User's Manual (Ethernet Communication), section 1.13 of the MELSEC iQ-R Ethernet User's Manual (Application), and section 14.3 of the Q and L Ethernet interface module manuals. No firmware fixes it, so keep engineering traffic off any network an untrusted host can watch, and change passwords after any period when it could have been captured. Our Mitsubishi MELSEC SLMP protocol security guide lists the MELSOFT, SLMP and MC protocol ports to restrict.

CVE-2022-25157 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.02382, the 84th percentile, in the 2026-11-17 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Authentication bypass. Our practical guide covers how to detect, fix, verify and disclose it: How to fix authentication bypass in embedded firmware.

Evidence

  • NVD: use of password hash instead of password for authentication, disclose or tamper with information using an eavesdropped password hash; NVD Primary CVSS v3.1 9.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N; CWE-287; CPE configuration 16 FX5UC/FX5UJ entries; published 2022-04-01. — NVD
  • Mitsubishi Electric advisory 2021-031 (released 2022-03-31, updated 2022-05-31): CVE-2022-25157 CWE-836 CVSS 7.4 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N; affected products incl. R16/32/64MTCPU and RJ71GF11-T2/RJ71GP21(S)-SX (footnotes); all versions; VPN and firewall/IP filter; reported by Anton Dorfman (Positive Technologies). — Mitsubishi Electric PSIRT
  • ICSA-22-090-04 (initial 2022-03-31, current 2022-05-31): CVE-2022-25157 CWE-836 CVSS 7.4; mitigations VPN, firewall or IP filter. — CISA CSAF ICSA-22-090-04
  • JVNVU#96577897 lists CVE-2022-25155 to CVE-2022-25160 for Mitsubishi Electric FA products. — 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.02382, percentile 0.84193, dataset 2026-11-17. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Mitsubishi Electric advisory 2021-031: authentication bypass, information disclosure and information tampering in multiple FA products
  3. CISA ICS Advisory ICSA-22-090-04: Mitsubishi Electric FA Products
  4. CISA CSAF: ICSA-22-090-04 (machine-readable advisory)
  5. JPCERT/CC JVNVU#96577897 (Japanese)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

What can an attacker do with CVE-2022-25157?

With a password hash captured from the network, an unauthenticated remote attacker can disclose or tamper with information in the affected MELSEC CPU or module; NVD and Mitsubishi both rate confidentiality and integrity impact high (per NVD and Mitsubishi advisory 2021-031).

Are MELSEC iQ-R motion CPUs affected by CVE-2022-25157?

Yes. Mitsubishi's footnotes list R16/32/64MTCPU as affected by CVE-2022-25157, CVE-2022-25159 and CVE-2022-25160 only, so they are in scope here but not for CVE-2022-25155 (per Mitsubishi advisory 2021-031).

How do I mitigate CVE-2022-25157 without a fix?

Encrypt communication over untrusted networks or hosts with a VPN and restrict connections with firewalls or the IP filter function of the CPU or Ethernet module; the advisory names the manual section for each series (per Mitsubishi advisory 2021-031 and CISA ICSA-22-090-04).

Is CVE-2022-25157 in the CISA KEV catalog?

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