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

Published Apr 19, 2024
·
Updated

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 Software

2 affected componentsFixes available
pip/flask-cors<=4.0.0
4.0.1
corydolphin flask-cors=4.0.0

Event History

Apr 19, 2024
CVE Published
via MITRE·07:37 PM
Data Sourced
via MITRE·07:37 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
Affected Software
Advisory Published
via GitHub·09:31 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-1681?

CVE-2024-1681 is classified as a moderate severity vulnerability due to its potential for log injection.

2

How do I fix CVE-2024-1681?

To fix CVE-2024-1681, upgrade flask-cors to version 4.0.1 or later.

3

Who is affected by CVE-2024-1681?

CVE-2024-1681 affects users of flask-cors versions up to and including 4.0.0.

4

What type of vulnerability is CVE-2024-1681?

CVE-2024-1681 is a log injection vulnerability that can be exploited through specially crafted GET requests.

5

What can attackers achieve with CVE-2024-1681?

Attackers can inject fake log entries into the log file, potentially leading to log corruption.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203