Back to CWE list
CWE-1046
Creation of Immutable Text Using String Concatenation
Base
Incomplete
Description
The product creates an immutable text string using string concatenation operations.
{"xhtml:p":["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. "]}
Parent Weaknesses (ChildOf)
Common Consequences
Scope
Other
Impact
Reduce Performance
Applicable Platforms
Not Language-Specific
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now