Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2024-6221
Python vulnerability analysis and mitigation

Overview

A vulnerability has been identified in corydolphin/flask-cors version 4.0.1 where the Access-Control-Allow-Private-Network CORS header is set to true by default, without any configuration option. This security flaw was assigned CVE-2024-6221 and was published on August 18, 2024. The vulnerability received a CVSS v3.1 base score of 7.5 (HIGH) from NIST and 6.5 (MEDIUM) from huntr.dev (NVD Database).

Technical details

The vulnerability stems from the default configuration of the Access-Control-Allow-Private-Network CORS header being set to true without providing users the ability to configure this setting. The severity assessment varies between sources, with NIST assigning a CVSS v3.1 vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (7.5 HIGH), while huntr.dev rates it as CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N (6.5 MEDIUM). The vulnerability is classified under CWE-284 (Improper Access Control) (NVD Database).

Impact

The vulnerability can expose private network resources to unauthorized external access. This exposure could potentially lead to significant security risks including data breaches, unauthorized access to sensitive information, and potential network intrusions (NVD Database).

Exploitability

The vulnerability is remotely exploitable (Network attack vector) with low attack complexity and requires no privileges or user interaction according to the NIST assessment (NVD Database).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

python-flask-cors

Fixed

bullseye

python-flask-cors

Fixed

sid

python-flask-cors: 5.0.0-1

Fixed

trixie

python-flask-cors: 5.0.0-1

Fixed

SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66455CRITICAL9.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-63374CRITICAL9.3
  • Python logoPython
  • anyio
NoYesSep 18, 2026
CVE-2026-59163CRITICAL9.1
  • Python logoPython
  • mnemosyne-memory
NoYesSep 18, 2026
CVE-2026-33625HIGH8.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-64847MEDIUM6.8
  • Python logoPython
  • anyio
NoYesSep 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management