Vulnerabilities in pkg:pypi/paste

PACKAGE
Advisory Identifier: GHSA-27px-qpmj-qg38
Advisory Summary

CVE-2012-0878 is a HIGH (CVSS 6.5) paste script has improper group vulnerability (General Security Weakness) affecting Pastescript libraries in the PyPI ecosystem. The issue involves paste script has improper group memberships permissions. Remediation is available by upgrading affected packages to version 2.0.1, 1.7.5.1.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/paste

2 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-27px-qpmj-qg38 CVE-2012-0878 HIGH Paste Script has improper group memberships permissions
GHSA-7gfc-2v6g-6w9f CVE-2010-2477 MODERATE Paste is vulnerable to Cross-site Scripting via vectors involving a 404 status code

CVE-2012-0878 at a Glance

CVE Identifier CVE-2012-0878
GHSA Identifier GHSA-27px-qpmj-qg38
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification General Security Weakness
Affected Product Pastescript
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2012-0878

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

pastescript fixed: 2.0.1
pip install pastescript>=2.0.1
paste fixed: 1.7.5.1
pip install paste>=1.7.5.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 pastescript

How to Check if You Are Affected

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

pip show pastescript

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

Note: The pip show pastescript 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 Pastescript, 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

Paste Script 1.7.5 and earlier does not properly set group memberships during execution with root privileges, which might allow remote attackers to bypass intended file-access restrictions by leveraging a web application that uses the local filesystem.

CVE-2012-0878 Affected Pastescript Versions

2 component(s)
Fixed Versions:
2.0.11.7.5.1
Product / Package Ecosystem Affected Versions Fixed Version
pastescript
PyPI
< 2.0.1
2.0.1
paste
PyPI
< 1.7.5.1
1.7.5.1

References

Frequently Asked Questions

What is CVE-2012-0878?
CVE-2012-0878 is a security vulnerability in Pastescript involving Paste Script has improper group memberships permissions under General Security Weakness.
Which Pastescript versions are affected?
Affected versions include releases prior to 2.0.1, 1.7.5.1 across affected packages: pastescript, paste.
What version fixes CVE-2012-0878?
Upgrading to 2.0.1, 1.7.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pastescript affected?
Yes, pastescript is affected in releases prior to 2.0.1. Upgrade your dependency to 2.0.1 or later.
Is paste affected?
Yes, paste is affected in releases prior to 1.7.5.1. Upgrade your dependency to 1.7.5.1 or later.
What is the CVSS score of CVE-2012-0878?
CVE-2012-0878 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2012-0878?
CVE-2012-0878 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2012-0878?
Run the dependency tree command: 'pip show pastescript'. 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-27px-qpmj-qg38",
  "modified" : "2024-10-09T20:54:39Z",
  "published" : "2022-05-17T05:12:26Z",
  "aliases" : [ "CVE-2012-0878" ],
  "summary" : "Paste Script has improper group memberships permissions",
  "details" : "Paste Script 1.7.5 and earlier does not properly set group memberships during execution with root privileges, which might allow remote attackers to bypass intended file-access restrictions by leveraging a web application that uses the local filesystem.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pastescript"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "paste"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.5.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-0878"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cdent/pastescript/commit/b5f36f2995e1ae117cc53d2bd458d7fb33e4cabe"
  }, {
    "type" : "WEB",
    "url" : "https://bitbucket.org/ianb/pastescript/changeset/a19e462769b4"
  }, {
    "type" : "WEB",
    "url" : "https://bitbucket.org/ianb/pastescript/pull-request/3/fix-group-permissions-for-pastescriptserve"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=796790"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pasteorg/pastescript"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/paste/PYSEC-2012-15.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20140723093519/http://secunia.com/advisories/50410"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20140803132259/http://secunia.com/advisories/48812"
  }, {
    "type" : "WEB",
    "url" : "http://groups.google.com/group/paste-users/browse_thread/thread/2aa651ba331c2471"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2012-1206.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/02/23/1"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/02/23/4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-30T14:42:19Z",
    "nvd_published_at" : "2012-05-01T19:55:00Z"
  }
}