CVE-2021-32052
Header injection possible in Django
6.1
MEDIUM
CVSS 3.1
EPSS 3.1%
描述
In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs (unless the URLField form field is used). If an application uses values with newlines in an HTTP response, header injection can occur. Django itself is unaffected because HttpResponse prohibits newlines in HTTP headers.
如何修補 CVE-2021-32052
要修補 CVE-2021-32052,請將受影響套件升級到下列已修補版本。
- —升級至 2.2.22 或更新版本
- —升級至 2:2.2.22-1 或更新版本
- —升級至 2.2.22 或更新版本
- —升級至 2.2.22 或更新版本
CVE-2021-32052 正在被利用嗎?
低 — EPSS 為 3.1%,目前沒有觀察到大規模利用活動。
受影響套件(4)
- >= 2.2.0, < 2.2.22, >= 3.1.0, < 3.1.10, >= 3.2.0, < 3.2.2
- from 0, < 2:2.2.22-1
- >= 2.2, < 2.2.22
- >= 2.2, < 2.2.22, >= 3.1, < 3.1.10, >= 3.2, < 3.2.2
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |