Vulnerability · Published Apr 19, 2024 · Assigned by @huntr_ai

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

Medium 5.3

In plain English

A medium-severity security flaw in corydolphin/flask-cors from corydolphin. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)5.3Medium
Exploit odds (30 days)0.6%top 52.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-flask-cors3.0.10-2+deb12u1DEBIAN-CVE-2024-1681
Debian:13python-flask-cors4.0.1-1DEBIAN-CVE-2024-1681
Debian:14python-flask-cors4.0.1-1DEBIAN-CVE-2024-1681
PyPIflask-cors4.0.1GHSA-84pr-m4jr-85g5
PyPIflask-corsno fix listedPYSEC-2024-271
Ubuntu:22.04:LTSpython-flask-cors3.0.9-2ubuntu0.1USN-7612-1
Ubuntu:22.04:LTSpython-flask-cors3.0.9-2ubuntu0.1UBUNTU-CVE-2024-1681

Affected products (as reported)

VendorProductVersions
corydolphin corydolphin/flask-cors unspecified – through latest

Weakness: CWE-117 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References