CWE-546 — Suspicious Comment
CWE-546: Suspicious Comment
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Variant |
| Status | Draft |
| Likelihood of exploit | — |
Description
The code contains comments that suggest the presence of bugs, incomplete functionality, or weaknesses.
Many suspicious comments, such as BUG, HACK, FIXME, LATER, LATER2, TODO, in the code indicate missing security functionality and checking. Others indicate code problems that programmers should fix, such as hard-coded variables, error handling, not using stored procedures, and performance issues.
Common consequences
- Other: Quality Degradation
Mitigations
Documentation — Remove comments that suggest the presence of bugs, incomplete functionality, or weaknesses, before deploying the application.
References
- CWE page: https://cwe.mitre.org/data/definitions/546.html
- CWE list: https://cwe.mitre.org/data/index.html
See all 1,245 pages under Weakness classes (CWE) →
Related pages
Browse by topic
Every page in the corpus, grouped. Search finds one page; this shows what else is here.