CVE-2021-31227 in Hcc-Embedded Nichestack
An issue was discovered in HCC embedded InterNiche 4.0.1. A potential heap buffer overflow exists in the code that parses the HTTP POST request, due to an incorrect signed integer comparison. This vulnerability requires the attacker to send a malformed HTTP packet with a negative Content-Length, which bypasses the size checks and results in a large heap overflow in the wbs_multidata buffer copy.
Affects 1 product from 2 vendors. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Hcc-Embedded | Nichestack | < 4.3 |
| Rockwell Automation | — | — |
| Phoenixcontact | Axc 1050 Firmware | All versions |
| Phoenixcontact | Ilc1X0 Firmware | All versions |
| Phoenixcontact | Ilc1X1 Firmware | All versions |
Fix and vendor advisory
- InterNiche stack: All versions prior to v4.3, NicheLite: All versions prior to v4.3: HCC recommends users apply release v4.3 or later to mitigate these vulnerabilities. For more information, contact HCC.
Source: ICSA-21-217-01
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2021-31227 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-075391-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2021-08-19 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement network segmentation and access controls to limit exposure to untrusted networks. Monitor network traffic for suspicious HTTP POST requests with negative Content-Length values.
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 2026-06-17.