Django-piston and Django-tastypie do not properly deserialize YAML data
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.
Django Tastypie has a very similar vulnerability.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | django-piston | >= 0.2.0, < 0.2.2.1 | 0.2.2.1 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=750658
- http://www.openwall.com/lists/oss-security/2011/11/01/10
- https://bitbucket.org/jespern/django-piston/commits/91bdaec89543/
- http://www.debian.org/security/2011/dsa-2344
- https://www.djangoproject.com/weblog/2011/nov/01/piston-and-tastypie-security-releases/
- https://github.com/advisories/GHSA-pvhp-v9qp-xf5r
- https://nvd.nist.gov/vuln/detail/CVE-2011-4103
- https://bitbucket.org/jespern/django-piston
- https://bitbucket.org/jespern/django-piston/commits/91bdaec89543
- https://github.com/pypa/advisory-database/tree/main/vulns/django-piston/PYSEC-2014-24.yaml
- https://www.djangoproject.com/weblog/2011/nov/01/piston-and-tastypie-security-releases
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-20- Platform
- Python (PyPI)
- Package
django-piston- Disclosed
- 27.10.2014
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2014-24 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-pvhp-v9qp-xf5r - CC BY 4.0
Vulnerability history: django-piston
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.