Gentoo Logo

Py2Play: Remote execution of arbitrary Python code


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200509-09 / py2play
Release Date September 17, 2005
Latest Revision September 05, 2006: 02
Impact high
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
dev-python/py2play <= 0.1.7 >= 0.1.8 All supported architectures

Related bugreports: #103524


A design error in Py2Play allows attackers to execute arbitrary code.

2.  Impact Information


Py2Play is a peer-to-peer network game engine written in Python. Pickling is a Python feature allowing to serialize Python objects into string representations (called pickles) that can be sent over the network.


Arc Riley discovered that Py2Play uses Python pickles to send objects over a peer-to-peer game network, and that clients accept without restriction the objects and code sent by peers.


A remote attacker participating in a Py2Play-powered game can send malicious Python pickles, resulting in the execution of arbitrary Python code on the targeted game client.

3.  Resolution Information


There is no known workaround at this time.


All py2play users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-python/py2play-0.1.8"

4.  References


Page updated September 17, 2005

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.