Vulnerabilities in pkg:pypi/spam

PACKAGE
Advisory Summary

GHSA-2r6g-7r83-jg72 is a HIGH `spam` project on pypi compromised, vulnerability (General Security Weakness) affecting Spam libraries in the PyPI ecosystem. The issue involves `spam` project on pypi compromised, malicious releases made. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/spam

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/spam. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-2r6g-7r83-jg72 - HIGH `spam` project on PyPI compromised, malicious releases made

GHSA-2r6g-7r83-jg72 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2r6g-7r83-jg72
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Spam
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-2r6g-7r83-jg72

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

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

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-2r6g-7r83-jg72, inspect your installed packages using pip:

pip show spam

Analyze the terminal output to locate any version of Spam 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 spam 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 Spam, 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 `spam` project on PyPI was taken over via user account compromise via a phishing attack and a new malicious release made which contained code which some environment variables and downloaded and ran malware at install time

GHSA-2r6g-7r83-jg72 Affected Spam Versions

2 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
spam
PyPI
2.0.2
All 1 versions
2.0.2
None specified
spam
PyPI
4.0.2
All 1 versions
4.0.2
None specified

References

Frequently Asked Questions

What is GHSA-2r6g-7r83-jg72?
GHSA-2r6g-7r83-jg72 is a security vulnerability in Spam involving `spam` project on PyPI compromised, malicious releases made under General Security Weakness.
Which Spam versions are affected?
Affected versions include releases prior to current release patches across affected packages: spam.
What version fixes GHSA-2r6g-7r83-jg72?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is spam affected?
Yes, spam is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-2r6g-7r83-jg72?
GHSA-2r6g-7r83-jg72 is classified under General Security Weakness.
How can I check PyPI dependencies for GHSA-2r6g-7r83-jg72?
Run the dependency tree command: 'pip show spam'. 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-2r6g-7r83-jg72",
  "modified" : "2024-08-30T23:37:36Z",
  "published" : "2024-08-30T23:37:36Z",
  "aliases" : [ ],
  "summary" : "`spam` project on PyPI compromised, malicious releases made",
  "details" : "The `spam` project on PyPI was taken over via user account compromise via a phishing attack and a new malicious release made which contained code which some environment variables and downloaded and ran malware at install time",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "spam"
    },
    "versions" : [ "2.0.2" ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "spam"
    },
    "versions" : [ "4.0.2" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/spam/PYSEC-2022-251.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://twitter.com/pypi/status/1562442207079976966"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-30T23:37:36Z",
    "nvd_published_at" : null
  }
}