CVE-2024-1681 json
Log Injection Vulnerability in corydolphin/flask-cors
published 2024-04-19 2 y ago modified 2026-09-10 1 mo ago also GHSA-84pr-m4jr-85g5 , PYSEC-2024-271 , EUVD-2024-1152
- cvss
- 5.3
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi flask-cors 4.0.1
- python-flask-cors Debian 12 3.0.10-2+deb12u1
- python-flask-cors Debian 14, Debian 13 4.0.1-1
debian advisories DEBIAN-CVE-2024-1681
- python-flask-cors Ubuntu 22.04 LTS 3.0.9-2ubuntu0.1
- python-flask-cors Ubuntu Pro 20.04 LTS 3.0.8-2ubuntu0.1+esm1
- python-flask-cors Ubuntu Pro 24.04 LTS 4.0.0-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2024-1681
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-Flask-Cors openSUSE Tumbleweed 6.0.2-1.2
- python-Flask-Cors openSUSE Tumbleweed 4.0.1-1.1
opensuse advisories openSUSE-SU-2026:11990-1openSUSE-SU-2024:14293-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-1681 updated cvss 5.3
python-flask-cors: improper output neutralization for logs
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.57% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/25a7a0ba-9fa2-4777-acb6-03e5539bb644 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 3.0 | 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | flask-cors | <4.0.1 <=4.0.0 |
4.0.1 |
Affected products
- corydolphin corydolphin/flask-cors
- corydolphin flask-cors
Classification
- Weakness
-
- CWE-117 Improper Output Neutralization for Logs
References
-
huntr.com
/bounties/25a7a0ba-9fa2-4777-acb6-03e5539bb644
web, exploit, third-party-advisory, evidence
-
lists.debian.org
/debian-lts-announce/2025/05/msg00049.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-1681
advisory
-
github.com
/corydolphin/flask-cors
package
-
github.com
/corydolphin/flask-cors/blob/40acc8092332dfed4bb54d7a4f89a6d479466de7/flask_cors/extension.py#L194
web
-
github.com
/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-271.yaml
web
-
github.com
/advisories/GHSA-84pr-m4jr-85g5
advisory
Sources
- CVE List CVE-2024-1681
- GitHub Advisory GHSA-84pr-m4jr-85g5
- NVD CVE-2024-1681
- OSV PYSEC-2024-271
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.