# Buffer overflow in Siemens SIMATIC S7-400 CPU 412-1 DP V7 and others

CVE record · `CVE-2021-40368`

- **Identifiers:** `CVE-2021-40368`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **CNA:** siemens
- **Weakness (CWE):** [CWE-119](https://cwe.mitre.org/data/definitions/119.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Technologies:** [Siemens SIMATIC S7-400 CPU 412-1 DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-412-1-dp-v7.md) · [Siemens SIMATIC S7-400 CPU 412-2 DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-412-2-dp-v7.md) · [Siemens SIMATIC S7-400 CPU 412-2 PN/DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-412-2-pn-dp-v7.md) · [Siemens SIMATIC S7-400 CPU 414-2 DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-414-2-dp-v7.md) · [Siemens SIMATIC S7-400 CPU 414-3 DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-414-3-dp-v7.md) · [Siemens SIMATIC S7-400 CPU 414-3 PN/DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-414-3-pn-dp-v7.md) · [Siemens SIMATIC S7-400 CPU 414F-3 PN/DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-414f-3-pn-dp-v7.md) · [Siemens SIMATIC S7-400 CPU 416-2 DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-416-2-dp-v7.md) · [Siemens SIMATIC S7-400 CPU 416-3 DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-416-3-dp-v7.md) · [Siemens SIMATIC S7-400 CPU 416-3 PN/DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-416-3-pn-dp-v7.md) · [Siemens SIMATIC S7-400 CPU 416F-2 DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-416f-2-dp-v7.md) · [Siemens SIMATIC S7-400 CPU 416F-3 PN/DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-416f-3-pn-dp-v7.md) · [Siemens SIMATIC S7-400 CPU 417-4 DP V7](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-cpu-417-4-dp-v7.md) · [Siemens SIMATIC S7-400 H V6 CPU family (incl. SIPLUS variants)](https://agentprime.io/advisories/technology/siemens-simatic-s7-400-h-v6-cpu-family-incl-siplus-variants.md) · [Siemens SIMATIC S7-410 V10 CPU family (incl. SIPLUS variants)](https://agentprime.io/advisories/technology/siemens-simatic-s7-410-v10-cpu-family-incl-siplus-variants.md) · [Siemens SIMATIC S7-410 V8 CPU family (incl. SIPLUS variants)](https://agentprime.io/advisories/technology/siemens-simatic-s7-410-v8-cpu-family-incl-siplus-variants.md) · [Siemens SIPLUS S7-400 CPU 414-3 PN/DP V7](https://agentprime.io/advisories/technology/siemens-siplus-s7-400-cpu-414-3-pn-dp-v7.md) · [Siemens SIPLUS S7-400 CPU 416-3 PN/DP V7](https://agentprime.io/advisories/technology/siemens-siplus-s7-400-cpu-416-3-pn-dp-v7.md) · [Siemens SIPLUS S7-400 CPU 416-3 V7](https://agentprime.io/advisories/technology/siemens-siplus-s7-400-cpu-416-3-v7.md) · [Siemens SIPLUS S7-400 CPU 417-4 V7](https://agentprime.io/advisories/technology/siemens-siplus-s7-400-cpu-417-4-v7.md)
- **Published:** 12 Apr 2022
- **Updated:** 21 Apr 2025
- **Reviewed by a person:** No

Published by the CVE Program (CNA: siemens) at 12 Apr 2022, 09:07 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Siemens. Product: SIMATIC S7-400 CPU 412-1 DP V7.
  - affected: `All versions`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 CPU 412-2 DP V7.
  - affected: `All versions`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 CPU 412-2 PN/DP V7.
  - affected: `All versions < V7.0.3`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 CPU 414-2 DP V7.
  - affected: `All versions`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 CPU 414-3 DP V7.
  - affected: `All versions`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 CPU 414-3 PN/DP V7.
  - affected: `All versions < V7.0.3`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 CPU 414F-3 PN/DP V7.
  - affected: `All versions < V7.0.3`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 CPU 416-2 DP V7.
  - affected: `All versions`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 CPU 416-3 DP V7.
  - affected: `All versions`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 CPU 416-3 PN/DP V7.
  - affected: `All versions < V7.0.3`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 CPU 416F-2 DP V7.
  - affected: `All versions`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 CPU 416F-3 PN/DP V7.
  - affected: `All versions < V7.0.3`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 CPU 417-4 DP V7.
  - affected: `All versions`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-400 H V6 CPU family (incl. SIPLUS variants).
  - affected: `All versions < V6.0.10`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-410 V10 CPU family (incl. SIPLUS variants).
  - affected: `All versions < V10.1`
  - Other versions: unknown
- Vendor: Siemens. Product: SIMATIC S7-410 V8 CPU family (incl. SIPLUS variants).
  - affected: `All versions < V8.2.3`
  - Other versions: unknown
- Vendor: Siemens. Product: SIPLUS S7-400 CPU 414-3 PN/DP V7.
  - affected: `All versions < V7.0.3`
  - Other versions: unknown
- Vendor: Siemens. Product: SIPLUS S7-400 CPU 416-3 PN/DP V7.
  - affected: `All versions < V7.0.3`
  - Other versions: unknown
- Vendor: Siemens. Product: SIPLUS S7-400 CPU 416-3 V7.
  - affected: `All versions`
  - Other versions: unknown
- Vendor: Siemens. Product: SIPLUS S7-400 CPU 417-4 V7.
  - affected: `All versions`
  - Other versions: unknown

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P/RL:O/RC:C`, from CNA (siemens)

- **CISA KEV:** Not listed.
- **EPSS:** 0.010, the 63rd percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 12 Apr 2022. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2021-40368](https://www.cve.org/CVERecord?id=CVE-2021-40368)
- [NVD: CVE-2021-40368](https://nvd.nist.gov/vuln/detail/CVE-2021-40368)

### References from the CNA

- <https://cert-portal.siemens.com/productcert/pdf/ssa-557541.pdf>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2021-40368>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2021-40368/>. Everything for agents: <https://agentprime.io/llms.txt>.
