CVE-2024-1681
JSON

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 packageVersionsReported by
corydolphin corydolphin/flask-corsfrom unspecified up to latestCVE List
corydolphin flask-cors-, 4.0.0CVE List, NVD
flask-cors (PyPI)before 4.0.1, up to 4.0.0GitHub Advisory Database, PyPA Advisory Database

All scores

@huntr_ai5.3medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
GitHub5.3medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
PyPA Advisory Database5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Classification

CWE-117

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

SourceRecordLicence
CVE ListCVE-2024-1681 changed 2025-11-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-84pr-m4jr-85g5 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-1681 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-271 changed 2026-06-10CC-BY-4.0