# CVE-2020-13254: Data leakage via cache key collision in Django

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.09%, higher than 94% of CVEs (2026-11-29)
- Published: 2020-06-03T13:11:57.000Z
- Modified: 2026-09-08T08:46:09.298Z
- Also known as: GHSA-wpjr-j57x-wxfw, BIT-DJANGO-2020-13254, PYSEC-2020-31
- Weaknesses: CWE-295
- Assigned by: mitre

## Description

An issue was discovered in Django 2.2 before 2.2.13 and 3.0 before 3.0.7. In cases where a memcached backend does not perform key validation, passing malformed cache keys could result in a key collision, and potential data leakage.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django (PyPI): from 2.2 before 2.2.13; from 3.0 before 3.0.7
- djangoproject django: from 2.2 before 2.2.13; from 3.0 before 3.0.7
- canonical ubuntu_linux: 14.04; 16.04; 18.04; 19.10; 20.04
- fedoraproject fedora: 32
- netapp sra_plugin: no versions given
- netapp steelstore_cloud_integrated_storage: no versions given
- debian debian_linux: 8.0; 9.0; 10.0
- oracle zfs_storage_appliance_kit: 8.8
- django (Bitnami): from 2.2.0 before 2.2.13; from 3.0.0 before 3.0.7

## Every score

- GitHub: CVSS:3.1 5.9 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://usn.ubuntu.com/4381-1/> (advisory, third-party-advisory, vendor-advisory, web)
- <https://usn.ubuntu.com/4381-2/> (advisory, third-party-advisory, vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/06/msg00016.html> (advisory, mailing-list, third-party-advisory, web)
- <https://www.debian.org/security/2020/dsa-4705> (advisory, third-party-advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/> (vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpujan2021.html> (advisory, patch, third-party-advisory, web)
- <https://docs.djangoproject.com/en/3.0/releases/security/> (advisory, release-notes, vendor-advisory, web)
- <https://groups.google.com/d/msg/django-announce/pPEmb2ot4Fo/X-SMalYSBAAJ> (advisory, mailing-list, release-notes, third-party-advisory, web)
- <https://www.djangoproject.com/weblog/2020/jun/03/security-releases/> (advisory, article, release-notes, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20200611-0002/> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-13254> (advisory, web)
- <https://github.com/django/django/commit/07e59caa02831c4569bbebb9eb773bdd9cb4b206> (web)
- <https://github.com/django/django/commit/84b2da5552e100ae3294f564f6c862fef8d0e693> (web)
- <https://docs.djangoproject.com/en/3.0/releases/security> (web)
- <https://github.com/advisories/GHSA-wpjr-j57x-wxfw> (advisory)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-31.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ> (web)
- <https://security.netapp.com/advisory/ntap-20200611-0002> (web)
- <https://usn.ubuntu.com/4381-1> (web)
- <https://usn.ubuntu.com/4381-2> (web)
- <https://www.djangoproject.com/weblog/2020/jun/03/security-releases> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/> (web)

## Sources

- CVE List: [CVE-2020-13254](https://www.cve.org/CVERecord?id=CVE-2020-13254), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-wpjr-j57x-wxfw](https://github.com/advisories/GHSA-wpjr-j57x-wxfw), CC-BY-4.0, modified 2024-11-19
- NVD: [CVE-2020-13254](https://nvd.nist.gov/vuln/detail/CVE-2020-13254), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-31](https://osv.dev/vulnerability/PYSEC-2020-31), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-DJANGO-2020-13254](https://osv.dev/vulnerability/BIT-DJANGO-2020-13254), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-13254 · Whole record: https://cve.day/CVE-2020-13254.json · Rebuilt by cve.day 2026-11-25T22:57:52.657Z
