corydolphin flask-cors up to 4.0.2/5.0.1 flask_cors/core.py parse_resources resolution of path
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.6 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as problematic, has been found in corydolphin flask-cors up to 4.0.2/5.0.1. Affected by this issue is the function parse_resources of the file flask_cors/core.py. The manipulation leads to resolution of path.
This vulnerability is referenced as CVE-2024-6839. Remote exploitation of the attack is possible. No exploit is available.
It is advisable to upgrade the affected component.
Details
A vulnerability was found in corydolphin flask-cors up to 4.0.2/5.0.1. It has been rated as problematic. This issue affects the function parse_resources of the file flask_cors/core.py. The manipulation with an unknown input leads to a resolution of path vulnerability. Using CWE to declare the problem leads to CWE-41. The product is vulnerable to file system contents disclosure through path equivalence. Path equivalence involves the use of special characters in file and directory names. The associated manipulations are intended to generate multiple names for the same object. Impacted is confidentiality. The summary by CVE is:
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.
It is possible to read the advisory at huntr.com. The identification of this vulnerability is CVE-2024-6839 since 07/17/2024. The exploitation is known to be easy. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. It demands that the victim is doing some kind of user interaction. Technical details of the vulnerability are known, but there is no available exploit. The attack technique deployed by this issue is T1006 according to MITRE ATT&CK.
The vulnerability scanner Nessus provides a plugin with the ID 237621 (Debian dla-4197 : python3-flask-cors - security update), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 6.0.0 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch 3334f91060691e869fa2e47888ad94d2c4025ca8 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (237621) and EUVD (EUVD-2025-6973). Be aware that VulDB is the high quality source for vulnerability data.
Product
Type
Vendor
Name
Version
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.6VulDB Meta Temp Score: 4.6
VulDB Base Score: 4.3
VulDB Temp Score: 4.1
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 5.3
NVD Vector: 🔍
CNA Base Score: 4.3
CNA Vector (@huntr_ai): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Resolution of pathCWE: CWE-41
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 237621
Nessus Name: Debian dla-4197 : python3-flask-cors - security update
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: flask-cors 6.0.0
Patch: 3334f91060691e869fa2e47888ad94d2c4025ca8
Timeline
07/17/2024 🔍03/20/2025 🔍
03/20/2025 🔍
08/01/2025 🔍
Sources
Product: github.comAdvisory: huntr.com
Status: Confirmed
CVE: CVE-2024-6839 (🔍)
GCVE (CVE): GCVE-0-2024-6839
GCVE (VulDB): GCVE-100-300455
EUVD: 🔍
Entry
Created: 03/20/2025 15:22Updated: 08/01/2025 14:42
Changes: 03/20/2025 15:22 (61), 03/20/2025 19:21 (1), 05/17/2025 23:09 (1), 05/31/2025 17:45 (2), 06/04/2025 07:46 (15), 08/01/2025 14:42 (11)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.