CyberSecBulletin

Improper Null Termination

CWE-170

The product does not terminate or incorrectly terminates a string or array with a null character or equivalent terminator.

We track 22 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 7.9.

How this weakness is prevented

  • Requirements: Use a language that is not susceptible to these issues. However, be careful of null byte interaction errors (CWE-626) with lower-level constructs that may be written in a language that is susceptible.
  • Implementation: Ensure that all string functions used are understood fully as to how they append null characters. Also, be wary of off-by-one errors when appending nulls to the end of strings.
  • Implementation: If performance constraints permit, special code can be added that validates null-termination of string buffers, this is a rather naive and error-prone solution.
  • Implementation: Switch to bounded string manipulation functions. Inspect buffer lengths involved in the buffer overrun trace reported with the defect.
  • Implementation: Add code that fills buffers with nulls (however, the length of buffers still needs to be inspected, to ensure that the non null-terminated string is not written at the physical end of the buffer).

Latest Improper Null Termination vulnerabilities

  • 7.5 High severity

    wazuh: Stack-based Buffer Overflow

    CVE-2026-45798Wazuh

    Wazuh is a free and open source platform used for threat prevention, detection, and response. From 4.5.0 until 4.14.6 and 5.0.0-beta2, compare_wazuh_versions() in src/shared/version_op.c copies the attacker-controlled enrollment V: field into a 10-byte stack b

  • 7.8 High severity

    Linux: Improper Null Termination

    CVE-2026-72095Linux

    In the Linux kernel, the following vulnerability has been resolved: dma-fence: Make dma_fence_dedup_array() robust against 0-count input dma_fence_dedup_array() returns 1 when called with num_fences == 0: the for-loop body never executes, j stays at 0, and the

  • 8.4 High severity

    Linux: Improper Null Termination

    CVE-2026-63860Linux

    In the Linux kernel, the following vulnerability has been resolved: RDMA/core: Prefer NLA_NUL_STRING These attributes are evaluated as c-string (passed to strcmp), but NLA_STRING doesn't check for the presence of a \0 terminator. Either this needs to switch to

  • 8.8 High severity

    microtar: Stack-based Buffer Overflow

    CVE-2026-55738Rxi

    A stack-based buffer overflow exists in the raw_to_header function in src/microtar.c in rxi microtar 0.1.0. The function copies the 100-byte name and linkname fields of a TAR header with strcpy without guaranteeing null termination of the source.

  • 9.8 Critical severity

    Zephyr: Out-of-bounds Write

    CVE-2026-5067Zephyrproject-rtos

    A remote, unauthenticated attacker can trigger memory corruption in Zephyr's HTTP server WebSocket upgrade path by sending a crafted Sec-WebSocket-Key header. The HTTP/1 header parser copies the header into a fixed-size buffer using a bounded copy that does no

  • 9.8 Critical severity

    Crypt::OpenSSL::PKCS12: Improper Null Termination

    CVE-2026-8721Jonasbn

    Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs. Password parameters in PKCS12.xs are declared char *, which routes through Perl's default typemap to SvPV_nolen. The Perl length is discarded. The C code (or OpenSSL

  • 9.8 Critical severity

    Red Hat Enterprise Linux 10: Improper Null Termination

    CVE-2026-42010Red HatEPSS 1.05%

    A flaw was found in gnutls. Servers configured with RSA-PSK (Rivest–Shamir–Adleman – Pre-Shared Key) wrongfully matched usernames containing a NUL character with truncated usernames. A remote attacker could exploit this by sending a specially crafted username,

  • 8.8 High severity

    Sandboxie: Stack-based Buffer Overflow

    CVE-2026-34464Sandboxie-plus

    Sandboxie-Plus is an open source sandbox-based isolation software for Windows. In versions 1.17.2 and earlier, NamedPipeServer::OpenHandler copies the server field from NAMED_PIPE_OPEN_REQ into a fixed WCHAR pipename[160] stack buffer using wcscat without veri

  • 7.8 High severity

    Sandboxie: Stack-based Buffer Overflow

    CVE-2026-34462Sandboxie-plus

    Sandboxie-Plus is an open source sandbox-based isolation software for Windows. In versions 1.17.2 and earlier, several ProcessServer handlers (KillAllHandler, SuspendAllHandler, and RunSandboxedHandler) copy a WCHAR boxname[34] field from request structures in

  • 7.1 High severity

    Linux: Improper Null Termination

    CVE-2026-43028Linux

    In the Linux kernel, the following vulnerability has been resolved: netfilter: x_tables: ensure names are nul-terminated Reject names that lack a \0 character before feeding them to functions that expect c-strings. Fixes tag is the most recent commit that need

  • 7.1 High severity

    iccDEV: Out-of-bounds Write

    CVE-2026-27692InternationalColorConsortium

    iccDEV provides a set of libraries and tools for working with ICC color management profiles. In versions up to and including 2.3.1.4, heap-buffer-overflow read occurs during CIccTagTextDescription::Release() when strlen() reads past a heap buffer while parsing

  • 7.1 High severity

    valkey: Improper Neutralization of Special Elements in Output Used by a Downstream Component

    CVE-2025-67733Valkey-io

    Valkey is a distributed key-value database. Prior to versions 9.0.2, 8.1.6, 8.0.7, and 7.2.12, a malicious user can use scripting commands to inject arbitrary information into the response stream for the given client, potentially corrupting or returning tamper

  • 8.1 High severity

    iccDEV: Heap-based Buffer Overflow

    CVE-2026-24852InternationalColorConsortium

    iccDEV provides a set of libraries and tools that allow for the interaction, manipulation, and application of ICC color management profiles. Prior to version 2.3.1.2, a heap buffer over-read when the strlen() function attempts to read a non-null-terminated buf

  • 7.1 High severity

    iccDEV: Heap-based Buffer Overflow

    CVE-2026-21488InternationalColorConsortium

    iccDEV provides a set of libraries and tools for working with ICC color management profiles. Versions 2.3.1.1 and below are vulnerable to Out-of-bounds Read, Heap-based Buffer Overflow and Improper Null Termination through its CIccTagText::Read function. This

  • 7.1 High severity

    NPort 6100-G2/6200-G2 Series: Improper Null Termination

    CVE-2025-2026Moxa

    The NPort 6100-G2/6200-G2 Series is affected by a high-severity vulnerability (CVE-2025-2026) that allows remote attackers to execute a null byte injection through the device’s web API. This may lead to an unexpected device reboot and result in a denial-of-ser

  • 7.5 High severity

    Drivelock: Improper Null Termination

    CVE-2025-67790DriveLock

    An issue was discovered in DriveLock 24.1 before 24.1.6, 24.2 before 24.2.7, and 25.1 before 25.1.5. An unprivileged user could cause occasionally a Blue Screen Of Death (BSOD) on Windows computers by using an IOCTL and an unterminated string.

  • 7.1 High severity

    envoy: Improper Null Termination

    CVE-2025-66220Envoyproxy

    Envoy is a high-performance edge/middle/service proxy. In 1.33.12, 1.34.10, 1.35.6, 1.36.2, and earlier, Envoy’s mTLS certificate matcher for match_typed_subject_alt_names may incorrectly treat certificates containing an embedded null byte (\0) inside an OTHER

  • 7.5 High severity

    wazuh: Buffer Over-read

    CVE-2025-62792Wazuh

    Wazuh is a free and open source platform used for threat prevention, detection, and response. Prior to 4.12.0, a buffer over-read occurs in w_expression_match() when strlen() is called on str_test, because the corresponding buffer is not being properly NULL te

  • 7.5 High severity

    libfluid: Improper Null Termination

    CVE-2024-31197Open Networking Foundation (ONF)

    Improper Null Termination vulnerability in Open Networking Foundation (ONF) libfluid (libfluid_msg module). This vulnerability is associated with program routine fluid_msg::of10::Port:unpack. This issue affects libfluid: 0.1.0.

  • 7.8 High severity

    CPC80 Central Processing/Communication: Improper Null Termination

    CVE-2024-31484Siemens

    A vulnerability has been identified in CPC80 Central Processing/Communication (All versions < V16.41), CPCI85 Central Processing/Communication (All versions < V5.30), CPCX26 Central Processing/Communication (All versions < V06.02), ETA4 Ethernet Interface IEC6

  • 7.5 High severity

    Modsecurity: Improper Null Termination

    CVE-2023-24021Trustwave

    Incorrect handling of '\0' bytes in file uploads in ModSecurity before 2.9.7 may allow for Web Application Firewall bypasses and buffer over-reads on the Web Application Firewall when executing rules that read the FILES_TMP_CONTENT collection.

  • 7.5 High severity

    Drachtio-server: Improper Null Termination

    CVE-2022-47515DrachtioEPSS 1.23%

    An issue was discovered in drachtio-server before 0.8.20. It allows remote attackers to cause a denial of service (daemon crash) via a long message in a TCP request that leads to std::length_error.