- What is CWE-117?
- The product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.
- What CVEs are caused by CWE-117?
- 91 recorded CVEs are attributed to CWE-117, including CVE-2024-0987, CVE-2023-46321, CVE-2023-46322.
- How do you prevent CWE-117?
- Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
- How is CWE-117 detected?
- Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
- What are the consequences of CWE-117?
- Exploiting CWE-117 can lead to: Modify Application Data, Hide Activities, Execute Unauthorized Code or Commands.
- Is CWE-117 actively exploited?
- 91 recorded CVEs are caused by CWE-117; none are currently in CISA's KEV catalog of actively exploited flaws.