HighGHSA-59w8-4wm2-4xw8CVE-2012-3443PYSEC-2012-3
Django Image Field Vulnerable to Image Decompression Bombs
Published 17 May 2022 · Updated 17 Sept 2024
Is your project on an affected django?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
djangoPyPI
- Affected
- <1.3.2
- Fixed in
- 1.3.2
Update to the fixed version for your release line, for example:
pip install 'django>=1.3.2'djangoPyPI
- Affected
- >=1.4 <1.4.1
- Fixed in
- 1.4.1
Update to the fixed version for your release line, for example:
pip install 'django>=1.4.1'Details
The django.forms.ImageField class in the form system in Django before 1.3.2 and 1.4.x before 1.4.1 completely decompresses image data during image validation, which allows remote attackers to cause a denial of service (memory consumption) by uploading an image file.
Is GHSA-59w8-4wm2-4xw8 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected django, and gives you the command that fixes it.
More advisories for django
- HighCVE-2026-15307Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing · 4 Aug 2026
- MediumCVE-2026-15830Django GeoDjango vulnerable to denial of service through deeply nested geometry collections · 4 Aug 2026
- MediumCVE-2026-53878Django: DomainNameValidator permits newline characters that may enable HTTP header injection · 7 Jul 2026
- MediumCVE-2026-53877 Django: GDALRaster may over-read heap memory when constructed from bytes · 7 Jul 2026
- LowCVE-2026-48588Django: cache middleware may expose private responses when unrelated request cookies are present · 7 Jul 2026
- LowCVE-2026-8404Django: UpdateCacheMiddleware may disclose cached responses due to case-sensitive Cache-Control handling · 3 Jun 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2012-3443
- Linkgithub.com/django/django/commit/9ca0ff6268eeff92d0d0ac2c315d4b6a8e229155
- Linkgithub.com/django/django/commit/da33d67181b53fe6cc737ac1220153814a1509f6
- Packagegithub.com/django/django
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-3.yaml
- Linkwww.debian.org/security/2012/dsa-2529
- Linkwww.djangoproject.com/weblog/2012/jul/30/security-releases-issued
- Linkwww.mandriva.com/security/advisories?name=MDVSA-2012:143
- Linkwww.openwall.com/lists/oss-security/2012/07/31/1
- Linkwww.openwall.com/lists/oss-security/2012/07/31/2
- Linkwww.ubuntu.com/usn/USN-1560-1
- Linkwww.debian.org/security/2012/dsa-2529
- Linkwww.mandriva.com/security/advisories?name=MDVSA-2012:143
- Linkwww.openwall.com/lists/oss-security/2012/07/31/1
- Linkwww.openwall.com/lists/oss-security/2012/07/31/2
- Linkwww.ubuntu.com/usn/USN-1560-1
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.