登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
2025 Gitee 年度开源项目评选投票进行中,快为你的心仪项目助力!
代码拉取完成,页面将自动刷新
仓库状态说明
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
8
Star
7
Fork
98
src-openEuler
/
golang
关闭
代码
Issues
4
Pull Requests
3
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
CVE-2022-41725
已完成
#I6OXZH
CVE和安全问题
yanxiaobing2020
创建于
2023-03-21 17:03
一、漏洞信息 漏洞编号:[CVE-2022-41725](https://nvd.nist.gov/vuln/detail/CVE-2022-41725) 漏洞归属组件:[golang](https://gitee.com/src-openeuler/golang) 漏洞归属的版本:1.13.15,1.15.7,1.17.3,1.19.4 CVSS V3.0分值: BaseScore:7.5 High Vector:CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 漏洞简述: A denial of service is possible from excessive resource consumption in net/http and mime/multipart. Multipart form parsing with mime/multipart.Reader.ReadForm can consume largely unlimited amounts of memory and disk files. This also affects form parsing in the net/http package with the Request methods FormFile, FormValue, ParseMultipartForm, and PostFormValue. ReadForm takes a maxMemory parameter, and is documented as storing up to maxMemory bytes +10MB (reserved for non-file parts) in memory . File parts which cannot be stored in memory are stored on disk in temporary files. The unconfigurable 10MB reserved for non-file parts is excessively large and can potentially open a denial of service vector on its own. However, ReadForm did not properly account for all memory consumed by a parsed form, such as map entry overhead, part names, and MIME headers, permitting a maliciously crafted form to consume well over 10MB. In addition, ReadForm contained no limit on the number of disk files created, permitting a relatively small request body to create a large number of disk temporary files. With fix, ReadForm now properly accounts for various forms of memory overhead, and should now stay within its documented limit of 10MB + maxMemory bytes of memory consumption. Users should still be aware that this limit is high and may still be hazardous. In addition, ReadForm now creates at most one on-disk temporary file, combining multiple form parts into a single temporary file. The mime/multipart.File interface type s documentation states, If stored on disk, the File s underlying concrete type will be an *os.File. . This is no longer the case when a form contains more than one file part, due to this coalescing of parts into a single file. The previous behavior of using distinct files for each form part may be reenabled with the environment variable GODEBUG=multipartfiles=distinct. Users should be aware that multipart.ReadForm and the http.Request methods that call it do not limit the amount of disk consumed by temporary files. Callers can limit the size of form data with http.MaxBytesReader. 漏洞公开时间:2023-03-01 02:15:00 漏洞创建时间:2023-03-21 17:04:02 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2022-41725 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | nvd | https://go.dev/issue/58006 | | | nvd | https://go.dev/cl/468124 | | | nvd | https://pkg.go.dev/vuln/GO-2023-1569 | | | nvd | https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E | | | redhat | https://access.redhat.com/security/cve/CVE-2022-41725 | | | redhat_bugzilla | https://go.dev/issue/58006 | https://bugzilla.redhat.com/show_bug.cgi?id=2178488 | | redhat_bugzilla | https://go.dev/cl/468124 | https://bugzilla.redhat.com/show_bug.cgi?id=2178488 | | redhat_bugzilla | https://pkg.go.dev/vuln/GO-2023-1569 | https://bugzilla.redhat.com/show_bug.cgi?id=2178488 | | redhat_bugzilla | https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E | https://bugzilla.redhat.com/show_bug.cgi?id=2178488 | | ubuntu | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41725 | https://ubuntu.com/security/CVE-2022-41725 | | ubuntu | https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E | https://ubuntu.com/security/CVE-2022-41725 | | ubuntu | https://go.dev/issue/58006 | https://ubuntu.com/security/CVE-2022-41725 | | ubuntu | https://nvd.nist.gov/vuln/detail/CVE-2022-41725 | https://ubuntu.com/security/CVE-2022-41725 | | ubuntu | https://launchpad.net/bugs/cve/CVE-2022-41725 | https://ubuntu.com/security/CVE-2022-41725 | | ubuntu | https://security-tracker.debian.org/tracker/CVE-2022-41725 | https://ubuntu.com/security/CVE-2022-41725 | | debian | | https://security-tracker.debian.org/tracker/CVE-2022-41725 | | cve_search | | https://go.dev/issue/58006 | | cve_search | | https://go.dev/cl/468124 | | cve_search | | https://pkg.go.dev/vuln/GO-2023-1569 | | cve_search | | https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E | | mageia | | http://advisories.mageia.org/MGASA-2023-0109.html | | nvd | https://go.dev/issue/58006 | | | nvd | https://go.dev/cl/468124 | | | nvd | https://pkg.go.dev/vuln/GO-2023-1569 | | | nvd | https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E | | | debian | https://security-tracker.debian.org/tracker/CVE-2022-41725 | | </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: 其它 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> 无 </details> 二、漏洞分析结构反馈 影响性分析说明: A denial of service is possible from excessive resource consumption in net/http and mime/multipart. Multipart form parsing with mime/multipart.Reader.ReadForm can consume largely unlimited amounts of memory and disk files. This also affects form parsing in the net/http package with the Request methods FormFile, FormValue, ParseMultipartForm, and PostFormValue. openEuler评分: 7.5 Vector:CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 受影响版本排查(受影响/不受影响): 1.openEuler-20.03-LTS-SP1(1.15.7):受影响 2.openEuler-20.03-LTS-SP3(1.15.7):受影响 3.openEuler-22.03-LTS(1.17.3):受影响 4.openEuler-22.03-LTS-SP1(1.17.3):受影响 修复是否涉及abi变化(是/否): 1.openEuler-20.03-LTS-SP1(1.15.7):否 2.openEuler-20.03-LTS-SP3(1.15.7):否 3.openEuler-22.03-LTS(1.17.3):否 4.openEuler-22.03-LTS-SP1(1.17.3):否 三、漏洞修复 安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2023-1192
一、漏洞信息 漏洞编号:[CVE-2022-41725](https://nvd.nist.gov/vuln/detail/CVE-2022-41725) 漏洞归属组件:[golang](https://gitee.com/src-openeuler/golang) 漏洞归属的版本:1.13.15,1.15.7,1.17.3,1.19.4 CVSS V3.0分值: BaseScore:7.5 High Vector:CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 漏洞简述: A denial of service is possible from excessive resource consumption in net/http and mime/multipart. Multipart form parsing with mime/multipart.Reader.ReadForm can consume largely unlimited amounts of memory and disk files. This also affects form parsing in the net/http package with the Request methods FormFile, FormValue, ParseMultipartForm, and PostFormValue. ReadForm takes a maxMemory parameter, and is documented as storing up to maxMemory bytes +10MB (reserved for non-file parts) in memory . File parts which cannot be stored in memory are stored on disk in temporary files. The unconfigurable 10MB reserved for non-file parts is excessively large and can potentially open a denial of service vector on its own. However, ReadForm did not properly account for all memory consumed by a parsed form, such as map entry overhead, part names, and MIME headers, permitting a maliciously crafted form to consume well over 10MB. In addition, ReadForm contained no limit on the number of disk files created, permitting a relatively small request body to create a large number of disk temporary files. With fix, ReadForm now properly accounts for various forms of memory overhead, and should now stay within its documented limit of 10MB + maxMemory bytes of memory consumption. Users should still be aware that this limit is high and may still be hazardous. In addition, ReadForm now creates at most one on-disk temporary file, combining multiple form parts into a single temporary file. The mime/multipart.File interface type s documentation states, If stored on disk, the File s underlying concrete type will be an *os.File. . This is no longer the case when a form contains more than one file part, due to this coalescing of parts into a single file. The previous behavior of using distinct files for each form part may be reenabled with the environment variable GODEBUG=multipartfiles=distinct. Users should be aware that multipart.ReadForm and the http.Request methods that call it do not limit the amount of disk consumed by temporary files. Callers can limit the size of form data with http.MaxBytesReader. 漏洞公开时间:2023-03-01 02:15:00 漏洞创建时间:2023-03-21 17:04:02 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2022-41725 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | nvd | https://go.dev/issue/58006 | | | nvd | https://go.dev/cl/468124 | | | nvd | https://pkg.go.dev/vuln/GO-2023-1569 | | | nvd | https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E | | | redhat | https://access.redhat.com/security/cve/CVE-2022-41725 | | | redhat_bugzilla | https://go.dev/issue/58006 | https://bugzilla.redhat.com/show_bug.cgi?id=2178488 | | redhat_bugzilla | https://go.dev/cl/468124 | https://bugzilla.redhat.com/show_bug.cgi?id=2178488 | | redhat_bugzilla | https://pkg.go.dev/vuln/GO-2023-1569 | https://bugzilla.redhat.com/show_bug.cgi?id=2178488 | | redhat_bugzilla | https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E | https://bugzilla.redhat.com/show_bug.cgi?id=2178488 | | ubuntu | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41725 | https://ubuntu.com/security/CVE-2022-41725 | | ubuntu | https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E | https://ubuntu.com/security/CVE-2022-41725 | | ubuntu | https://go.dev/issue/58006 | https://ubuntu.com/security/CVE-2022-41725 | | ubuntu | https://nvd.nist.gov/vuln/detail/CVE-2022-41725 | https://ubuntu.com/security/CVE-2022-41725 | | ubuntu | https://launchpad.net/bugs/cve/CVE-2022-41725 | https://ubuntu.com/security/CVE-2022-41725 | | ubuntu | https://security-tracker.debian.org/tracker/CVE-2022-41725 | https://ubuntu.com/security/CVE-2022-41725 | | debian | | https://security-tracker.debian.org/tracker/CVE-2022-41725 | | cve_search | | https://go.dev/issue/58006 | | cve_search | | https://go.dev/cl/468124 | | cve_search | | https://pkg.go.dev/vuln/GO-2023-1569 | | cve_search | | https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E | | mageia | | http://advisories.mageia.org/MGASA-2023-0109.html | | nvd | https://go.dev/issue/58006 | | | nvd | https://go.dev/cl/468124 | | | nvd | https://pkg.go.dev/vuln/GO-2023-1569 | | | nvd | https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E | | | debian | https://security-tracker.debian.org/tracker/CVE-2022-41725 | | </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: 其它 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> 无 </details> 二、漏洞分析结构反馈 影响性分析说明: A denial of service is possible from excessive resource consumption in net/http and mime/multipart. Multipart form parsing with mime/multipart.Reader.ReadForm can consume largely unlimited amounts of memory and disk files. This also affects form parsing in the net/http package with the Request methods FormFile, FormValue, ParseMultipartForm, and PostFormValue. openEuler评分: 7.5 Vector:CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 受影响版本排查(受影响/不受影响): 1.openEuler-20.03-LTS-SP1(1.15.7):受影响 2.openEuler-20.03-LTS-SP3(1.15.7):受影响 3.openEuler-22.03-LTS(1.17.3):受影响 4.openEuler-22.03-LTS-SP1(1.17.3):受影响 修复是否涉及abi变化(是/否): 1.openEuler-20.03-LTS-SP1(1.15.7):否 2.openEuler-20.03-LTS-SP3(1.15.7):否 3.openEuler-22.03-LTS(1.17.3):否 4.openEuler-22.03-LTS-SP1(1.17.3):否 三、漏洞修复 安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2023-1192
评论 (
14
)
登录
后才可以发表评论
状态
已完成
待办的
已挂起
进行中
已完成
已拒绝
负责人
未设置
jing-rui
jing-rui
负责人
协作者
+负责人
+协作者
标签
CVE/UNAFFECTED
sig/sig-golang
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (30)
标签 (55)
master
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-Next
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS-SP3
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-24.03-LTS
openEuler-25.09
openEuler-25.03
openEuler-24.09
openEuler-22.03-LTS-SP1
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS-Next
openEuler-20.03-LTS-SP1
openEuler-22.03-LTS
openEuler-20.03-LTS-SP3
openEuler-23.09
openEuler-23.03
openEuler-22.09
openEuler-22.03-LTS-LoongArch
openEuler-20.03-LTS-SP2
openEuler-20.03-LTS
openEuler-21.03
openEuler-20.09
openEuler-20.03-LTS-Next
openEuler-21.09
openEuler1.0
openEuler1.0-base
openEuler-25.09-release
openEuler-24.03-LTS-update-20250919
openEuler-24.03-LTS-SP1-update-20250919
openEuler-24.03-LTS-SP2-update-20250919
openEuler-24.03-LTS-update-20250912
openEuler-20.03-LTS-SP4-update-20250905
openEuler-22.03-LTS-SP4-update-20250905
openEuler-22.03-LTS-SP3-update-20250905
openEuler-24.03-LTS-SP1-update-20250905
openEuler-24.03-LTS-SP2-update-20250829
openEuler-24.03-LTS-SP2-update-20250711
openEuler-20.03-LTS-SP4-update-20250704
openEuler-22.03-LTS-SP3-update-20250704
openEuler-22.03-LTS-SP4-update-20250704
openEuler-24.03-LTS-update-20250704
openEuler-24.03-LTS-SP1-update-20250704
openEuler-24.03-LTS-SP2-release
openEuler-24.03-LTS-update-20250418
openEuler-22.03-LTS-SP3-update-20250418
openEuler-24.03-LTS-SP1-update-20250418
openEuler-22.03-LTS-SP4-update-20250418
openEuler-20.03-LTS-SP4-update-20250418
openEuler-25.03-release
openEuler-24.03-LTS-update-20250228
openEuler-24.03-LTS-SP1-update-20250228
openEuler-22.03-LTS-SP3-update-20250228
openEuler-20.03-LTS-SP4-update-20250228
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP4-update-20241227
openEuler-24.03-LTS-update-20241206
openEuler-22.03-LTS-SP1-update-20241115
openEuler-20.03-LTS-SP4-update-20241115
openEuler-22.03-LTS-SP3-update-20241115
openEuler-24.03-LTS-update-20241115
openEuler-22.03-LTS-SP4-update-before-20241025
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200929
openEuler-20.03-LTS-20200606
openEuler-20.03-LTS-tag
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/golang.git
git@gitee.com:src-openeuler/golang.git
src-openeuler
golang
golang
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册