CVE-2012-0878
Paste Script has improper group memberships permissions
Also known as GHSA-27px-qpmj-qg38, PYSEC-2012-15, PYSEC-2026-2859
Mitigation
- Upgrade pastescript to 2.0.1 or later.
- Upgrade paste to 1.7.5.1 or later.
Who should check
- Projects that depend on PyPI package pastescript (< 2.0.1)
- Projects that depend on PyPI package paste (< 1.7.5.1)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- pastescript < 2.0.1; paste < 1.7.5.1
- Fixed in
- 2.0.1, 1.7.5.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.1 (v2.0, NVD)AV:N/AC:H/Au:N/C:P/I:P/A:P
Show all 6 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Authentication: None
- Confidentiality impact: Partial
- Integrity impact: Partial
- Availability impact: Partial
- EPSS
- 4.03% chance of exploitation in 30 days (percentile 91, 2026-11-26)
- CWE
- CWE-264
- Modified
Description
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI pastescript | < 2.0.1 | 2.0.1 | osv |
| PyPI paste | < 1.7.5.1 | 1.7.5.1 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2012-0878. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2012-0878.md Affected: pastescript < 2.0.1; paste < 1.7.5.1 Fixed in: 2.0.1, 1.7.5.1 Steps: 1. Search this machine and project for pastescript (PyPI), paste (PyPI), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- https://bugzilla.redhat.com/show_bug.cgi?id=796790
- http://www.openwall.com/lists/oss-security/2012/02/23/4
- http://groups.google.com/group/paste-users/browse_thread/thread/2aa651ba331c2471
- 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
- https://pypi.org/project/pastescript
FAQ
Is CVE-2012-0878 being exploited?
There is no confirmed exploitation: CVE-2012-0878 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 4.03% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2012-0878?
Medium: CVSS 5.1 (v2.0, scored by NVD). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2012-0878?
pastescript < 2.0.1; paste < 1.7.5.1.
Is there a fix for CVE-2012-0878?
Yes. Fixed in 2.0.1, 1.7.5.1. Upgrade pastescript to 2.0.1 or later. Upgrade paste to 1.7.5.1 or later.
How do I check if I'm affected by CVE-2012-0878?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.