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
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)
- Debian/python-flask-corsfrom 0, < 3.0.9-2+deb11u1
- Debian/python-flask-corsfrom 0, < 3.0.9-2+deb11u1
- PyPI/flask-corsfrom 0, < 4.0.1
- PyPI/flask-corsfrom 0, <= 4.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-1681
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-1681
- PATCHhttps://github.com/corydolphin/flask-cors
- WEBhttps://github.com/corydolphin/flask-cors/blob/40acc8092332dfed4bb54d7a4f89a6d479466de7/flask_cors/extension.py#L194
- WEBhttps://huntr.com/bounties/25a7a0ba-9fa2-4777-acb6-03e5539bb644
- WEBhttps://lists.debian.org/debian-lts-announce/2025/05/msg00049.html