漏洞描述
An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. The Trunc() and Extract() database functions are subject to SQL injection if untrusted data is used as a kind/lookup_name value. Applications that constrain the lookup name and kind choice to a known safe list are unaffected.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。
参考链接
github.comhttps://github.com/vulhub/vulhub/tree/master/django/CVE-2022-34265↗nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2022-34265↗www.djangoproject.comhttps://www.djangoproject.com/weblog/2022/jul/04/security-releases/↗docs.djangoproject.comhttps://docs.djangoproject.com/en/4.0/releases/security/↗