CVE-2016-2048 Django Access Restrictions Bypass
Authenticated users can bypass access restrictions to create unauthorized objects when the save_as feature is enabled in Django admin.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-2048?
CVE-2016-2048 is a medium-severity missing authorization vulnerability in Djangoproject Django, published on 8 Feb 2016. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
Django 1.9.x before 1.9.2, when ModelAdmin.save_as is set to True, allows remote authenticated users to bypass intended access restrictions and create ModelAdmin objects via the "Save as New" option when editing objects and leveraging the "change" permission.
Weakness: CWE-284
Which versions are affected by CVE-2016-2048?
3 open source packages ship an affected version, including django and Django. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
django PyPI | From 1.9 | 1.9.2 |
django PyPI | From 1.9 | 1.9.2 |
Django PyPI | From 1.9 | 1.9.2 |
Products include Djangoproject Django.
How do I fix CVE-2016-2048?
Upgrade django to 1.9.2 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2016-2048 being exploited?
There is no known exploitation of CVE-2016-2048 in the wild and no public exploit code.
Other vulnerabilities in Djangoproject Django
- CVE-2026-4277 Privilege abuse in GenericInlineModelAdmin
- CVE-2024-53908 Django SQL injection in HasKey(lhs, rhs) on Oracle
- CVE-2024-42005 Django SQL injection vulnerability
- CVE-2023-31047 Django bypasses validation when using one form field to upload multiple files
- CVE-2022-34265 Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection
Sources
Also known as DEBIAN-CVE-2016-2048, GHSA-46x4-9jmv-jc8p, PYSEC-2016-14.