Description
Django REST framework is a toolkit for building Web APIs. Prior to 3.17.2, Django REST Framework's request.data parsing in rest_framework/request.py Request._parse() passes the underlying HttpRequest stream to JSONParser and FormParser for application/json and application/x-www-form-urlencoded bodies, bypassing Django's DATA_UPLOAD_MAX_MEMORY_SIZE protection and allowing oversized request bodies to consume additional memory and CPU. This issue is fixed in version 3.17.2.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| encode | django-rest-framework | < 3.17.2 | — |
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 | djangorestframework | 3.18.1+ds1-1 | — |
| Debian 13 | djangorestframework | No fix yet | — |
| Debian 12 | djangorestframework | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | djangorestframework | No fix yet | — |
| Ubuntu 26.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 24.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 22.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 20.04 LTS | djangorestframework | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | djangorestframework | No fix yet | — |
| Ubuntu 16.04 LTS | djangorestframework | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-djangorestframework | 3.18.0-2.1 | openSUSE-SU-2026:11625-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | djangorestframework | < 3.17.2 | 3.17.2 | GHSA-2m8g-3cmr-wg3w |
Advisories 1
- openSUSE-SU-2026:11625-1 python313-djangorestframework-3.18.0-2.1 on GA media SUSE / openSUSE Security Updates · Aug 28, 2026
References
- https://github.com/encode/django-rest-framework/security/advisories/GHSA-2m8g-3cmr-wg3w
- https://github.com/encode/django-rest-framework/pull/10013
- https://github.com/encode/django-rest-framework/commit/2912dc98042f78e27636551fc22eeaf10f725fdd
- https://github.com/encode/django-rest-framework/commit/82ef7b7e4e0a73ba5c489b465fae7e76d948da4e