低危 gradle gradle 从非可信控制范围包含功能例程
CVE编号
CVE-2022-31156利用情况
暂无补丁情况
官方补丁披露时间
2022-07-15漏洞描述
Gradle is a build tool. Dependency verification is a security feature in Gradle Build Tool that was introduced to allow validation of external dependencies either through their checksum or cryptographic signatures. In versions 6.2 through 7.4.2, there are some cases in which Gradle may skip that verification and accept a dependency that would otherwise fail the build as an untrusted external artifact. This can occur in two ways. When signature verification is disabled but the verification metadata contains entries for dependencies that only have a `gpg` element but no `checksum` element. When signature verification is enabled, the verification metadata contains entries for dependencies with a `gpg` element but there is no signature file on the remote repository. In both cases, the verification will accept the dependency, skipping signature verification and not complaining that the dependency has no checksum entry. For builds that are vulnerable, there are two risks. Gradle could download a malicious binary from a repository outside your organization due to name squatting. For those still using HTTP only and not HTTPS for downloading dependencies, the build could download a malicious library instead of the expected one. Gradle 7.5 patches this issue by making sure to run checksum verification if signature verification cannot be completed, whatever the reason. Two workarounds are available: Remove all `gpg` elements from dependency verification metadata if you disable signature validation and/or avoid adding `gpg` entries for dependencies that do not have signature files.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接 |
|
---|---|
https://docs.gradle.org/7.5/release-notes.html | |
https://github.com/gradle/gradle/security/advisories/GHSA-j6wc-xfg8-jx2j |
受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | gradle | gradle | * | From (including) 6.2.0 | Up to (excluding) 7.5.0 | ||||
运行在以下环境 | |||||||||
系统 | debian_10 | gradle | * | Up to (excluding) 4.4.1-6 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | gradle | * | Up to (excluding) 4.4.1-13 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | gradle | * | Up to (excluding) 4.4.1-18 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | gradle | * | Up to (excluding) 4.4.1-20 | |||||
- 攻击路径 本地
- 攻击复杂度 困难
- 权限要求 管控权限
- 影响范围 有限影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-347 | 密码学签名的验证不恰当 |
CWE-829 | 从非可信控制范围包含功能例程 |
Exp相关链接

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