GitHub Advisoryadvisory · PyPI

GHSA-84pr-m4jr-85g5 flask-cors vulnerable to log injection when the log level is set to debug

MEDIUM Published 2024-04-19 Modified 2026-06-05 Official page ↗
Aliases
CVE-2024-1681
Ecosystem
PyPI
Packages
flask-cors
Severity
Moderate
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weaknesses
CWE-117
Reviewed
2024-04-22

Affected packages

• PyPI flask-cors: < 4.0.1 → fixed in 4.0.1

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.

Related

Alias · CVE (1)

  • CVE-2024-1681 corydolphin/flask-cors is vulnerable to log injection when the log level is set to debug. vulnerability

Weakness · CWE (1)

  • CWE-117 Improper Output Neutralization for Logs weakness

References