CVE-2024-6866 Case-Insensitive Path Matching in corydolphin/flask-cors
HighCVSS 7.5
EPSS 0.72%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
corydolphin/flask-cors version 4.01 contains a vulnerability where the request path matching is case-insensitive due to the use of the try_match function, which is originally intended for matching hosts. This results in a mismatch because paths in URLs are case-sensitive, but the regex matching treats them as case-insensitive. This misconfiguration can lead to significant security vulnerabilities, allowing unauthorized origins to access paths meant to be restricted, resulting in data exposure and potential data leaks.
Upgrade path
8 packages: 7 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| corydolphin/flask-cors | <= latest | after latest | Fixed |
| debian/python-flask-cors(Debian 12) | < 3.0.10-2+deb12u1; = 3.0.10-2 | 3.0.10-2+deb12u1 | Fixed |
| debian/python-flask-cors(Debian 13) | < 6.0.0-1 | 6.0.0-1 | Fixed |
| debian/python-flask-cors(Debian 14) | < 6.0.0-1 | 6.0.0-1 | Fixed |
| pypi flask-cors(PyPI) | < 6.0.0; <= 5.0.1; = 0.0.0.dev3; = 0.0.0.dev4 +48 more | 6.0.0 | Fixed |
| ubuntu/python-flask-cors(Ubuntu 22.04) | < 3.0.9-2ubuntu0.1 | 3.0.9-2ubuntu0.1 | Fixed |
| ubuntu/python-flask-cors(Ubuntu 24.04) | < 4.0.0-1ubuntu0.1~esm1 | 4.0.0-1ubuntu0.1~esm1 | Fixed |
| flask-cors project flask-cors | = 4.0.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi flask-cors(PyPI) | < 6.0.0 | 6.0.0 |
| pypi flask-cors(PyPI) | = 0.0.0.dev3 | No fix listed |
| pypi flask-cors(PyPI) | = 0.0.0.dev4 | No fix listed |
| pypi flask-cors(PyPI) | = 1.0 | No fix listed |
| pypi flask-cors(PyPI) | = 1.1 | No fix listed |
| pypi flask-cors(PyPI) | = 1.1.1 | No fix listed |
| pypi flask-cors(PyPI) | = 1.1.2 | No fix listed |
| pypi flask-cors(PyPI) | = 1.1.3 | No fix listed |
| pypi flask-cors(PyPI) | = 1.10.0 | No fix listed |
| pypi flask-cors(PyPI) | = 1.10.1 | No fix listed |
| pypi flask-cors(PyPI) | = 1.10.2 | No fix listed |
| pypi flask-cors(PyPI) | = 1.10.3 | No fix listed |
| pypi flask-cors(PyPI) | = 1.2.0 | No fix listed |
| pypi flask-cors(PyPI) | = 1.2.1 | No fix listed |
| pypi flask-cors(PyPI) | = 1.3.0 | No fix listed |
| pypi flask-cors(PyPI) | = 1.3.1 | No fix listed |
| pypi flask-cors(PyPI) | = 1.4.0 | No fix listed |
| pypi flask-cors(PyPI) | = 1.5.0 | No fix listed |
| pypi flask-cors(PyPI) | = 1.6.0 | No fix listed |
| pypi flask-cors(PyPI) | = 1.6.1 | No fix listed |
| pypi flask-cors(PyPI) | = 1.7.0 | No fix listed |
| pypi flask-cors(PyPI) | = 1.7.1 | No fix listed |
| pypi flask-cors(PyPI) | = 1.7.2 | No fix listed |
| pypi flask-cors(PyPI) | = 1.7.3 | No fix listed |
| pypi flask-cors(PyPI) | = 1.7.4 | No fix listed |
Show 35 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi flask-cors(PyPI) | = 1.8.0 | No fix listed |
| pypi flask-cors(PyPI) | = 1.8.1 | No fix listed |
| pypi flask-cors(PyPI) | = 1.9.0 | No fix listed |
| pypi flask-cors(PyPI) | = 2.0.0 | No fix listed |
| pypi flask-cors(PyPI) | = 2.0.0rc1 | No fix listed |
| pypi flask-cors(PyPI) | = 2.0.1 | No fix listed |
| pypi flask-cors(PyPI) | = 2.1.0 | No fix listed |
| pypi flask-cors(PyPI) | = 2.1.1 | No fix listed |
| pypi flask-cors(PyPI) | = 2.1.2 | No fix listed |
| pypi flask-cors(PyPI) | = 2.1.3 | No fix listed |
| pypi flask-cors(PyPI) | = 3.0.0 | No fix listed |
| pypi flask-cors(PyPI) | = 3.0.1 | No fix listed |
| pypi flask-cors(PyPI) | = 3.0.10 | No fix listed |
| pypi flask-cors(PyPI) | = 3.0.2 | No fix listed |
| pypi flask-cors(PyPI) | = 3.0.3 | No fix listed |
| pypi flask-cors(PyPI) | = 3.0.4 | No fix listed |
| pypi flask-cors(PyPI) | = 3.0.6 | No fix listed |
| pypi flask-cors(PyPI) | = 3.0.7 | No fix listed |
| pypi flask-cors(PyPI) | = 3.0.8 | No fix listed |
| pypi flask-cors(PyPI) | = 3.0.9 | No fix listed |
| pypi flask-cors(PyPI) | = 4.0.0 | No fix listed |
| pypi flask-cors(PyPI) | = 4.0.0a0 | No fix listed |
| pypi flask-cors(PyPI) | = 4.0.1 | No fix listed |
| pypi flask-cors(PyPI) | = 4.0.2 | No fix listed |
| pypi flask-cors(PyPI) | = 5.0.0 | No fix listed |
| pypi flask-cors(PyPI) | = 5.0.1 | No fix listed |
| debian/python-flask-cors(Debian:12) | < 3.0.10-2+deb12u1 | 3.0.10-2+deb12u1 |
| debian/python-flask-cors(Debian:12) | = 3.0.10-2 | No fix listed |
| debian/python-flask-cors(Debian:13) | < 6.0.0-1 | 6.0.0-1 |
| debian/python-flask-cors(Debian:14) | < 6.0.0-1 | 6.0.0-1 |
| pypi flask-cors(PyPI) | <= 5.0.1 | No fix listed |
| ubuntu/python-flask-cors(Ubuntu:22.04) | < 3.0.9-2ubuntu0.1 | 3.0.9-2ubuntu0.1 |
| corydolphin/flask-cors | <= latest | No fix listed |
| ubuntu/python-flask-cors(Ubuntu:24.04) | < 4.0.0-1ubuntu0.1~esm1 | 4.0.0-1ubuntu0.1~esm1 |
| flask-cors project flask-cors | = 4.0.1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- github.com
- huntr.com exploit third-party-advisory
- lists.debian.org
- pypi.org product
- github.com vendor-advisory
- Debian Security Tracker CVE-2024-6866 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7612-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking