CVE-2018-12886 in Gnu Gcc and 20 more products
stack_protect_prologue in cfgexpand.c and stack_protect_epilogue in function.c in GNU Compiler Collection (GCC) 4.1 through 8 (under certain circumstances) generate instruction sequences when targeting ARM targets that spill the address of the stack protector guard, which allows an attacker to bypass the protection of -fstack-protector, -fstack-protector-all, -fstack-protector-strong, and -fstack-protector-explicit against stack overflow by controlling what the stack canary is compared against.
Affects 21 products from 2 vendors. Description from NVD and MITRE.
Remotely exploitable over the network, high complexity, no authentication 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 |
|---|---|---|
| Gnu | Gcc | ≥ 4.1, ≤ 8.0 |
| Siemens | SCALANCE WAM763-1 (device and firmware) | < 2.0 |
| Siemens | SCALANCE WAM766-1 (device and firmware) | < 2.0 |
| Siemens | SCALANCE WUM763-1 (device and firmware) | < 2.0 |
| Siemens | SCALANCE WUM766-1 (device and firmware) | < 2.0 |
| Siemens | 6GK5766-1GE00-7DA0 (device and firmware) | < 2.0 |
| Siemens | 6GK5766-1GE00-7DB0 (device and firmware) | < 2.0 |
| Siemens | 6GK5766-1GE00-7TA0 (device and firmware) | < 2.0 |
| Siemens | 6GK5766-1GE00-7TB0 (device and firmware) | < 2.0 |
| Siemens | 6GK5766-1GE00-3DA0 (device and firmware) | < 2.0 |
| Siemens | 6GK5766-1GE00-3DB0 (device and firmware) | < 2.0 |
| Siemens | S7-1500 Cpu Firmware | ≥ 3.1.0, < 3.1.5 |
| Siemens | Simatic Cpu 1518F-4 Firmware | ≥ 3.1.0, < 3.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware | ≥ 3.1.0, < 3.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518-4 Pn Firmware | ≥ 3.1.0, < 3.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518F-4 Firmware | ≥ 3.1.0, < 3.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518F-4 Pn/Dp Mfp Firmware | ≥ 3.1.0, < 3.1.5 |
| Siemens | Siplus S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware | ≥ 3.1.0, < 3.1.5 |
Fix and vendor advisory
- SCALANCE WAM763-1 (6GK5763-1AL00-7DA0), SCALANCE WAM766-1 (EU) (6GK5766-1GE00-7DA0), SCALANCE WAM766-1 (US) (6GK5766-1GE00-7DB0) and 6 more: Update to V2.0 or later version
Source: ICSA-23-080-07
- SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 more: Update to V3.1.5 or later version
Source: ICSA-23-348-10
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2018-12886 |
|---|---|
| BreachSpider ID | BS-2019-GLOBAL-124671-H |
| CVSS vector | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2019-05-22 |
| Last modified | 2026-10-14 |
| Weakness (CWE) | |
| Source | NVD |
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-10-14.