Security Resilience

CWE · MITRE source

CWE-170Improper Null Termination

Abstraction: Base · CVEs in our corpus: 60

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: 16 October 2026 07:24 UTC

Control responseHuman-reviewed

Answering this weakness across the control lifecycle, from our framework cross-walks.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • PR.PS-06
  • SA-11 Developer Testing and Evaluation
  • SA-15 Development Process, Standards, and Tools
  • SI-10 Information Input Validation
Detect
Catch it (CSF Detect / Respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)

—

NIST 800-53 r5 controls PROPOSED for this weakness (0)AI-assisted

These are model PROPOSALS, not graded mappings. They come from controls_to_cwe_proposals, which carries no grade field at all; across the CWE pages 1,540 of 1,722 such associations (89%) have never been graded by anything. The heading said “address” until 2026-09-29, which asserted a relationship the data does not carry. Graded cross-walks are on the framework map, not here.

Control Title Family Why it addresses this CWE
No NIST controls proposed yet.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2021-22931 8.69.80.21952021-08-16
CVE-2019-8275 7.99.80.03972019-03-08
CVE-2021-31886 7.89.80.03052021-11-09
CVE-2021-31884 7.69.80.01502021-11-09
CVE-2026-5067 7.59.80.00862026-06-09
CVE-2026-8721 7.39.80.00552026-05-17
CVE-2021-1469 7.29.90.01072021-03-24
CVE-2021-1471 7.29.90.01372021-03-24
CVE-2021-1411 7.29.90.01432021-03-24
CVE-2021-1417 7.19.90.00992021-03-24
CVE-2021-1418 7.19.90.00972021-03-24
CVE-2021-31887 7.08.80.02452021-11-09
CVE-2021-31888 7.08.80.02452021-11-09
CVE-2026-55738 6.68.80.00552026-06-17
CVE-2024-45288 6.28.40.00302024-09-05
CVE-2025-67733 6.28.50.00612026-02-23
CVE-2022-47515 6.17.50.01192022-12-18
CVE-2023-24021 6.07.50.00912023-01-20
CVE-2024-21442 6.07.80.00832024-03-12
CVE-2024-43474 6.07.60.01272024-09-10
CVE-2026-45798 6.07.50.00922026-08-19
CVE-2026-70587 6.07.50.01032026-09-08
CVE-2024-31484 5.97.80.00472024-05-14
CVE-2026-34464 5.98.80.00152026-05-05
CVE-2025-627925.87.50.00382025-10-29