MEDIUM6.5
PYSEC-2026-2859
Paste Script has improper group memberships permissions
Quick fix
PYSEC-2026-2859 — pastescript: upgrade to the fixed version with the command below.
pip install --upgrade 'pastescript>=2.0.1'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2012-0878[ADVISORY]
- https://github.com/cdent/pastescript/commit/b5f36f2995e1ae117cc53d2bd458d7fb33e4cabe[WEB]
- https://bitbucket.org/ianb/pastescript/changeset/a19e462769b4[WEB]
- https://bitbucket.org/ianb/pastescript/pull-request/3/fix-group-permissions-for-pastescriptserve[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=796790[WEB]
- https://github.com/pasteorg/pastescript[PACKAGE]
- https://github.com/pypa/advisory-database/tree/main/vulns/paste/PYSEC-2012-15.yaml[WEB]
- https://web.archive.org/web/20140723093519/http://secunia.com/advisories/50410[WEB]
- https://web.archive.org/web/20140803132259/http://secunia.com/advisories/48812[WEB]
- http://groups.google.com/group/paste-users/browse_thread/thread/2aa651ba331c2471[WEB]
- http://rhn.redhat.com/errata/RHSA-2012-1206.html[WEB]
- http://www.openwall.com/lists/oss-security/2012/02/23/1[WEB]
- http://www.openwall.com/lists/oss-security/2012/02/23/4[WEB]
- https://pypi.org/project/pastescript[PACKAGE]
- https://github.com/advisories/GHSA-27px-qpmj-qg38[ADVISORY]