Vulnerability · Published Aug 18, 2024 · Assigned by @huntr_ai

CVE-2024-6221Improper Access Control in corydolphin/flask-cors

Medium 6.5

In plain English

A medium-severity improper access control 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.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

A vulnerability in corydolphin/flask-cors version 4.0.1 allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default. This behavior can expose private network resources to unauthorized external access, leading to significant security risks such as data breaches, unauthorized access to sensitive information, and potential network intrusions.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13python-flask-cors5.0.0-1DEBIAN-CVE-2024-6221
Debian:14python-flask-cors5.0.0-1DEBIAN-CVE-2024-6221
PyPIflask-corsno fix listedPYSEC-2024-260
PyPIflask-cors4.0.2PYSEC-2024-71
PyPIflask-cors4.0.2GHSA-hxwh-jpp2-84pm
Ubuntu:22.04:LTSpython-flask-cors3.0.9-2ubuntu0.1USN-7612-1
Ubuntu:22.04:LTSpython-flask-cors3.0.9-2ubuntu0.1UBUNTU-CVE-2024-6221

Affected products (as reported)

VendorProductVersions
corydolphin corydolphin/flask-cors unspecified – before 5.0.0

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

References