Skip to content
OpenAdvisories
High · 7.4 CVE-2020-35681 EUVD-2021-0041GHSA-v542-8q9x-cffcPYSEC-2021-113

Django Channels leakage of session identifiers using legacy AsgiHandler

Published Feb 22, 2021 · Updated Aug 4, 2024 · Assigned by mitre

Description

Django Channels 3.x before 3.0.3 allows remote attackers to obtain sensitive information from a different request scope. The legacy channels.http.AsgiHandler class, used for handling HTTP type requests in an ASGI environment prior to Django 3.0, did not correctly separate request scopes in Channels 3.0. In many cases this would result in a crash but, with correct timing, responses could be sent to the wrong client, resulting in potential leakage of session identifiers and other sensitive data. Note that this affects only the legacy Channels provided class, and not Django's similar ASGIHandler, available from Django 3.0.

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.

ReleasePackageFixed inAdvisory
Debian 14 python-django-channels 3.0.3-1 —
Debian 13 python-django-channels 3.0.3-1 —
Debian 12 python-django-channels 3.0.3-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS python-django-channels No fix yet —
Ubuntu 18.04 LTS python-django-channels No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI channels >= 3.0.0, < 3.0.3 3.0.3 GHSA-v542-8q9x-cffc

References