Skip to content

CVE-2026-114136 Django REST framework: JSONParser applies an attacker-named codec to the request stream

HighCVSS 7.5 EPSS 0.50%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

Django REST framework is a toolkit for building Web APIs. From 3.6.4 until 3.18.2, JSONParser.parse in rest_framework/parsers.py uses the client-supplied Content-Type charset value with codecs.getreader, which accepts byte-transform codecs such as bz2_codec rather than only text encodings. A remote unauthenticated client can therefore cause a compressed JSON request body to be expanded after Django has enforced DATA_UPLOAD_MAX_MEMORY_SIZE against only the wire bytes, allowing a very small request to consume substantial per-worker memory. The default parser set is sufficient, and any reachable endpoint that accepts a JSON body is affected. This issue is fixed in version 3.18.2.

Upgrade path

29 packages: 3 fixed, 25 with no fix yet.

PackageAffectedFixed inStatus
debian/djangorestframework(Debian 12) = 3.14.0-2; = 3.14.0-2+deb12u1; = 3.15.1-1; = 3.15.1-2 +11 more No fix listed No fix yet
debian/djangorestframework(Debian 13) = 3.16.0-1; = 3.16.1-1; = 3.16.1-3; = 3.16.1-4 +5 more No fix listed No fix yet
redhat/ansible-automation-platform-24/controller-rhel8(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/controller-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/eda-controller-rhel9:1794363568(Red Hat ansible_automation_platform 2.6 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/gateway-rhel9:1794546051(Red Hat ansible_automation_platform 2.6 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/hub-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/lightspeed-rhel9:1794591520(Red Hat ansible_automation_platform 2.6 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-27/controller-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-27/eda-controller-rhel9:1794560971(Red Hat ansible_automation_platform 2.7 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-27/gateway-rhel9:1794543629(Red Hat ansible_automation_platform 2.7 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-27/hub-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-27/lightspeed-rhel9:1794579276(Red Hat ansible_automation_platform 2.7 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-27/metrics-service-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-tech-preview/metrics-service-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/automation-controller(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/discovery/discovery-server-rhel9:1793734080(Red Hat discovery 2 el9) All versions No fix listed No fix yet
redhat/python-djangorestframework(Red Hat satellite 6) All versions No fix listed No fix yet
redhat/python3.12-djangorestframework(Red Hat satellite 6) All versions No fix listed No fix yet
redhat/satellite/iop-advisor-backend-rhel9:1793757716(Red Hat satellite 6.18 el9) All versions No fix listed No fix yet
redhat/satellite/iop-advisor-backend-rhel9:1793758586(Red Hat satellite 6.19 el9) All versions No fix listed No fix yet
ubuntu/djangorestframework(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/djangorestframework(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/djangorestframework(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/djangorestframework(Ubuntu 26.10) All versions No fix listed No fix yet
debian/djangorestframework(Debian 14) < 3.18.3+ds1-1; = 3.16.0-1; = 3.16.1-1; = 3.16.1-3 +4 more 3.18.3+ds1-1 Fixed
pypi djangorestframework(PyPI) = 3.6.4; = 3.7.0; = 3.7.1; = 3.7.2 +39 more 3.18.2 Fixed
redhat/python3.12-djangorestframework(Red Hat ansible_automation_platform 2.6 el9) < 3.18.3-1.el9ap 3.18.3-1.el9ap Fixed
encode django-rest-framework = >= 3.6.4, < 3.18.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi djangorestframework(PyPI) >= 3.6.4, < 3.18.2 3.18.2
pypi djangorestframework(PyPI) = 3.10.0 No fix listed
pypi djangorestframework(PyPI) = 3.10.1 No fix listed
pypi djangorestframework(PyPI) = 3.10.2 No fix listed
pypi djangorestframework(PyPI) = 3.10.3 No fix listed
pypi djangorestframework(PyPI) = 3.11.0 No fix listed
pypi djangorestframework(PyPI) = 3.11.1 No fix listed
pypi djangorestframework(PyPI) = 3.11.2 No fix listed
pypi djangorestframework(PyPI) = 3.12.0 No fix listed
pypi djangorestframework(PyPI) = 3.12.1 No fix listed
pypi djangorestframework(PyPI) = 3.12.2 No fix listed
pypi djangorestframework(PyPI) = 3.12.3 No fix listed
pypi djangorestframework(PyPI) = 3.12.4 No fix listed
pypi djangorestframework(PyPI) = 3.13.0 No fix listed
pypi djangorestframework(PyPI) = 3.13.1 No fix listed
pypi djangorestframework(PyPI) = 3.14.0 No fix listed
pypi djangorestframework(PyPI) = 3.15.0 No fix listed
pypi djangorestframework(PyPI) = 3.15.1 No fix listed
pypi djangorestframework(PyPI) = 3.15.2 No fix listed
pypi djangorestframework(PyPI) = 3.16.0 No fix listed
pypi djangorestframework(PyPI) = 3.16.1 No fix listed
pypi djangorestframework(PyPI) = 3.17.0 No fix listed
pypi djangorestframework(PyPI) = 3.17.1 No fix listed
pypi djangorestframework(PyPI) = 3.17.2 No fix listed
pypi djangorestframework(PyPI) = 3.18.0 No fix listed
Show 75 more
ProductAffected versionsFixed in
pypi djangorestframework(PyPI) = 3.18.1 No fix listed
pypi djangorestframework(PyPI) = 3.6.4 No fix listed
pypi djangorestframework(PyPI) = 3.7.0 No fix listed
pypi djangorestframework(PyPI) = 3.7.1 No fix listed
pypi djangorestframework(PyPI) = 3.7.2 No fix listed
pypi djangorestframework(PyPI) = 3.7.3 No fix listed
pypi djangorestframework(PyPI) = 3.7.4 No fix listed
pypi djangorestframework(PyPI) = 3.7.5 No fix listed
pypi djangorestframework(PyPI) = 3.7.6 No fix listed
pypi djangorestframework(PyPI) = 3.7.7 No fix listed
pypi djangorestframework(PyPI) = 3.8.0 No fix listed
pypi djangorestframework(PyPI) = 3.8.1 No fix listed
pypi djangorestframework(PyPI) = 3.8.2 No fix listed
pypi djangorestframework(PyPI) = 3.9.0 No fix listed
pypi djangorestframework(PyPI) = 3.9.1 No fix listed
pypi djangorestframework(PyPI) = 3.9.2 No fix listed
pypi djangorestframework(PyPI) = 3.9.3 No fix listed
pypi djangorestframework(PyPI) = 3.9.4 No fix listed
encode django-rest-framework = >= 3.6.4, < 3.18.2 No fix listed
debian/djangorestframework(Debian:12) All versions No fix listed
debian/djangorestframework(Debian:12) = 3.14.0-2 No fix listed
debian/djangorestframework(Debian:12) = 3.14.0-2+deb12u1 No fix listed
debian/djangorestframework(Debian:12) = 3.15.1-1 No fix listed
debian/djangorestframework(Debian:12) = 3.15.1-2 No fix listed
debian/djangorestframework(Debian:12) = 3.15.2-1 No fix listed
debian/djangorestframework(Debian:12) = 3.15.2-2 No fix listed
debian/djangorestframework(Debian:12) = 3.16.0-1 No fix listed
debian/djangorestframework(Debian:12) = 3.16.1-1 No fix listed
debian/djangorestframework(Debian:12) = 3.16.1-3 No fix listed
debian/djangorestframework(Debian:12) = 3.16.1-4 No fix listed
debian/djangorestframework(Debian:12) = 3.17.1+ds1-1 No fix listed
debian/djangorestframework(Debian:12) = 3.17.1-1 No fix listed
debian/djangorestframework(Debian:12) = 3.18.1+ds1-1 No fix listed
debian/djangorestframework(Debian:12) = 3.18.3+ds1-1 No fix listed
debian/djangorestframework(Debian:13) All versions No fix listed
debian/djangorestframework(Debian:13) = 3.16.0-1 No fix listed
debian/djangorestframework(Debian:13) = 3.16.1-1 No fix listed
debian/djangorestframework(Debian:13) = 3.16.1-3 No fix listed
debian/djangorestframework(Debian:13) = 3.16.1-4 No fix listed
debian/djangorestframework(Debian:13) = 3.17.1+ds1-1 No fix listed
debian/djangorestframework(Debian:13) = 3.17.1-1 No fix listed
debian/djangorestframework(Debian:13) = 3.18.1+ds1-1 No fix listed
debian/djangorestframework(Debian:13) = 3.18.3+ds1-1 No fix listed
debian/djangorestframework(Debian:14) < 3.18.3+ds1-1 3.18.3+ds1-1
debian/djangorestframework(Debian:14) = 3.16.0-1 No fix listed
debian/djangorestframework(Debian:14) = 3.16.1-1 No fix listed
debian/djangorestframework(Debian:14) = 3.16.1-3 No fix listed
debian/djangorestframework(Debian:14) = 3.16.1-4 No fix listed
debian/djangorestframework(Debian:14) = 3.17.1+ds1-1 No fix listed
debian/djangorestframework(Debian:14) = 3.17.1-1 No fix listed
debian/djangorestframework(Debian:14) = 3.18.1+ds1-1 No fix listed
ubuntu/djangorestframework(Ubuntu:22.04) All versions No fix listed
ubuntu/djangorestframework(Ubuntu:24.04) All versions No fix listed
ubuntu/djangorestframework(Ubuntu:26.04) All versions No fix listed
ubuntu/djangorestframework(Ubuntu:26.10) All versions No fix listed
redhat/python3.12-djangorestframework(Red Hat:ansible_automation_platform:2.6::el9) < 3.18.3-1.el9ap 3.18.3-1.el9ap
redhat/ansible-automation-platform-26/eda-controller-rhel9:1794363568(Red Hat:ansible_automation_platform:2.6::el9) All versions No fix listed
redhat/ansible-automation-platform-26/gateway-rhel9:1794546051(Red Hat:ansible_automation_platform:2.6::el9) All versions No fix listed
redhat/ansible-automation-platform-26/lightspeed-rhel9:1794591520(Red Hat:ansible_automation_platform:2.6::el9) All versions No fix listed
redhat/ansible-automation-platform-27/eda-controller-rhel9:1794560971(Red Hat:ansible_automation_platform:2.7::el9) All versions No fix listed
redhat/ansible-automation-platform-27/gateway-rhel9:1794543629(Red Hat:ansible_automation_platform:2.7::el9) All versions No fix listed
redhat/ansible-automation-platform-27/lightspeed-rhel9:1794579276(Red Hat:ansible_automation_platform:2.7::el9) All versions No fix listed
redhat/discovery/discovery-server-rhel9:1793734080(Red Hat:discovery:2::el9) All versions No fix listed
redhat/satellite/iop-advisor-backend-rhel9:1793757716(Red Hat:satellite:6.18::el9) All versions No fix listed
redhat/satellite/iop-advisor-backend-rhel9:1793758586(Red Hat:satellite:6.19::el9) All versions No fix listed
redhat/ansible-automation-platform-24/controller-rhel8(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-26/controller-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-26/hub-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-27/controller-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-27/hub-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-27/metrics-service-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-tech-preview/metrics-service-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/automation-controller(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/python3.12-djangorestframework(Red Hat:satellite:6) All versions No fix listed
redhat/python-djangorestframework(Red Hat:satellite:6) All versions No fix listed

References