{"schemaVersion":3,"id":"CVE-2020-35681","aliases":["GHSA-v542-8q9x-cffc","PYSEC-2021-113","UBUNTU-CVE-2020-35681","DEBIAN-CVE-2020-35681"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-02-22T02:03:14.000Z","modified":"2024-08-04T17:09:14.591Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.4,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":8.2,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H","exploitability":5.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H","exploitability":5.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H","exploitability":5.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02658,"percentile":0.85483,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.02658},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02658,"percentile":0.85483}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02658,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02658,"percentile":0.85483}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_ADD6799A0AE3D14D","name":"Exploit Reference (channels.readthedocs.io)","source":"reference","url":"https://channels.readthedocs.io/en/stable/releases/3.0.3.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"}],"affected":[{"vendor":"debian","product":"python-django-channels","name":"python-django-channels","label":"python-django-channels","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-django-channels","purlType":"deb","versions":[{"text":"< 3.0.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python-django-channels","name":"python-django-channels","label":"python-django-channels","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python-django-channels","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"djangoproject","product":"channels","name":"channels","label":"channels","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0.0, < 3.0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 3.0.3","eol":null,"hubHref":"/vendor/djangoproject/channels"},{"vendor":"PyPI","product":"channels","name":"channels","label":"channels","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/channels","purlType":"pypi","versions":[{"text":"≥ 3.0.0, < 3.0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 3.0.3","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/django/channels/releases","label":"github.com/django/channels/releases","hostname":"github.com","tags":["X Refsource MISC","WEB","Third Party Advisory"]},{"url":"https://channels.readthedocs.io/en/stable/releases/index.html","label":"channels.readthedocs.io/en/stable/releases/index.html","hostname":"channels.readthedocs.io","tags":["X Refsource MISC","WEB","Release Notes","Vendor Advisory"]},{"url":"https://channels.readthedocs.io/en/stable/releases/3.0.3.html","label":"channels.readthedocs.io/en/stable/releases/3.0.3.html","hostname":"channels.readthedocs.io","tags":["X Refsource CONFIRM","WEB","Exploit","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35681","label":"nvd.nist.gov/vuln/detail/CVE-2020-35681","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/django/channels/commit/e85874d9630474986a6937430eac52db79a2a022","label":"github.com/django/channels/commit/e85874d9630474986a6937430eac52db79a2a022","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-v542-8q9x-cffc","label":"github.com/advisories/GHSA-v542-8q9x-cffc","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/django/channels","label":"github.com/django/channels","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/channels/PYSEC-2021-113.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/channels/PYSEC-2021-113.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2020-35681","label":"ubuntu.com/security/CVE-2020-35681","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://channels.readthedocs.io/en/latest/releases/3.0.3.html#cve-2020-35681-potential-leakage-of-session-identifiers-using-legacy-asgihandler","label":"channels.readthedocs.io/en/latest/releases/3.0.3.html","hostname":"channels.readthedocs.io","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-35681","label":"www.cve.org/CVERecord?id=CVE-2020-35681","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-35681","label":"security-tracker.debian.org/tracker/CVE-2020-35681","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-02-22T02:03:14.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T17:09:14.591Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T21:25:05.272Z","stale":false,"partial":false}}