Vulnerabilities in pkg:pypi/pastescript
PACKAGECVE-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.
pkg:pypi/pastescript
Vulnerability advisories affecting package pkg:pypi/pastescript. 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 |
CVE-2012-0878 at a Glance
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).
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.
pip install pastescript>=2.0.1
pip install paste>=1.7.5.1
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
CVE-2012-0878 Affected Pastescript Versions
2 component(s)| 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?
Which Pastescript versions are affected?
What version fixes CVE-2012-0878?
Is pastescript affected?
Is paste affected?
What is the CVSS score of CVE-2012-0878?
What CWE is associated with CVE-2012-0878?
How can I check PyPI dependencies for CVE-2012-0878?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}