CVE-2025-13372
Potential SQL injection in FilteredRelation column aliases on PostgreSQL
4.3
MEDIUM
CVSS 3.1
EPSS 0.90%
描述
An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27. `FilteredRelation` is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet.annotate()` or `QuerySet.alias()` on PostgreSQL. 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 Stackered for reporting this issue.
如何修補 CVE-2025-13372
要修補 CVE-2025-13372,請將受影響套件升級到下列已修補版本。
- —升級至 4.2.27 或更新版本
- —升級至 3:3.2.25-0+deb12u1 或更新版本
- —升級至 3:4.2.27-0+deb13u1 或更新版本
- —升級至 5.2.9 或更新版本
- —升級至 4.2.27 或更新版本
CVE-2025-13372 正在被利用嗎?
低 — EPSS 為 0.9%,目前沒有觀察到大規模利用活動。
受影響套件(5)
- >= 4.2.0, < 4.2.27, >= 5.1.0, < 5.1.15, >= 5.2.0, < 5.2.9
- from 0, < 3:3.2.25-0+deb12u1
- from 0, < 3:4.2.27-0+deb13u1
- >= 5.2a1, < 5.2.9
- >= 4.2, < 4.2.27, >= 5.1, < 5.1.15, >= 5.2, < 5.2.9
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |