CVE-2024-1681
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 4.0.1-1 |
| sid | Fixed | 4.0.1-1 |
| forky | Fixed | 4.0.1-1 |
| bullseye | Fixed | 3.0.9-2+deb11u1 |
| bookworm | Fixed | 3.0.10-2+deb12u1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| PyPI | flask-cors | <4.0.1 | 4.0.1 |
| PyPI | flask-cors | <=4.0.0 | |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-1681
- https://github.com/corydolphin/flask-cors
- https://github.com/corydolphin/flask-cors/blob/40acc8092332dfed4bb54d7a4f89a6d479466de7/flask_cors/extension.py#L194
- https://huntr.com/bounties/25a7a0ba-9fa2-4777-acb6-03e5539bb644
- https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html
- https://www.suse.com/security/cve/CVE-2024-1681.html
- https://security-tracker.debian.org/tracker/CVE-2024-1681
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.