M580 FirmwareOperating system · Schneider Electric

CVE-2018-7851

MEDIUM · 6.5 CVSS v3.1 Published 2019-05-22
Fix available
A fix is available. Upgrade to 2.40 / 2.50 or later.
See remediation →
71/100
Remediation priority · Elevated
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
CWE-119: Buffer errors vulnerability exists in Modicon M580 with firmware prior to V2.50, Modicon M340 with firmware prior to V3.01, BMxCRA312xx with firmware prior to V2.40, All firmware versions of Modicon Premium and 140CRA312xxx when sending a specially crafted Modbus packet, which could cause a denial of service to the device that would force a restart to restore availability.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

A CWE-119 buffer errors vulnerability in Schneider Electric Modicon controllers (M580, M340, BMxCRA312xx, Premium, 140CRA312xxx) allows remote attackers to cause denial of service by sending specially crafted Modbus packets, triggering a buffer overflow that forces the device to restart.

MitigationUpgrade firmware to vendor-specified versions (M580: V2.50+, M340: V3.01+, BMxCRA312xx: V2.40+). For Modicon Premium and 140CRA312xxx (all versions affected), contact vendor for compensating controls or firmware availability.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
M580 FirmwareOperating system
Affected:< 2.50
M340 FirmwareOperating system
Affected:< 3.01
Bmx\/e Cra FirmwareOperating system
Affected:< 2.40
Modicon Premium FirmwareOperating system
Affected:all versions
140cra312xxx FirmwareOperating system
Affected:all versions

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify the Modicon controller model
    Access the controller via Schneider Electric programming software (Unity Pro, EcoStruxure, or via the device's web interface/HMI) and record the exact model number: M580, M340, BMxCRA312xx, Modicon Premium, or 140cra312xxx.
    Affected if The device is any of these five model families (M580, M340, BMxCRA, Premium, or 140cra312xxx).
  2. Determine the installed firmware version
    Check the firmware version through the controller's web interface, HMI, or via the programming software (Unity Pro/EcoStruxure) under the controller properties or device information section.
    Affected if Firmware version is below: M580 < 2.50, M340 < 3.01, BMxCRA312xx < 2.40, or any version for Premium/140cra312xxx.
  3. Verify Modbus communication is enabled
    Check the controller configuration for Modbus TCP or Modbus serial communication settings. In the programming software, review the communication modules and protocol configuration to confirm Modbus is active.
    Affected if Modbus protocol (TCP or serial) is enabled and the controller is network-accessible. This is the attack vector required for exploitation.

If the device is a Schneider Electric Modicon controller (M580, M340, BMxCRA, Premium, or 140cra312xxx) with firmware below the safe thresholds and has Modbus communication enabled and network-accessible, the environment is affected by CVE-2018-7851.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Upgrade available Upgrade to 2.40 / 2.50 / 3.01 or later
Fixed in 2.402.503.01
Interim mitigation

Upgrade firmware to vendor-specified versions (M580: V2.50+, M340: V3.01+, BMxCRA312xx: V2.40+). For Modicon Premium and 140CRA312xxx (all versions affected), contact vendor for compensating controls or firmware availability.

Fix this in M580 Firmware Scoped from the published advisory
  • Consultation6.0 h
  • Implementation8.0 h
  • Testing6.0 h
  • Review / QA3.0 h
23.0 hours of engineering $4,080
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,528.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2018-7851 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2018-7851 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data