CVE-2013-1630: Pyshop Pyshop Vulnerable To Man-in-the-middle Attacks Vulnerability

HIGH
Advisory Identifier: GHSA-f594-f3v3-g649
CWE-20
Published
Advisory Summary

CVE-2013-1630 is a HIGH pyshop vulnerable to man-in-the-middle attacks vulnerability (CWE-20: Improper Input Validation) affecting Pyshop libraries in the PyPI ecosystem. The issue involves pyshop vulnerable to man-in-the-middle attacks due to using http to retrieve packages from the pypi repository. Remediation is available by upgrading affected packages to version 0.7.1.

CVE-2013-1630 at a Glance

CVE Identifier CVE-2013-1630
GHSA Identifier GHSA-f594-f3v3-g649
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Pyshop
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2013-1630

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

pyshop fixed: 0.7.1
pip install pyshop>=0.7.1
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 pyshop

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2013-1630, inspect your installed packages using pip:

pip show pyshop

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Pyshop, 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

pyshop before 0.7.1 uses HTTP to retrieve packages from the PyPI repository, and does not perform integrity checks on package contents, which allows man-in-the-middle attackers to execute arbitrary code via a crafted response to a download operation.

CVE-2013-1630 Affected Pyshop Versions

1 component(s)
Fixed Versions:
0.7.1
Product / Package Ecosystem Affected Versions Fixed Version
pyshop
PyPI
< 0.7.1
0.7.1

References

Frequently Asked Questions

What is CVE-2013-1630?
CVE-2013-1630 is a security vulnerability in Pyshop involving pyshop vulnerable to man-in-the-middle attacks due to using HTTP to retrieve packages from the PyPI repository under CWE-20: Improper Input Validation.
Which Pyshop versions are affected?
Affected versions include releases prior to 0.7.1 across affected packages: pyshop.
What version fixes CVE-2013-1630?
Upgrading to 0.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pyshop affected?
Yes, pyshop is affected in releases prior to 0.7.1. Upgrade your dependency to 0.7.1 or later.
What CWE is associated with CVE-2013-1630?
CVE-2013-1630 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check PyPI dependencies for CVE-2013-1630?
Run the dependency tree command: 'pip show pyshop'. 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-f594-f3v3-g649",
  "modified" : "2024-10-14T17:11:56Z",
  "published" : "2022-05-17T05:03:06Z",
  "aliases" : [ "CVE-2013-1630" ],
  "summary" : "pyshop vulnerable to man-in-the-middle attacks due to using HTTP to retrieve packages from the PyPI repository",
  "details" : "pyshop before 0.7.1 uses HTTP to retrieve packages from the PyPI repository, and does not perform integrity checks on package contents, which allows man-in-the-middle attackers to execute arbitrary code via a crafted response to a download operation.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pyshop"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1630"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mardiros/pyshop/commit/ffadb0bcdef1e385884571670210cfd6ba351784"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mardiros/pyshop"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mardiros/pyshop/blob/master/CHANGES.txt"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pyshop/PYSEC-2013-10.yaml"
  }, {
    "type" : "WEB",
    "url" : "http://www.reddit.com/r/Python/comments/17rfh7/warning_dont_use_pip_in_an_untrusted_network_a"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-30T14:39:09Z",
    "nvd_published_at" : "2013-08-06T02:52:00Z"
  }
}