Vulnerabilities in pkg:pypi/validators
PACKAGECVE-2019-19588 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')) affecting Validators libraries in the PyPI ecosystem. The issue involves uncontrolled resource consumption in validators python package. Remediation is available by upgrading affected packages to version 0.12.6.
pkg:pypi/validators
Vulnerability advisories affecting package pkg:pypi/validators. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-5qcg-w2cc-xffw | CVE-2019-19588 | HIGH | Uncontrolled resource consumption in validators Python package |
CVE-2019-19588 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-19588
To remediate this vulnerability, upgrade all affected Validators 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 validators>=0.12.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show validators
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2019-19588, inspect your installed packages using pip:
pip show validators
Analyze the terminal output to locate any version of Validators in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.12.6), your application is affected.
Note: The pip show validators command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop'), where the product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. In Validators, 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-19588 Affected Validators Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
validators
|
PyPI |
≥ 0.12.2
< 0.12.6
|
0.12.6
|
References
Frequently Asked Questions
What is CVE-2019-19588?
Which Validators versions are affected?
What version fixes CVE-2019-19588?
Is validators affected?
What is the CVSS score of CVE-2019-19588?
What CWE is associated with CVE-2019-19588?
How can I check PyPI dependencies for CVE-2019-19588?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5qcg-w2cc-xffw",
"modified" : "2024-11-18T22:16:34Z",
"published" : "2020-01-21T20:32:09Z",
"aliases" : [ "CVE-2019-19588" ],
"summary" : "Uncontrolled resource consumption in validators Python package",
"details" : "The validators package 0.12.2 through 0.12.5 for Python enters an infinite loop when validators.domain is called with a crafted domain string. This is fixed in 0.12.6.",
"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" : "validators"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.12.2"
}, {
"fixed" : "0.12.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-19588"
}, {
"type" : "WEB",
"url" : "https://github.com/kvesteri/validators/issues/86"
}, {
"type" : "WEB",
"url" : "https://github.com/python-validators/validators/issues/86"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-5qcg-w2cc-xffw"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/validators/PYSEC-2019-134.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/python-validators/validators"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-835" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-01-21T20:31:40Z",
"nvd_published_at" : null
}
}