# CVE-2024-1681: Log Injection Vulnerability in corydolphin/flask-cors

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-19T19:37:27.998Z
- Modified: 2026-09-10T03:50:12.410Z
- Also known as: GHSA-84pr-m4jr-85g5, PYSEC-2024-271
- Weaknesses: CWE-117
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- corydolphin corydolphin/flask-cors: from unspecified up to latest
- corydolphin flask-cors: -; 4.0.0
- flask-cors (PyPI): before 4.0.1; up to 4.0.0

## Every score

- @huntr_ai: 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`
- GitHub: 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`
- NVD: 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`
- PyPA Advisory Database: 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`

## References

- <https://huntr.com/bounties/25a7a0ba-9fa2-4777-acb6-03e5539bb644> (exploit, evidence, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-1681> (advisory)
- <https://github.com/corydolphin/flask-cors> (package)
- <https://github.com/corydolphin/flask-cors/blob/40acc8092332dfed4bb54d7a4f89a6d479466de7/flask_cors/extension.py#L194> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-271.yaml> (web)
- <https://github.com/advisories/GHSA-84pr-m4jr-85g5> (advisory)

## Sources

- CVE List: [CVE-2024-1681](https://www.cve.org/CVERecord?id=CVE-2024-1681), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-84pr-m4jr-85g5](https://github.com/advisories/GHSA-84pr-m4jr-85g5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-1681](https://nvd.nist.gov/vuln/detail/CVE-2024-1681), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-271](https://osv.dev/vulnerability/PYSEC-2024-271), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-1681 · Whole record: https://cve.day/CVE-2024-1681.json · Rebuilt by cve.day 2026-11-25T22:58:39.491Z
