CVE-2024-6221 json
Improper Access Control in corydolphin/flask-cors
published 2024-08-18 2 y ago modified 2026-09-10 1 mo ago also GHSA-hxwh-jpp2-84pm , PYSEC-2024-260 , PYSEC-2024-71 , EUVD-2024-0061
- cvss
- 6.5
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi flask-cors 4.0.2
- corydolphin corydolphin/flask-cors 5.0.0
- python-flask-cors Debian 14, Debian 13 5.0.0-1
debian advisories DEBIAN-CVE-2024-6221
- python-flask-cors Ubuntu 22.04 LTS 3.0.9-2ubuntu0.1
- python-flask-cors Ubuntu Pro 20.04 LTS 3.0.8-2ubuntu0.1+esm1
- python-flask-cors Ubuntu Pro 24.04 LTS 4.0.0-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2024-6221
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/corydolphin/flask-cors@03aa3f8 commit
- github.com/corydolphin/flask-cors@7ae310c commit
- github.com/corydolphin/flask-cors@c851476 commit
- github.com/corydolphin/flask-cors#363 pull request
- github.com/corydolphin/flask-cors#368 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-6221 updated cvss 7.5
flask-cors: Private Network Permission Enabled by default in corydolphin/flask-cors
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.72% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/a42935fc-6f57-4818-bca4-3d528235df4d referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | flask-cors | <4.0.2 |
4.0.2 |
Affected products
- corydolphin corydolphin/flask-cors
- corydolphin flask-cors
Classification
- Weakness
-
- CWE-284 Improper Access Control
References
-
github.com
/corydolphin/flask-cors/commit/03aa3f8e2256437f7bad96422a747b98ab5e31bf
web, patch
-
github.com
/corydolphin/flask-cors/pull/363
web
-
github.com
/corydolphin/flask-cors/pull/368
web
-
github.com
/corydolphin/flask-cors/commit/7ae310c56ac30e0b94fb42129aa377bf633256ec
web
-
github.com
/corydolphin/flask-cors/commit/c8514760cf03fcce16d77f6db7007aad429c4548
web
-
huntr.com
/bounties/a42935fc-6f57-4818-bca4-3d528235df4d
web, exploit, third-party-advisory, evidence
-
nvd.nist.gov
/vuln/detail/CVE-2024-6221
advisory
-
github.com
/corydolphin/flask-cors/issues/362
web
-
github.com
/corydolphin/flask-cors
package
-
github.com
/corydolphin/flask-cors/releases
web
-
github.com
/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-260.yaml
web
-
github.com
/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-71.yaml
web
-
github.com
/advisories/GHSA-hxwh-jpp2-84pm
advisory
Sources
- CVE List CVE-2024-6221
- GitHub Advisory GHSA-hxwh-jpp2-84pm
- NVD CVE-2024-6221
- OSV PYSEC-2024-260
- OSV PYSEC-2024-71
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.