Cyber Resilience

CWE · MITRE source

CWE-170Improper Null Termination

Abstraction: Base · CVEs in our corpus: 50

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)

See the full cumulative-coverage rollup →

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-82757.09.80.03972019-03-08
CVE-2021-14697.09.90.01032021-03-24
CVE-2021-14717.09.90.01322021-03-24
CVE-2021-14117.09.90.01382021-03-24
CVE-2021-14177.09.90.00962021-03-24
CVE-2021-14187.09.90.00942021-03-24
CVE-2021-229317.09.80.21952021-08-16
CVE-2021-318847.09.80.01452021-11-09
CVE-2021-318867.09.80.03032021-11-09
CVE-2026-8721 UPD7.09.80.00452026-05-17
CVE-2026-5067 UPD7.09.80.00502026-06-09
CVE-2021-11205.57.00.00232021-10-29
CVE-2021-318875.58.80.02372021-11-09
CVE-2021-318885.58.80.02372021-11-09
CVE-2022-475155.57.50.01152022-12-18
CVE-2023-240215.57.50.00912023-01-20
CVE-2024-21442 UPD5.57.80.00832024-03-12
CVE-2024-314845.57.80.00472024-05-14
CVE-2024-452885.58.40.00302024-09-05
CVE-2024-434745.57.60.01262024-09-10
CVE-2025-627925.57.50.00352025-10-29
CVE-2025-677905.57.50.00272025-12-17
CVE-2025-67733 UPD5.58.50.00592026-02-23
CVE-2026-276925.57.10.00162026-02-25
CVE-2026-34462 UPD5.57.80.00172026-05-05