cve.bz

CWE-158: Improper Neutralization of Null Byte or NUL Character, published in 2025

Filter

The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes NUL characters or null bytes when they are sent to a downstream component.

What the weakness is: CWE-158 at MITRE. All weaknesses

Related attack patterns (CAPEC): 2
  • CAPEC-52 Embedding NULL Bytes Likelihood: High · Severity: High
  • CAPEC-53 Postfix, Null Terminate, and Backslash Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to CWE-158, as MITRE names them. Credits.

Ask an AI about CWE-158

Show the promptExplain CWE-158: Improper Neutralization of Null Byte or NUL Character and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/158.html and https://cve.bz/cve/cwe/158?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.

By year: all 2026 2025 2024 2023 2022 2021

  1. 9.8CVE-2025-14388kiboit phastpressEPSS 0.5%

    The PhastPress plugin for WordPress is vulnerable to Unauthenticated Arbitrary File Read via null byte injection in all versions up to, and including, 3.7. This is due to a discrepancy between the extension validation in `getExtensionForUR…

  2. 8.9CVE-2025-66263dbbroadcastEPSS 0.4%

    Unauthenticated Arbitrary File Read via Null Byte Injection in DB Electronica Telecomunicazioni S.p.A. Mozart FM Transmitter versions 30, 50, 100, 300, 500, 1000, 2000, 3000, 3500, 6000, 7000 allows an attacker to perform Null byte injecti…

  3. 3.6CVE-2025-61985openbsd opensshEPSS 0.1%

    ssh in OpenSSH before 10.1 allows the '\0' character in an ssh:// URI, potentially leading to code execution when a ProxyCommand is used.

  4. 8.7CVE-2025-9648civetwebEPSS 0.8%

    A vulnerability in the CivetWeb library's function mg_handle_form_request allows remote attackers to trigger a denial of service (DoS) condition. By sending a specially crafted HTTP POST request containing a null byte in the payload, the s…

  5. 9.5CVE-2025-55113bmc control-m\/agentEPSS 0.3%

    If the Access Control List is enforced by the Control-M/Agent and the C router is in use (default in Out-of-support Control-M/Agent versions 9.0.18 to 9.0.20 and potentially earlier unsupported versions; non-default but configurable using …

  6. 10.0CVE-2025-47812wftpserver wing ftp serverKEVExploitEPSS 94%

    In Wing FTP Server before 7.4.4. the user and admin web interfaces mishandle '\0' bytes, ultimately allowing injection of arbitrary Lua code into user session files. This can be used to execute arbitrary system commands with the privileges…

  7. 7.3CVE-2025-1936mozillaEPSS 0.4%

    jar: URLs retrieve local file content packaged in a ZIP archive. The null and everything after it was ignored when retrieving the content from the archive, but the fake extension after the null was used to determine the type of content. Th…