toastdriven/django-tastypie · Security
Django Tastypie Improper Deserialization of YAML Data
- GHSA ID
- GHSA-qgvw-qc2q-gv5q
- CVE ID
- CVE-2011-4104
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v4
- 9.3 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
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.
CWEs
- CWE-502 · Deserialization of Untrusted Data
References
- https://nvd.nist.gov/vuln/detail/CVE-2011-4104 ↗
- https://github.com/toastdriven/django-tastypie/commit/e8af315211b07c8f48f32a063233cc3f76dd5bc2 ↗
- https://groups.google.com/forum/#!topic/django-tastypie/i2aNGDHTUBI ↗
- http://www.openwall.com/lists/oss-security/2011/11/02/1 ↗
- http://www.openwall.com/lists/oss-security/2011/11/02/7 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/django-tastypie/PYSEC-2014-25.yaml ↗
- https://www.djangoproject.com/weblog/2011/nov/01/piston-and-tastypie-security-releases ↗
- https://github.com/advisories/GHSA-qgvw-qc2q-gv5q ↗