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

Incorrect Calculation of Multi-Byte String Length

The product does not correctly calculate the length of strings that can contain wide or multi-byte characters.

Part of: CWE-682 · Incorrect Calculation

1CVEs of this type in the archive
0critical (CVSS ≥ 9)
0high severity (7–8.9)
Nov 13, 2026latest published

What it is

The product does not correctly calculate the length of strings that can contain wide or multi-byte characters.

Impact on systems

ScopeImpact
Integrity, Confidentiality, Availability Execute Unauthorized Code or Commands
This weakness may lead to a buffer overflow. Buffer overflows often can be used to execute arbitrary code, which is usually outside the scope of a program's implicit security policy. This can often be used to subvert any other security service.
Availability, Confidentiality Read Memory, DoS: Crash, Exit, or Restart, DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory)
Out of bounds memory access will very likely result in the corruption of relevant memory, and perhaps instructions, possibly leading to a crash. Other attacks leading to lack of availability are possible, including putting the program into an infinite loop.
Confidentiality Read Memory
In the case of an out-of-bounds read, the attacker may have access to sensitive information. If the sensitive information contains system details, such as the current buffer's position in memory, this knowledge can be used to craft further attacks, possibly with more severe consequences.

How to prevent it

Implementation · Input Validation Always verify the length of the string unit character.
Implementation · Libraries or Frameworks Use length computing functions (e.g. strlen, wcslen, etc.) appropriately with their equivalent type (e.g.: byte, wchar_t, etc.)

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

All CWE-135 CVEs

1 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.