Signed cookie salt namespace collision in django.http.HttpRequest.get_signed_cookie (djangoproject Django)
En bref
- Source
- NVD
- EPSS
- EPSS 0.24 % · centile 16 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- DSF
- Statut NVD
- Analyzed
Description
An issue was discovered in Django 6.0 before 6.0.6 and 5.2 before 5.2.15. `django.http.HttpRequest.get_signed_cookie` in Django uses a non-injective salt derivation (concatenating the cookie name and salt argument), which allows a remote attacker to use a cookie in a context different from the one where it was signed, via distinct `(name, salt)` pairs that produce the same concatenation. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Peng Zhou for reporting this issue.
Faiblesses (CWE)
- CWE-347 — Vérification incorrecte d'une signature cryptographique
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N | DSF |
| CVSS 4.0 | LOW 2.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N | DSF |
| CVSS 4.0 | LOW 2.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD · 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (Secondary) |
| CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N | NVD · 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (Secondary) |
| CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N | NVD · nvd@nist.gov (Primary) |
Avis
- GHSA-h7pc-vwp9-298g — Django: signed cookies are vulnerable to salt namespace collisions
- PYSEC-2026-199 — An issue was discovered in Django 6.0 before 6.0.6 and 5.2 before 5.2.15.
Références européennes
- ENISA EUVD · EUVD-2026-34086
- GCVE · GCVE-0-2026-6873
Configurations affectées (CPE NVD)
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*≥ 5.2 < 5.2.15cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*≥ 6.0 < 6.0.6
Produits affectés
| Produit | Versions |
|---|---|
| djangoproject · Django | affected 6.0 < 6.0.6 ; unaffected 6.0.6 ; affected 5.2 < 5.2.15 ; unaffected 5.2.15 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |