CWE · MITRE source
CWE-170Improper Null Termination
The product does not terminate or incorrectly terminates a string or array with a null character or equivalent terminator.
Null termination errors frequently occur in two different ways. An off-by-one error could cause a null to be written out of bounds, leading to an overflow. Or, a program could use a strncpy() function call incorrectly, which prevents a null terminator from being added at all. Other scenarios are possible.
Last updated: 04 July 2026 08:17 UTC
Cumulative inbound coverage
How completely the frameworks we cross-walk collectively cover this — the verdict is the strongest single mapping (overlapping partials are not summed); breadth shows the corroboration behind it.
Collective: partial · 3 mapping(s) from 1 framework(s): ATT&CK 3 (partial)
NIST 800-53 r5 controls that address this weakness (0)AI
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
| No NIST controls proposed yet. | |||
MITRE ATT&CK techniques this weakness enables
Our own two-way CWE↔ATT&CK cross-walk — a direct mapping with no public source (the CWE→CAPEC→ATT&CK chain leaves most top weaknesses, incl. XSS and SQLi, mapped to nothing). Drafted by Grok and spot-checked by Claude Opus 4.8.
Direction: ← other covers this;
→ this covers other (F/M/P = full / mostly /
partial).
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2019-8275 | 7.0 | 9.8 | 0.0397 | 2019-03-08 |
CVE-2021-1469 | 7.0 | 9.9 | 0.0103 | 2021-03-24 |
CVE-2021-1471 | 7.0 | 9.9 | 0.0132 | 2021-03-24 |
CVE-2021-1411 | 7.0 | 9.9 | 0.0138 | 2021-03-24 |
CVE-2021-1417 | 7.0 | 9.9 | 0.0096 | 2021-03-24 |
CVE-2021-1418 | 7.0 | 9.9 | 0.0094 | 2021-03-24 |
CVE-2021-22931 | 7.0 | 9.8 | 0.2195 | 2021-08-16 |
CVE-2021-31884 | 7.0 | 9.8 | 0.0145 | 2021-11-09 |
CVE-2021-31886 | 7.0 | 9.8 | 0.0303 | 2021-11-09 |
CVE-2026-8721 UPD | 7.0 | 9.8 | 0.0045 | 2026-05-17 |
CVE-2026-5067 UPD | 7.0 | 9.8 | 0.0050 | 2026-06-09 |
CVE-2021-1120 | 5.5 | 7.0 | 0.0023 | 2021-10-29 |
CVE-2021-31887 | 5.5 | 8.8 | 0.0237 | 2021-11-09 |
CVE-2021-31888 | 5.5 | 8.8 | 0.0237 | 2021-11-09 |
CVE-2022-47515 | 5.5 | 7.5 | 0.0115 | 2022-12-18 |
CVE-2023-24021 | 5.5 | 7.5 | 0.0091 | 2023-01-20 |
CVE-2024-21442 UPD | 5.5 | 7.8 | 0.0083 | 2024-03-12 |
CVE-2024-31484 | 5.5 | 7.8 | 0.0047 | 2024-05-14 |
CVE-2024-45288 | 5.5 | 8.4 | 0.0030 | 2024-09-05 |
CVE-2024-43474 | 5.5 | 7.6 | 0.0126 | 2024-09-10 |
CVE-2025-62792 | 5.5 | 7.5 | 0.0035 | 2025-10-29 |
CVE-2025-67790 | 5.5 | 7.5 | 0.0027 | 2025-12-17 |
CVE-2025-67733 UPD | 5.5 | 8.5 | 0.0059 | 2026-02-23 |
CVE-2026-27692 | 5.5 | 7.1 | 0.0016 | 2026-02-25 |
CVE-2026-34462 UPD | 5.5 | 7.8 | 0.0017 | 2026-05-05 |