CVE-2021-21814 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 strlen to determine the ending location of the char* passed in by the user, no checks are done to see if the passed in char* is longer than the staticly sized buffer data is memcpy‘d into, but after the memcpy a null byte is written to what is assumed to be the end of the buffer to terminate the char*, but without length checks, this null write occurs at an arbitrary offset from the buffer. An attacker can provide malicious input to trigger this vulnerability.
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-21814 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-241388-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 arguments 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.