GHSA-xm4r-5rj9-2pg3: Gratient Gratient 0.5 Contains Credential Harvesting Vulnerability

HIGH
CVSS 7.5
Published
Advisory Summary

GHSA-xm4r-5rj9-2pg3 is a HIGH (CVSS 7.5) gratient 0.5 contains credential harvesting vulnerability (General Security Weakness) affecting Gratient libraries in the PyPI ecosystem. The issue involves gratient 0.5 contains credential harvesting code. Remediation is available in the latest vendor maintenance releases.

GHSA-xm4r-5rj9-2pg3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xm4r-5rj9-2pg3
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification General Security Weakness
Affected Product Gratient
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:H/I:N/A:N).

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 High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-xm4r-5rj9-2pg3

To remediate this vulnerability, upgrade all affected Gratient dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

gratient fixed: Latest secure release
pip install gratient>=Latest secure release
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 gratient

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-xm4r-5rj9-2pg3, inspect your installed packages using pip:

pip show gratient

Analyze the terminal output to locate any version of Gratient in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show gratient command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Gratient, 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

gratient is a user-facing library for generating color gradients of text. Version 0.5 contained obfuscated, malicious code targeting Windows platforms, harvesting information and credentials from the user's system and sending them to a remote server. Services may include Mullvad VPN and Telegram.

GHSA-xm4r-5rj9-2pg3 Affected Gratient Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
gratient
PyPI
0.5
All 1 versions
0.5
None specified

References

Frequently Asked Questions

What is GHSA-xm4r-5rj9-2pg3?
GHSA-xm4r-5rj9-2pg3 is a security vulnerability in Gratient involving gratient 0.5 contains credential harvesting code under General Security Weakness.
Which Gratient versions are affected?
Affected versions include releases prior to current release patches across affected packages: gratient.
What version fixes GHSA-xm4r-5rj9-2pg3?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is gratient affected?
Yes, gratient is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-xm4r-5rj9-2pg3?
GHSA-xm4r-5rj9-2pg3 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:H/I:N/A:N.
What CWE is associated with GHSA-xm4r-5rj9-2pg3?
GHSA-xm4r-5rj9-2pg3 is classified under General Security Weakness.
How can I check PyPI dependencies for GHSA-xm4r-5rj9-2pg3?
Run the dependency tree command: 'pip show gratient'. 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-xm4r-5rj9-2pg3",
  "modified" : "2024-08-30T23:37:05Z",
  "published" : "2024-08-30T23:37:05Z",
  "aliases" : [ ],
  "summary" : "gratient 0.5 contains credential harvesting code",
  "details" : "gratient is a user-facing library for generating color gradients of text.\nVersion 0.5 contained obfuscated, malicious code targeting\nWindows platforms, harvesting information and credentials from the\nuser's system and sending them to a remote server.\nServices may include Mullvad VPN and Telegram.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "gratient"
    },
    "versions" : [ "0.5" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/gratient/PYSEC-2024-1.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://inspector.pypi.io/project/gratient/0.5/packages/c5/c5/353e45fa57fa5f1b2b42fa24a029cdfb018d7263850fb43b6d6352157734/gratient-0.5-py3-none-any.whl/gratient/__init__.py#line.4"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/gratient"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-30T23:37:05Z",
    "nvd_published_at" : null
  }
}