CVE-2021-21813 in Att Xmill and 1 more product
Within the function HandleFileArg the argument filepattern is under control of the user who passes it in from the command line. filepattern is passed directly to memcpy copying the path provided by the user into a staticly sized buffer without any length checks resulting in a stack-buffer overflow.
Affects 2 products from 2 vendors. Description from NVD and MITRE.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Att | Xmill | 0.7 |
| Schneider-Electric | EcoStruxure Process Expert | < 2021 (including former HDCS) |
| Schneider-Electric | Ecostruxure Control Expert | < 15.1 HF001 (including former Unity Pro) |
Fix and vendor advisory
- Mitigation: AT&T Labs have stated this software is longer supported and recommends vendors to move away from using it.
- Mitigation: EcoStruxure Control Expert V15.1 HF001 or later.
- Mitigation: EcoStruxure Process Expert V2021 or later.
- Mitigation: SCADAPack RemoteConnect for R2.7.3 or later (Users no longer need to update the RemoteConnect application when a Control Expert update is present.)
- Mitigation: Securely store the project files and restrict access to trusted users.
- Mitigation: Use secure communication channels when exchanging files over the network,.
- Mitigation: Only open project files received from trusted sources.
- Mitigation: Compute a hash of the project files and regularly check the consistency of this hash to verify integrity before usage.
- Mitigation: Harden the workstation running EcoStruxure Control Expert or Unity Pro.
- Mitigation: Users using Unity Pro should consider migrating to EcoStruxure Control Expert.
Source: ICSA-22-223-03
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2021-21813 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-241387-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2021-08-13 |
| Last modified | 2024-11-21 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement input validation and length checks for all user-provided file patterns before passing them to the HandleFileArg function. Consider using safer functions like strncpy instead of memcpy to prevent buffer overflows.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.