CVE-2024-6839
Flask-Cors Project Flask-Cors 4.0.1
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NSummary
CVE-2024-6839 is a medium-severity Improper Resolution of Path Equivalence (CWE-41) vulnerability in Flask-Cors Project Flask-Cors. Its CVSS base score is 5.3 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Data from Local System (T1005); ranked at the 48th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) and AC-3 (Access Enforcement) — see the control section below for these in your framework.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-6973
Vulnerability Data
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Input validation of file paths directly rejects or normalizes the special-character manipulations that create equivalent names.
Proper enforcement of file access authorizations structurally blocks disclosure when equivalent paths are presented.
Mitigating Controls (NIST CSF 2.0) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.
Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.
Secure coding standards directly require canonical path resolution and input sanitization to prevent equivalence attacks.
Security testing can detect path-equivalence flaws before release, partially fulfilling the control.
Secure development lifecycle includes path-handling requirements that reduce equivalence-based disclosure.
Application security requirements can mandate canonicalization and input validation to block path equivalence.
Secure architecture principles call for safe file-system abstractions that mitigate path traversal risks.
Information access restriction limits what files can be reached, indirectly reducing impact of path-equivalence exploits.