Description
emitters.py in Django Piston before 0.2.3 and 0.2.x before 0.2.2.1 does not properly deserialize YAML data, which allows remote attackers to execute arbitrary Python code via vectors related to the yaml.load method.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | python-django-piston | 0.2.2-1+squeeze1 | DSA-2344-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django-piston | >= 0.2.0, < 0.2.2.1 | 0.2.2.1 | GHSA-pvhp-v9qp-xf5r |
| PyPI | django-piston | < 0.2.3 | 0.2.3 | PYSEC-2014-24 |
Advisories 1
- DSA-2344-1 python-django-piston - deserialization vulnerability Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://bugzilla.redhat.com/show_bug.cgi?id=750658
- https://bitbucket.org/jespern/django-piston/commits/91bdaec89543/
- DSA-2344 vendor-advisory
- https://www.djangoproject.com/weblog/2011/nov/01/piston-and-tastypie-security-releases/
- [oss-security] 20111101 Re: CVE request for Django-piston and Tastypie mailing-list