# CVE-2022-0222: Privilege escalation in Modicon M340 CPUs

> An attacker can cause a denial of service on Modicon M340 Ethernet communication by sending a specific SNMP request, requiring firmware upgrades.

- **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:** 29 Apr 2025
- **Also known as:** GHSA-x99p-hp5r-mjx9

## What is CVE-2022-0222?

CVE-2022-0222 is a high-severity vulnerability in Schneider Electric Modicon M340 CPUs, 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-269: Improper Privilege Management vulnerability exists that could cause a denial of service of the Ethernet communication of the controller when sending a specific request over SNMP. Affected products: Modicon M340 CPUs(BMXP34* versions prior to V3.40), Modicon M340 X80 Ethernet Communication modules:BMXNOE0100 (H), BMXNOE0110 (H), BMXNOR0200H RTU(BMXNOE* all versions)(BMXNOR* versions prior to v1.7 IR24)

Weakness: CWE-269 (Improper Privilege Management)

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

It affects 14 products.


Products: Schneider-Electric Modicon M340 Bmxnoe0100 Firmware, Schneider-Electric Modicon M340 Bmxnoe0110 Firmware, Schneider-Electric Modicon M340 Bmxnoe0110h Firmware, Schneider-Electric Modicon M340 Bmxnor0200h Firmware, Schneider-Electric Modicon M340 Bmxp341000 Firmware, Schneider-Electric Modicon M340 Bmxp342000 Firmware, Schneider-Electric Modicon M340 Bmxp3420102 Firmware, Schneider-Electric Modicon M340 Bmxp342010 Firmware, Schneider-Electric Modicon M340 Bmxp342020 Firmware, Schneider-Electric Modicon M340 Bmxp342020h Firmware, Schneider-Electric Modicon M340 Bmxp3420302 Firmware, Schneider-Electric Modicon M340 Bmxp3420302h Firmware, Schneider-Electric Modicon M340 Bmxp342030 Firmware, Schneider-Electric Modicon M340 Bmxp342030h Firmware.

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

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

## Is CVE-2022-0222 being exploited?

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

## Fix prompt for AI coding agents

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

What it is: CVE-2022-0222 is a high-severity vulnerability in Schneider Electric Modicon M340 CPUs, 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-0222 in the wild and no public exploit code.

Affected product: Schneider Electric Modicon M340 CPUs. 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-0222/ (Markdown: https://insights.sbomify.com/CVE-2022-0222/index.md)
```

## Sources

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

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