5.3medium
Log Injection Vulnerability in corydolphin/flask-cors
- Severity
- 5.3medium CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.57% (higher than 48% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-84pr-m4jr-85g5PYSEC-2024-271
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| corydolphin corydolphin/flask-cors | from unspecified up to latest | CVE List |
| corydolphin flask-cors | -, 4.0.0 | CVE List, NVD |
| flask-cors (PyPI) | before 4.0.1, up to 4.0.0 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| @huntr_ai | 5.3medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 5.3medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| PyPA Advisory Database | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
corydolphin/flask-cors es vulnerable a la inyección de registros cuando el nivel de registro está configurado para depurar. Un atacante puede inyectar entradas de registro falsas en el archivo de registro enviando una solicitud GET especialmente manipulada que contenga una secuencia CRLF en la ruta de la solicitud. Esta vulnerabilidad permite a los atacantes corromper archivos de registro, cubriendo potencialmente pistas de otros ataques, confundiendo las herramientas de posprocesamiento de registros y falsificando entradas de registro. El problema se debe a una neutralización inadecuada de la salida de los registros.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-1681 changed 2025-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-84pr-m4jr-85g5 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-1681 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-271 changed 2026-06-10 | CC-BY-4.0 |