CVE-2024-1681
MEDIUM5.3EPSS 0.18%flask-cors vulnerable to log injection when the log level is set to debug
發布日:2024/4/19修改日:2026/5/20
描述
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.
受影響套件(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 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| 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 |
參考連結(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