Skip to main content
CVE-2024-1681VulnerabilityPublished

CVE-2024-1681: corydolphin/flask-cors · Log Injection

Affects corydolphin/flask-corsSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 47% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

AI-suggested

To mitigate CVE-2024-1681, European organizations should: 1) Immediately review and disable debug-level logging in production environments using corydolphin/flask-cors to prevent exposure to log injection. 2) Implement input validation and sanitization routines to neutralize CRLF and other control characters in HTTP request paths before logging. 3) Employ structured logging frameworks that inherently escape or encode log entries to prevent injection. 4) Monitor logs for suspicious entries that may indicate injection attempts or log tampering. 5) Keep the corydolphin/flask-cors library updated and track vendor advisories for patches addressing this vulnerability. 6) Integrate log integrity verification mechanisms, such as cryptographic signing or append-only logging, to detect unauthorized modifications. 7) Conduct security awareness training for developers on secure logging practices and the risks of improper output neutralization. These steps go beyond generic advice by focusing on both configuration management and secure coding practices specific to logging.

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.

References

Community reviews

Loading reviews…