# CVE-2017-6028: Hardcoded credentials in Schneider Electric Modicon PLCs

> Attackers can sniff Base64-encoded login credentials from network traffic to gain unauthorized access to the PLC web interface.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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:** 30 Jun 2017
- **Updated:** 5 Aug 2024
- **Also known as:** GHSA-55h6-p6m7-f4h7

## What is CVE-2017-6028?

CVE-2017-6028 is a critical vulnerability in Schneider Electric Modicon PLCs, published on 30 Jun 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An Insufficiently Protected Credentials issue was discovered in Schneider Electric Modicon PLCs Modicon M241, all firmware versions, and Modicon M251, all firmware versions. Log-in credentials are sent over the network with Base64 encoding leaving them susceptible to sniffing. Sniffed credentials could then be used to log into the web application.

Weakness: CWE-522 (Insufficiently Protected Credentials)

## Which versions are affected by CVE-2017-6028?

It affects 2 products.


Products: Schneider-Electric Modicon M241 Firmware, Schneider-Electric Modicon M251 Firmware.

## How do I fix CVE-2017-6028?

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

## Is CVE-2017-6028 being exploited?

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

## Other vulnerabilities in Schneider Electric Modicon PLCs

- [CVE-2017-6026](https://insights.sbomify.com/CVE-2017-6026/): Weak cryptography in Schneider Electric Modicon PLCs (critical 9.1)
- [CVE-2021-22699](https://insights.sbomify.com/CVE-2021-22699/): Denial of service in Modicon M241/M251 logic controllers firmware prior to V5.1.9.1 (high 7.5)
- [CVE-2025-13901](https://insights.sbomify.com/CVE-2025-13901/): Denial of service in Modicon M241/M251 (medium 6.9)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2017-6028 and fix it if it is affected.

What it is: CVE-2017-6028 is a critical vulnerability in Schneider Electric Modicon PLCs, published on 30 Jun 2017. 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-2017-6028 in the wild and no public exploit code.

Affected product: Schneider Electric Modicon PLCs. 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-2017-6028/ (Markdown: https://insights.sbomify.com/CVE-2017-6028/index.md)
```

## Sources

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

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