GHSA-2cv2-jjxv-85fg: Funcdesc Malicious Code Vulnerability

HIGH
CWE-506 CWE-509
Published
Advisory Summary

GHSA-2cv2-jjxv-85fg is a HIGH malicious code vulnerability (CWE-506: Embedded Malicious Code) affecting Funcdesc libraries in the PyPI ecosystem. The issue involves malicious code in funcdesc (pypi). Remediation is available in the latest vendor maintenance releases.

GHSA-2cv2-jjxv-85fg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2cv2-jjxv-85fg
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-506: Embedded Malicious Code
Affected Product Funcdesc
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-2cv2-jjxv-85fg

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

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

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-2cv2-jjxv-85fg, inspect your installed packages using pip:

pip show funcdesc

Analyze the terminal output to locate any version of Funcdesc 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 funcdesc command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In Funcdesc, 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

Part of the "Hades" wave of the Shai-Hulud supply-chain campaign. On 2026-06-08, malicious phantom releases of funcdesc were published to PyPI using stolen credentials. The package executes a bundled JavaScript payload (via the Bun runtime) on import that harvests and exfiltrates credentials and attempts self-propagation. This entry is a summary; behavior may not be fully characterized here. See the linked references for detailed analysis and indicators of compromise.

GHSA-2cv2-jjxv-85fg Affected Funcdesc Versions

2 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
funcdesc
PyPI
0.2.2
All 1 versions
0.2.2
None specified
funcdesc
PyPI
0.2.3
All 1 versions
0.2.3
None specified

References

Frequently Asked Questions

What is GHSA-2cv2-jjxv-85fg?
GHSA-2cv2-jjxv-85fg is a security vulnerability in Funcdesc involving Malicious code in funcdesc (PyPI) under CWE-506: Embedded Malicious Code.
Which Funcdesc versions are affected?
Affected versions include releases prior to current release patches across affected packages: funcdesc.
What version fixes GHSA-2cv2-jjxv-85fg?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is funcdesc affected?
Yes, funcdesc is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-2cv2-jjxv-85fg?
GHSA-2cv2-jjxv-85fg is classified under CWE-506: Embedded Malicious Code (The product contains code that appears to be malicious in nature.).
How can I check PyPI dependencies for GHSA-2cv2-jjxv-85fg?
Run the dependency tree command: 'pip show funcdesc'. 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-2cv2-jjxv-85fg",
  "modified" : "2026-12-01T23:10:06Z",
  "published" : "2026-12-01T23:10:06Z",
  "aliases" : [ ],
  "summary" : "Malicious code in funcdesc (PyPI)",
  "details" : "Part of the \"Hades\" wave of the Shai-Hulud supply-chain campaign. On 2026-06-08, malicious phantom releases of funcdesc were published to PyPI using stolen credentials. The package executes a bundled JavaScript payload (via the Bun runtime) on import that harvests and exfiltrates credentials and attempts self-propagation. This entry is a summary; behavior may not be fully characterized here. See the linked references for detailed analysis and indicators of compromise.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "funcdesc"
    },
    "versions" : [ "0.2.2" ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "funcdesc"
    },
    "versions" : [ "0.2.3" ]
  } ],
  "references" : [ {
    "type" : "PACKAGE",
    "url" : "https://github.com/Nanguage/funcdesc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/funcdesc/PYSEC-2026-591.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://inspector.pypi.io/project/funcdesc/0.2.3/packages/ee/07/a3a5d522d90245b00ba11d6f40608c46ce63b4dad69e51f1a197323c4053/funcdesc-0.2.3-py3-none-any.whl//funcdesc-setup.pth"
  }, {
    "type" : "WEB",
    "url" : "https://www.endorlabs.com/learn/shai-hulud-hades-wave-hits-six-pypi-bioinformatics-packages"
  }, {
    "type" : "WEB",
    "url" : "https://www.stepsecurity.io/blog/the-hades-campaign-pypi-packages"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-506", "CWE-509" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-01T23:10:06Z",
    "nvd_published_at" : null
  }
}