CVE-2024-1681

MEDIUM5.3EPSS 0.18%

flask-cors vulnerable to log injection when the log level is set to debug

Published: 4/19/2024Modified: 5/20/2026
Also known as:GHSA-84pr-m4jr-85g5CGA-jr52-5m9j-gvwwPYSEC-2024-271

Description

corydolphin/flask-cors is vulnerable to log injection when the log level is set to debug. An attacker can inject fake log entries into the log file by sending a specially crafted GET request containing a CRLF sequence in the request path. This vulnerability allows attackers to corrupt log files, potentially covering tracks of other attacks, confusing log post-processing tools, and forging log entries. The issue is due to improper output neutralization for logs.

Affected packages (4)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1MEDIUM5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References (6)