Paste Script has improper group memberships permissions
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | paste | < 1.7.5.1 | 1.7.5.1 |
| Python (PyPI) | pastescript | < 2.0.1 | 2.0.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2012-0878
- https://github.com/cdent/pastescript/commit/b5f36f2995e1ae117cc53d2bd458d7fb33e4cabe
- https://bitbucket.org/ianb/pastescript/changeset/a19e462769b4
- https://bitbucket.org/ianb/pastescript/pull-request/3/fix-group-permissions-for-pastescriptserve
- https://bugzilla.redhat.com/show_bug.cgi?id=796790
- https://github.com/pasteorg/pastescript
- https://github.com/pypa/advisory-database/tree/main/vulns/paste/PYSEC-2012-15.yaml
- https://web.archive.org/web/20140723093519/http://secunia.com/advisories/50410
- https://web.archive.org/web/20140803132259/http://secunia.com/advisories/48812
- http://groups.google.com/group/paste-users/browse_thread/thread/2aa651ba331c2471
- http://rhn.redhat.com/errata/RHSA-2012-1206.html
- http://www.openwall.com/lists/oss-security/2012/02/23/1
- http://www.openwall.com/lists/oss-security/2012/02/23/4
- http://secunia.com/advisories/48812
- http://secunia.com/advisories/50410
- https://github.com/advisories/GHSA-27px-qpmj-qg38
- https://pypi.org/project/pastescript
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N- Weakness (CWE)
-- Platform
- Python (PyPI)
- Package
paste, pastescript- Disclosed
- 01.05.2012
- Updated
- 11.10.2026 14:18
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2012-15 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-27px-qpmj-qg38 - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2026-2859 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: pastescript
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.