VDB
Sign up
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

PyPI/pastescript
Introduced in: 0Fixed in: 2.0.1
Fixpip install --upgrade 'pastescript>=2.0.1'

References