CVE-2020-35681
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.
What to do
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | python-django-channels | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | python-django-channels | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | python-django-channels | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | python-django-channels | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | python-django-channels | Fix pending | UBUNTU-CVE-2020-35681 | |
| Ubuntu 18.04 | python-django-channels | Fix pending | UBUNTU-CVE-2020-35681 | |
| Debian 14 | python-django-channels | Fixed | 3.0.3-1 | DEBIAN-CVE-2020-35681 |
| Debian 13 | python-django-channels | Fixed | 3.0.3-1 | DEBIAN-CVE-2020-35681 |
| Debian 12 | python-django-channels | Fixed | 3.0.3-1 | DEBIAN-CVE-2020-35681 |
| PyPI library | channels | Fixed | 3.0.3 | PYSEC-2021-113 |
References
- https://github.com/django/channels/releases
- https://channels.readthedocs.io/en/stable/releases/index.html
- https://channels.readthedocs.io/en/stable/releases/3.0.3.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.