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.
| CVE ID | Title | CVSS | Severity | Published |
|---|---|---|---|---|
| CVE-2026-23955 | EVerest vulnerable to concatenation of strings literal and integers — everest-core | 4.2 | Medium | 2026-01-21 |
Vulnerabilities classified as CWE-1046 (使用字符串连接创建不可变文本) represent 1 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.