CWE-117: Improper Output Neutralization for Logs, published in 2021
Filter
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 the weakness is: CWE-117 at MITRE. OWASP Top 10: A09:2025 Logging & Alerting Failures. All weaknesses
Related attack patterns (CAPEC): 3
- CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
- CAPEC-93 Log Injection-Tampering-Forging Likelihood: High · Severity: High
- CAPEC-268 Audit Log Manipulation
The attack patterns MITRE's CAPEC relates to CWE-117, as MITRE names them. Credits.
Ask an AI about CWE-117
Show the prompt
Explain CWE-117: Improper Output Neutralization for Logs and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/117.html and https://cve.bz/cve/cwe/117?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 5.3CVE-2021-43410apache airavata django portalEPSS 2.4%
Apache Airavata Django Portal allows CRLF log injection because of lack of escaping log statements. In particular, some HTTP request parameters are logged without first being escaped. Versions affected: master branch before commit 3c5d8c7 …
- 6.5CVE-2021-42250apache supersetEPSS 1.8%
Improper output neutralization for Logs. A specific Apache Superset HTTP endpoint allowed for an authenticated user to forge log entries or inject malicious content into logs.
- 4.3CVE-2021-22096EPSS 1.4%
In Spring Framework versions 5.3.0 - 5.3.10, 5.2.0 - 5.2.17, and older unsupported versions, it is possible for a user to provide malicious input to cause the insertion of additional log entries.
- 5.3CVE-2021-20333mongodbEPSS 1.3%
Sending specially crafted commands to a MongoDB Server may result in artificial log entries being generated or for log entries to be split. This issue affects MongoDB Server v3.6 versions prior to 3.6.20; MongoDB Server v4.0 versions prior…