CVE-2022-22818
medium
CVSS v3
—
CVSS v2
—
VIR risk
5.5
Description
The {% debug %} template tag in Django 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2 does not properly encode the current context. This may lead to XSS.
Predictions
Exploit likelihood
30%
Patch ETA
—
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2022-22818
Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2022:5498
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2022-22818.html
Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2022:8506
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| arch | fixed | 4.0.2-1 | |
| rocky | 8 | fixed | |
| sles | affected | | |
| debian | bookworm | fixed | 2:3.2.12-1 |
| debian | bullseye | fixed | 2:2.2.28-1~deb11u1 |
| debian | forky | fixed | 2:3.2.12-1 |
| debian | sid | fixed | 2:3.2.12-1 |
| debian | trixie | fixed | 2:3.2.12-1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-22818
- https://github.com/django/django/commit/01422046065d2b51f8f613409cad2c81b39487e5
- https://github.com/django/django/commit/1a1e8278c46418bde24c86a65443b0674bae65e2
- https://github.com/django/django/commit/c27a7eb9f40b64990398978152e62b6ff839c2e6
- https://docs.djangoproject.com/en/4.0/releases/security
- https://github.com/advisories/GHSA-95rw-fx8r-36v6
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-19.yaml
- https://groups.google.com/forum/#!forum/django-announce
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- https://security.netapp.com/advisory/ntap-20220221-0003
- https://www.debian.org/security/2022/dsa-5254
- https://www.djangoproject.com/weblog/2022/feb/01/security-releases
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://www.djangoproject.com/weblog/2022/feb/01/security-releases/
- https://errata.rockylinux.org/RLSA-2022:8506
- https://www.suse.com/security/cve/CVE-2022-22818.html
- https://errata.rockylinux.org/RLSA-2022:5498
- https://security-tracker.debian.org/tracker/CVE-2022-22818
Verify integrity in audit chain (admin only). AS-IS.