CVE-2024-6844 Inconsistent CORS Matching Due to Handling of '+' in URL Path in corydolphin/flask-cors
MediumCVSS 5.3
EPSS 0.32%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
A vulnerability in corydolphin/flask-cors version 4.0.1 allows for inconsistent CORS matching due to the handling of the '+' character in URL paths. The request.path is passed through the unquote_plus function, which converts the '+' character to a space ' '. This behavior leads to incorrect path normalization, causing potential mismatches in CORS configuration. As a result, endpoints may not be matched correctly to their CORS settings, leading to unexpected CORS policy application. This can cause unauthorized cross-origin access or block valid requests, creating security vulnerabilities and usability issues.
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-6844 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7612-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking