中危 moby/buildkit 信息泄露漏洞(CVE-2023-26054)

CVE编号

CVE-2023-26054

利用情况

暂无

补丁情况

官方补丁

披露时间

2023-03-07
漏洞描述
BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. In affected versions when the user sends a build request that contains a Git URL that contains credentials and the build creates a provenance attestation describing that build, these credentials could be visible from the provenance attestation. Git URL can be passed in two ways: 1) Invoking build directly from a URL with credentials. 2) If the client sends additional version control system (VCS) info hint parameters on builds from a local source. Usually, that would mean reading the origin URL from `.git/config` file. When a build is performed under specific conditions where credentials were passed to BuildKit they may be visible to everyone who has access to provenance attestation. Provenance attestations and VCS info hints were added in version v0.11.0. Previous versions are not vulnerable. In v0.10, when building directly from Git URL, the same URL could be visible in `BuildInfo` structure that is a predecessor of Provenance attestations. Previous versions are not vulnerable. This bug has been fixed in v0.11.4. Users are advised to upgrade. Users unable to upgrade may disable VCS info hints by setting `BUILDX_GIT_INFO=0`. `buildctl` does not set VCS hints based on `.git` directory, and values would need to be passed manually with `--opt`.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 mobyproject buildkit * From
(including)
0.10.0
Up to
(excluding)
0.11.4
运行在以下环境
系统 alpine_3.18 docker * Up to
(excluding)
23.0.2-r0
运行在以下环境
系统 alpine_3.19 docker * Up to
(excluding)
23.0.2-r0
运行在以下环境
系统 fedora_37 moby-engine * Up to
(excluding)
24.0.5-1.fc37
运行在以下环境
系统 fedora_38 moby-engine * Up to
(excluding)
24.0.5-1.fc38
运行在以下环境
系统 fedora_39 moby-engine * Up to
(excluding)
24.0.5-1.fc39
阿里云评分
6.1
  • 攻击路径
    本地
  • 攻击复杂度
    复杂
  • 权限要求
    普通权限
  • 影响范围
    越权影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    数据泄露
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-200 信息暴露
NVD-CWE-noinfo
阿里云安全产品覆盖情况