Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-1046 (使用字符串连接创建不可变文本) — Vulnerability Class 1

1 vulnerabilities classified as CWE-1046 (使用字符串连接创建不可变文本). AI Chinese analysis included.

CWE-1046 represents a performance weakness where developers inefficiently construct immutable text strings through repeated concatenation operations. This flaw typically manifests when using operators like += within loops, such as FOR or WHILE structures. Each iteration forces the creation of a new string object in memory, leading to significant computational overhead and increased garbage collection pressure rather than simply appending to an existing buffer. While not directly exploitable for remote code execution, this inefficiency can degrade application responsiveness and availability, potentially facilitating denial-of-service conditions under high load. Developers can avoid this weakness by utilizing mutable text buffer data elements, such as StringBuilder in Java or StringBuffer in C#, which allow for efficient in-place modifications. By pre-allocating capacity and appending characters directly, these structures minimize object creation and optimize memory usage, ensuring scalable and performant string handling in resource-constrained environments.

MITRE CWE Description
The product creates an immutable text string using string concatenation operations. When building a string via a looping feature (e.g., a FOR or WHILE loop), the use of += to append to the existing string will result in the creation of a new object with each iteration, which can be inefficient in comparison with use of text buffer data elements.
Common Consequences (1)
OtherReduce Performance
This issue can make the product perform more slowly. If the relevant code is reachable by an attacker, then this could be influenced to create performance problem.
CVE IDTitleCVSSSeverityPublished
CVE-2026-23955 EVerest vulnerable to concatenation of strings literal and integers — everest-core 4.2 Medium2026-01-21

Vulnerabilities classified as CWE-1046 (使用字符串连接创建不可变文本) represent 1 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.