Description
The from_yaml method in serializers.py in Django Tastypie before 0.9.10 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 14 | django-tastypie | 0.9.10-1 | — |
| Debian 13 | django-tastypie | 0.9.10-1 | — |
| Debian 12 | django-tastypie | 0.9.10-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django-tastypie | < 0.9.10 | 0.9.10 | GHSA-qgvw-qc2q-gv5q |
References
- https://groups.google.com/forum/#%21topic/django-tastypie/i2aNGDHTUBI
- [oss-security] 20111102 Re: Re: CVE request for Django-piston and Tastypie mailing-list
- https://www.djangoproject.com/weblog/2011/nov/01/piston-and-tastypie-security-releases/
- https://github.com/toastdriven/django-tastypie/commit/e8af315211b07c8f48f32a063233cc3f76dd5bc2
- [oss-security] 20111102 Re: CVE request for Django-piston and Tastypie mailing-list