中危 djangoproject django 在web页面生成时对输入的转义处理不恰当(跨站脚本)
CVE编号
CVE-2021-32052利用情况
暂无补丁情况
官方补丁披露时间
2021-05-07漏洞描述
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.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | djangoproject | django | * | From (including) 2.2 | Up to (excluding) 2.2.22 | ||||
运行在以下环境 | |||||||||
应用 | djangoproject | django | * | From (including) 3.1 | Up to (excluding) 3.1.10 | ||||
运行在以下环境 | |||||||||
应用 | djangoproject | django | * | From (including) 3.2 | Up to (excluding) 3.2.2 | ||||
运行在以下环境 | |||||||||
应用 | python | python | * | From (including) 3.9.5 | |||||
运行在以下环境 | |||||||||
系统 | debian_10 | python-django | * | Up to (including) 1.11.29-1~deb10u1 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | python-django | * | Up to (excluding) 2:2.2.22-1 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | python-django | * | Up to (excluding) 2:2.2.22-1 | |||||
运行在以下环境 | |||||||||
系统 | debian_9 | python-django | * | Up to (including) 1.10.7-2+deb9u9 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | python-django | * | Up to (excluding) 2:2.2.22-1 | |||||
运行在以下环境 | |||||||||
系统 | fedora_34 | python3-django | * | Up to (excluding) 3.1.9-1.fc34 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.3 | python3-Django | * | Up to (excluding) 2.2.28-bp153.2.3.1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_18.04 | python-django | * | Up to (excluding) 1:1.11.11-1ubuntu1.17 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_18.04.5_lts | python-django | * | Up to (excluding) 1:1.11.11-1ubuntu1.13 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_20.04 | python-django | * | Up to (excluding) 2:2.2.12-1ubuntu0.7 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_21.04 | python-django | * | Up to (excluding) 2:2.2.20-1ubuntu0.2 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_21.10 | python-django | * | Up to (excluding) 2:2.2.22-1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_22.04 | python-django | * | Up to (excluding) 2:2.2.22-1 | |||||
- 攻击路径 远程
- 攻击复杂度 容易
- 权限要求 无需权限
- 影响范围 越权影响
- EXP成熟度 N/A
- 补丁情况 官方补丁
- 数据保密性 数据泄露
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-79 | 在Web页面生成时对输入的转义处理不恰当(跨站脚本) |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论