Security Resilience

CVE-2024-6839

Flask-Cors Project Flask-Cors 4.0.1

Public PoC
Published
20 March 2025
Modified
03 November 2025
CVSS Score v3.1 5.3
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS Score 0.0074 56th percentile
Risk Priority 45 floored blend · peak EPSS

CVSS 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

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

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1027.010 Command Obfuscation Stealth
Adversaries may obfuscate content during command execution to impede detection.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-6866Same product: Flask-Cors Project Flask-Cors
CVE-2024-6844Same product: Flask-Cors Project Flask-Cors
CVE-2025-21268Shared CWE-41
CVE-2025-54107Shared CWE-41
CVE-2023-36396Shared CWE-41
CVE-2025-21219Shared CWE-41
CVE-2025-58290Shared CWE-41
CVE-2025-0115Shared CWE-41
CVE-2025-21189Shared CWE-41
CVE-2025-21328Shared CWE-41

Affected Assets

flask-cors project
flask-cors
4.0.1

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.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly prevent introduction of improper path-resolution logic in software.

PR.IR-01 partial match
blocks

Path-equivalence flaws enable unauthorized file access that network segmentation and logical access controls can partially block.

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.

finds

Security testing can detect path-equivalence flaws before release, partially fulfilling the control.

prevents

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.

prevents

Secure coding standards directly require canonical path resolution and input sanitization to prevent equivalence attacks.

prevents

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.

finds

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.

References