Vulnerabilities in pkg:pypi/validators

PACKAGE
Advisory Identifier: GHSA-5qcg-w2cc-xffw
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/validators

1 Known Advisory Record(s)

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

CVE Identifier CVE-2019-19588
GHSA Identifier GHSA-5qcg-w2cc-xffw
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
Affected Product Validators
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

validators fixed: 0.12.6
pip install validators>=0.12.6
Verify Direct and Transitive Dependencies

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

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.

CVE-2019-19588 Affected Validators Versions

1 component(s)
Fixed Versions:
0.12.6
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?
CVE-2019-19588 is a security vulnerability in Validators involving Uncontrolled resource consumption in validators Python package under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop').
Which Validators versions are affected?
Affected versions include releases prior to 0.12.6 across affected packages: validators.
What version fixes CVE-2019-19588?
Upgrading to 0.12.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is validators affected?
Yes, validators is affected in releases prior to 0.12.6. Upgrade your dependency to 0.12.6 or later.
What is the CVSS score of CVE-2019-19588?
CVE-2019-19588 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2019-19588?
CVE-2019-19588 is classified under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') (The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.).
How can I check PyPI dependencies for CVE-2019-19588?
Run the dependency tree command: 'pip show validators'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}