Vulnerabilities in pkg:pypi/Flask
PACKAGECVE-2019-1010083 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Flask libraries in the PyPI ecosystem. The issue involves pallets project flask is vulnerable to denial of service via unexpected memory usage. Remediation is available by upgrading affected packages to version 1.0.
pkg:pypi/Flask
Vulnerability advisories affecting package pkg:pypi/Flask. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-5wv5-4vpf-pj6m | CVE-2019-1010083 | HIGH | Pallets Project Flask is vulnerable to Denial of Service via Unexpected memory usage |
| GHSA-562c-5r94-xh97 | CVE-2018-1000656 | HIGH | Flask is vulnerable to Denial of Service via incorrect encoding of JSON data |
| GHSA-m2qf-hxjv-5gpq | CVE-2023-30861 | HIGH | Flask vulnerable to possible disclosure of permanent session cookie due to missing Vary: Cookie header |
CVE-2019-1010083 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2019-1010083
To remediate this vulnerability, upgrade all affected Flask dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install Flask>=1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show Flask
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2019-1010083, inspect your installed packages using pip:
pip show Flask
Analyze the terminal output to locate any version of Flask in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0), your application is affected.
Note: The pip show Flask command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Flask, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-1010083 Affected Flask Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Flask
|
PyPI |
< 1.0
|
1.0
|
References
Frequently Asked Questions
What is CVE-2019-1010083?
Which Flask versions are affected?
What version fixes CVE-2019-1010083?
Is Flask affected?
What is the CVSS score of CVE-2019-1010083?
What CWE is associated with CVE-2019-1010083?
How can I check PyPI dependencies for CVE-2019-1010083?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5wv5-4vpf-pj6m",
"modified" : "2024-09-20T21:04:58Z",
"published" : "2019-07-19T16:12:46Z",
"aliases" : [ "CVE-2019-1010083" ],
"summary" : "Pallets Project Flask is vulnerable to Denial of Service via Unexpected memory usage",
"details" : "The Pallets Project Flask before 1.0 is affected by unexpected memory usage. The impact is denial of service. The attack vector is crafted encoded JSON data. The fixed version is 1. NOTE this may overlap CVE-2018-1000656.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Flask"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-1010083"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-5wv5-4vpf-pj6m"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pallets/flask"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/flask/PYSEC-2019-179.yaml"
}, {
"type" : "WEB",
"url" : "https://www.palletsprojects.com/blog/flask-1-0-released"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-07-19T04:59:45Z",
"nvd_published_at" : "2019-07-17T14:15:00Z"
}
}