CVE-2024-6839 Improper Regex Path Matching in corydolphin/flask-cors
MediumCVSS 5.3
EPSS 0.74%
- 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.0.1 contains an improper regex path matching vulnerability. The plugin prioritizes longer regex patterns over more specific ones when matching paths, which can lead to less restrictive CORS policies being applied to sensitive endpoints. This mismatch in regex pattern priority allows unauthorized cross-origin access to sensitive data or functionality, potentially exposing confidential information and increasing the risk of unauthorized actions by malicious actors.
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.1-1 | 6.0.1-1 | Fixed |
| debian/python-flask-cors(Debian 14) | < 6.0.1-1 | 6.0.1-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.1-1 | 6.0.1-1 |
| debian/python-flask-cors(Debian:14) | < 6.0.1-1 | 6.0.1-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-6839 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7612-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking