# CVE-2022-37301: Integer overflow in Legacy Modicon Quantum/Premium

> Integer underflow in Modbus TCP handling causes memory access violations and denial of service on Schneider Electric Modicon PLCs.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 22 Nov 2022
- **Updated:** 28 Apr 2025
- **Also known as:** GHSA-4v3w-rm54-5xg3

## What is CVE-2022-37301?

CVE-2022-37301 is a high-severity vulnerability in Schneider Electric Legacy Modicon Quantum/Premium, published on 22 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A CWE-191: Integer Underflow (Wrap or Wraparound) vulnerability exists that could cause a denial of service of the controller due to memory access violations when using the Modbus TCP protocol. Affected products: Modicon M340 CPU (part numbers BMXP34*)(V3.40 and prior), Modicon M580 CPU (part numbers BMEP* and BMEH*)(V3.22 and prior), Legacy Modicon Quantum/Premium(All Versions), Modicon Momentum MDI (171CBU*)(All Versions), Modicon MC80 (BMKC80)(V1.7 and prior)

Weakness: CWE-191 (Integer Underflow (Wrap or Wraparound))

## Which versions are affected by CVE-2022-37301?

It affects 48 products.


Products: Schneider-Electric Modicon M340 Bmx P34-2010 Firmware, Schneider-Electric Modicon M340 Bmx P34-2030 Firmware, Schneider-Electric Modicon M580 Bmeh582040 Firmware, Schneider-Electric Modicon M580 Bmeh582040c Firmware, Schneider-Electric Modicon M580 Bmeh582040s Firmware, Schneider-Electric Modicon M580 Bmeh584040 Firmware, Schneider-Electric Modicon M580 Bmeh584040c Firmware, Schneider-Electric Modicon M580 Bmeh584040s Firmware, Schneider-Electric Modicon M580 Bmeh586040 Firmware, Schneider-Electric Modicon M580 Bmeh586040c Firmware, Schneider-Electric Modicon M580 Bmeh586040s Firmware, Schneider-Electric Modicon M580 Bmep581020 Firmware, Schneider-Electric Modicon M580 Bmep581020h Firmware, Schneider-Electric Modicon M580 Bmep582020 Firmware, Schneider-Electric Modicon M580 Bmep582020h Firmware, Schneider-Electric Modicon M580 Bmep582040 Firmware, Schneider-Electric Modicon M580 Bmep582040h Firmware, Schneider-Electric Modicon M580 Bmep582040s Firmware, Schneider-Electric Modicon M580 Bmep583020 Firmware, Schneider-Electric Modicon M580 Bmep583040 Firmware and 28 more.

## How do I fix CVE-2022-37301?

No fix has been published for CVE-2022-37301 yet. Limit exposure of the affected software until one is available.

## Is CVE-2022-37301 being exploited?

There is no known exploitation of CVE-2022-37301 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-37301 and fix it if it is affected.

What it is: CVE-2022-37301 is a high-severity vulnerability in Schneider Electric Legacy Modicon Quantum/Premium, published on 22 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2022-37301 in the wild and no public exploit code.

Affected product: Schneider Electric Legacy Modicon Quantum/Premium. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-37301/ (Markdown: https://insights.sbomify.com/CVE-2022-37301/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-37301
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-37301
- OSV: https://osv.dev/vulnerability/CVE-2022-37301

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-37301/
Summaries are generated and may contain mistakes; the official description above is the record.
