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:NCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
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 Exploit Public-Facing Application (T1190); ranked in the top 44% of CVEs by exploit likelihood; 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
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
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)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing can detect path-equivalence flaws before release, partially fulfilling the control.
Training developers about path canonicalization and special-character handling reduces some instances of this implementation defect, but it is a specific technical detail that most developers do not encounter or internalize, so the effect is a minority one — consistent with the A.6.3 vs CWE-598 anchor at the same rung.
Secure coding standards directly require canonical path resolution and input sanitization to prevent equivalence attacks.
A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25 to 8.29), so it reduces ordinary software implementation weaknesses in delivered code the way those practices do; CWE-41 is an ordinary implementation defect in path handling, and the same `partial` ceiling the owner set for A.8.30 -> CWE-134 applies here.
A.8.8's reach is DISCLOSURE — it sees only instances that carry a vendor-published flaw. CWE-41 commonly surfaces as CVEs (many observed examples listed), so the disclosed share is non-trivial, but it remains a minority of latent instances because most path-equivalence defects live in first-party code that no advisory has been published about.