corydolphin flask-cors up to 4.0.2/5.0.1 flask_cors/core.py parse_resources resolution of path

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
4.6$0-$5k0.00

Summaryinfo

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.

Detailsinfo

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.

Productinfo

Type

Vendor

Name

Version

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 4.6
VulDB 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): 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Resolution of path
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 237621
Nessus Name: Debian dla-4197 : python3-flask-cors - security update

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: flask-cors 6.0.0
Patch: 3334f91060691e869fa2e47888ad94d2c4025ca8

Timelineinfo

07/17/2024 🔍
03/20/2025 +246 days 🔍
03/20/2025 +0 days 🔍
08/01/2025 +134 days 🔍

Sourcesinfo

Product: github.com

Advisory: huntr.com
Status: Confirmed

CVE: CVE-2024-6839 (🔍)
GCVE (CVE): GCVE-0-2024-6839
GCVE (VulDB): GCVE-100-300455
EUVD: 🔍

Entryinfo

Created: 03/20/2025 15:22
Updated: 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.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!