1. CVE archive
  2. Vulnerability types
  3. CWE-626
CWE-626 · #499 most frequent type in the archive

Null Byte Interaction Error (Poison Null Byte)

The product does not properly handle null bytes or NUL characters when passing data between different representations or components.

Part of: CWE-147 · Improper Neutralization of Input Terminators

6CVEs of this type in the archive
3critical (CVSS ≥ 9)
2high severity (7–8.9)
Nov 19, 2026latest published

What it is

The product does not properly handle null bytes or NUL characters when passing data between different representations or components.

A null byte (NUL character) can have different meanings across representations or languages. For example, it is a string terminator in standard C libraries, but Perl and PHP strings do not treat it as a terminator. When two representations are crossed - such as when Perl or PHP invokes underlying C functionality - this can produce an interaction error with unexpected results. Similar issues have been reported for ASP. Other interpreters written in C might also be affected. The poison null byte is frequently useful in path traversal attacks by terminating hard-coded extensions that are added to a filename. It can play a role in regular expression processing in PHP.

Impact on systems

ScopeImpact
Integrity Unexpected State

How to prevent it

Implementation Remove null bytes from all incoming strings.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-626 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20191
20202
20263

All CWE-626 CVEs

6 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.