Advisory

GHSA-84pr-m4jr-85g5

Also known as: CVE-2024-1681, PYSEC-2024-271

Summary

flask-cors vulnerable to log injection when the log level is set to debug

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-04-19 21:31 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

flask-cors

PyPI · All systems

Affected

  • introduced 0, fixed 4.0.1 (ecosystem)

Fixed versions

4.0.1

Fix

  • Fixed version 4.0.1
    pip install --upgrade flask-cors==4.0.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences