CVE-2024-1681
Log Injection Vulnerability in corydolphin/flask-cors
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
5.3
Log Injection Vulnerability in corydolphin/flask-cors
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.
- Record
CVE-2024-1681- CVSS 3.0
- 5.3 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-117
- Updated
- 2026-11-02
EUVDEUVD-2024-1152
5.3
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.
- Record
EUVD-2024-1152- CVSS 3.0
- 5.3 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-84pr-m4jr-85g5
5.3
flask-cors vulnerable to log injection when the log level is set to debug
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.
- Record
GHSA-84pr-m4jr-85g5- CVSS 3.0
- 5.3 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-117
- Updated
- 2026-11-02
NVD
5.3
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.
- Record
CVE-2024-1681- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - CVSS 3.0
- 5.3 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-117
- Updated
- 2026-11-02
OSV
5.3
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.
- Record
CVE-2024-1681- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-1681
5.3
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.
- Record
DEBIAN-CVE-2024-1681- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
Show 10 moreShow less
OSVGHSA-84pr-m4jr-85g5
5.3
flask-cors vulnerable to log injection when the log level is set to debug
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.
- Record
GHSA-84pr-m4jr-85g5- CVSS 3.0
- 5.3 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-117
- Updated
- 2026-11-02
OSVOESA-2024-1713
5.3
python-Flask-Cors security update
A Flask extension for handling Cross Origin Resource Sharing (CORS), making cross-origin AJAX possible.
Security Fix(es):
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.(CVE-2024-1681)
- Record
OESA-2024-1713- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
OSVPYSEC-2024-271
5.3
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.
- Record
PYSEC-2024-271- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-1681
5.3
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.
- Record
UBUNTU-CVE-2024-1681- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - CVSS 3.0
- 5.3 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
OSVCLSA-2026-1789716215 No score
TuxCare security update for flask-cors (4 CVEs)
TuxCare rebuilt flask-cors to address 4 CVEs. Fixed in 3.0.10.post1+tuxcare.
- Record
CLSA-2026-1789716215- Updated
- 2026-11-02
OSVMGASA-2025-0286 No score
Updated python-flask-cors packages fix security vulnerabilities
Log Injection Vulnerability in corydolphin/flask-cors. (CVE-2024-1681) Improper Access Control in corydolphin/flask-cors. (CVE-2024-6221) Improper Regex Path Matching in corydolphin/flask-cors. (CVE-2024-6839) Inconsistent CORS Matching Due to Handling of '+' in URL Path in corydolphin/flask-cors. (CVE-2024-6844) Case-Insensitive Path Matching in corydolphin/flask-cors. (CVE-2024-6866)
- Record
MGASA-2025-0286- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14293-1 No score
python310-Flask-Cors-4.0.1-1.1 on GA media
These are all security issues fixed in the python310-Flask-Cors-4.0.1-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14293-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:11990-1 No score
python313-Flask-Cors-6.0.2-1.2 on GA media
These are all security issues fixed in the python313-Flask-Cors-6.0.2-1.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:11990-1- Updated
- 2026-11-02
OSVROOT-APP-PYPI-CVE-2024-1681 No score
CVE-2024-1681 in rootio-flask-cors - Patched by Root
Root has patched CVE-2024-1681 in the rootio-flask-cors package for Root:PyPI. Multiple fixed versions available.
- Record
ROOT-APP-PYPI-CVE-2024-1681- Updated
- 2026-11-02
OSVUSN-7612-1 No score
python-flask-cors vulnerabilities
It was discovered that Flask-CORS did not correctly handle certain regular expressions. A remote attacker could possibly use this issue to leak sensitive information or bypass authentication mechanisms. (CVE-2024-6839) It was discovered that Flask-CORS allowed certain CORS headers to be enabled by default. A remote attacker could possibly use this issue to leak sensitive information. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS and Ubuntu 24.10. (CVE-2024-6221) It was discovered that Flask-CORS did not correctly handle case sensitivity when matching paths. A remote attacker could possibly use this issue to leak sensitive information. (CVE-2024-6866) It was discovered that Flask-CORS did not correctly handle certain characters in URL paths. A remote attacker could possibly use this issue to leak sensitive information or bypass authentication mechanisms. (CVE-2024-6844) Elias Hohl was discovered that Flask-CORS did not correctly sanitize log entries. A remote attacker could possibly use this issue to corrupt log files. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2024-1681)
- Record
USN-7612-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
flask-corsPyPI |
through 4.0.0 | 4.0.1 |
flask-corsTuxCare:PyPI From an advisory covering 4 CVEs |
3.0.10 up to 3.0.10.post1+tuxcare | 3.0.10.post1+tuxcare |
python-flask-corsDebian:12 |
before 3.0.10-2+deb12u1, plus listed versions 3.0.10-2 |
3.0.10-2+deb12u1 |
python-flask-corsDebian:13 |
before 4.0.1-1 | 4.0.1-1 |
python-flask-corsDebian:14 |
before 4.0.1-1 | 4.0.1-1 |
python-flask-corsDebian:11 From an advisory covering 4 CVEs |
before 3.0.9-2+deb11u1, plus listed versions 3.0.9-2 |
3.0.9-2+deb11u1 |
flask-corsPyPI |
before 4.0.1, plus listed versions 0.0.0.dev30.0.0.dev41.01.11.1.1 Show 41 moreShow less1.1.21.1.31.10.01.10.11.10.21.10.31.2.01.2.11.3.01.3.11.4.01.5.01.6.01.6.11.7.01.7.11.7.21.7.31.7.41.8.01.8.11.9.02.0.02.0.0rc12.0.12.1.02.1.12.1.22.1.33.0.03.0.13.0.103.0.23.0.33.0.43.0.63.0.73.0.83.0.94.0.04.0.0a0 |
4.0.1 |
python-flask-corsMageia:9 From an advisory covering 5 CVEs |
before 3.0.10-1.1.mga9 | 3.0.10-1.1.mga9 |
python-Flask-CorsopenEuler:24.03-LTS |
before 4.0.0-2.oe2403 | 4.0.0-2.oe2403 |
flask-corsPyPI |
through 4.0.0, plus listed versions 0.0.0.dev30.0.0.dev41.01.11.1.1 Show 40 moreShow less1.1.21.1.31.10.01.10.11.10.21.10.31.2.01.2.11.3.01.3.11.4.01.5.01.6.01.6.11.7.01.7.11.7.21.7.31.7.41.8.01.8.11.9.02.0.02.0.0rc12.0.12.1.02.1.12.1.22.1.33.0.03.0.13.0.103.0.23.0.33.0.43.0.63.0.73.0.83.0.94.0.0a0 |
None known |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
rootio-flask-corsRoot:PyPI |
before 3.0.10+root.io.2 | 3.0.10+root.io.2 |
python-flask-corsUbuntu:Pro:20.04:LTS |
before 3.0.8-2ubuntu0.1+esm1, plus listed versions 3.0.8-23.0.8-2ubuntu0.1 |
3.0.8-2ubuntu0.1+esm1 |
python-flask-corsUbuntu:22.04:LTS |
before 3.0.9-2ubuntu0.1, plus listed versions 3.0.9-2 |
3.0.9-2ubuntu0.1 |
python-flask-corsUbuntu:Pro:24.04:LTS |
before 4.0.0-1ubuntu0.1~esm1, plus listed versions 4.0.0-1 |
4.0.0-1ubuntu0.1~esm1 |
python-flask-corsUbuntu:Pro:20.04:LTS From an advisory covering 5 CVEs |
before 3.0.8-2ubuntu0.1+esm1, plus listed versions 3.0.8-23.0.8-2ubuntu0.1 |
3.0.8-2ubuntu0.1+esm1 |
python-flask-corsUbuntu:22.04:LTS From an advisory covering 5 CVEs |
before 3.0.9-2ubuntu0.1, plus listed versions 3.0.9-2 |
3.0.9-2ubuntu0.1 |
python-flask-corsUbuntu:Pro:24.04:LTS From an advisory covering 5 CVEs |
before 4.0.0-1ubuntu0.1~esm1, plus listed versions 4.0.0-1 |
4.0.0-1ubuntu0.1~esm1 |
python-Flask-CorsopenSUSE:Tumbleweed |
before 4.0.1-1.1 | 4.0.1-1.1 |
python-Flask-CorsopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 6.0.2-1.2 | 6.0.2-1.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-1681 is a medium vulnerability (CVSS 5.3) in Corydolphin Corydolphin/flask-cors, published April 19, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.57%, the 47th percentile. Fixed in flask-cors 4.0.1.
References
huntr.com/bounties/25a7a0ba-9fa2-4777-acb6-03e5539bb644
lists.debian.org/debian-lts-announce/2025/05/msg00049.html
nvd.nist.gov/vuln/detail/CVE-2024-1681
github.com/corydolphin/flask-cors/blob/40acc8092332dfed4bb54d7a4f89a6d479466de7/flask_cors/extension.py
github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-271.yaml
github.com/advisories/GHSA-84pr-m4jr-85g5
Show 14 moreShow less
security-tracker.debian.org/tracker/CVE-2024-1681
github.com/corydolphin/flask-cors
advisories.mageia.org/MGASA-2025-0286.html
bugs.mageia.org/show_bug.cgi?id=34424
ubuntu.com/security/notices/USN-7612-1
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1713
ubuntu.com/security/CVE-2024-1681
cve.org/CVERecord?id=CVE-2024-1681
ubuntu.com/security/CVE-2024-6221
ubuntu.com/security/CVE-2024-6839
ubuntu.com/security/CVE-2024-6844
ubuntu.com/security/CVE-2024-6866
suse.com/security/cve/CVE-2024-1681
suse.com/security/cve/CVE-2020-25032