Homebrew Advisory Database
收藏资源简介:
Homebrew包的OSV格式漏洞记录。每条记录描述影响homebrew-core公式的CVE,以及通过应用补丁修复的Homebrew版本+修订号。这是一个早期演示,目前仅涵盖公式的`patch`块声明(或推断)为已解决的CVE,源自`brew info --json=v2`中的`patches[].resolves`。记录遵循OSV模式,使用`Homebrew`生态系统、`pkg:brew/<name>` purls和`BREW-<formula>-<CVE>` id。数据以CC0 1.0许可证发布。
OSV-formatted vulnerability records for Homebrew packages. Each entry describes a Common Vulnerabilities and Exposures (CVE) affecting a homebrew-core formula, alongside the Homebrew version and revision number where the vulnerability is remediated via applied patches. This is an early-stage demonstration dataset that currently only covers CVEs whose fixes are either declared or inferred through the formula's `patch` blocks, sourced from the `patches[].resolves` field in the output of the `brew info --json=v2` command. The records follow the OSV schema, utilizing the `Homebrew` ecosystem, `pkg:brew/<name>` purls, and `BREW-<formula>-<CVE>` identifiers. The dataset is released under the CC0 1.0 Universal Public Domain Dedication.
数据集概述:Homebrew Advisory Database
该数据集是一个针对 Homebrew 包管理器(homebrew-core 仓库)的漏洞记录集合,以 OSV(Open Source Vulnerabilities)格式 存储。每条记录描述一个影响特定 Homebrew 软件包(formula)的 CVE,并指明该漏洞在哪个 Homebrew 版本(含修订号)中被补丁修复。
记录格式与结构
- 格式标准:遵循 OSV schema。
- 生态系统:使用
Homebrew作为生态系统标识。 - PURL:格式为
pkg:brew/<name>。 - 记录ID:格式为
BREW-<formula>-<CVE>(例如BREW-lrzsz-CVE-2018-10195)。 - 关键字段:
- upstream:链接到原始的 CVE 来源。
- affected 中的
ranges:使用ECOSYSTEM类型范围,introduced通常为0(表示首次引入),fixed指向修复该漏洞的 Homebrew 版本+修订号(如0.12.20_1)。 - ecosystem_specific:包含修复补丁信息(
fix值为patch),以及补丁的 URL 和应用的文件列表。
版本表示规则
Homebrew 版本由上游版本和可选的 _N 修订后缀组成。例如:1.81.6_5 < 1.81.6_6 < 1.82.0。
数据生成与维护
- 生成工具:通过
brew vulns --osv-export命令生成。 - 更新频率:由
Regenerate工作流每天重新生成。 - 验证机制:每次提交(push)都会自动验证其是否符合 OSV JSON schema。
最新状态
- 注册状态:尚未在 osv.dev 上注册。计划将该仓库转移到 Homebrew 组织,然后提交新的数据源申请。
- 上游待办事项:
- 在 ossf/osv-schema 中注册
BREW-ID 前缀和Homebrew生态系统(当前验证工作流会临时将这些值补入模式枚举中)。 - 在 package-url/purl-spec 中注册
pkg:brewPURL 类型(参见 PR #796 和 issue #254)。 - 在 osv.dev 的
purl_helpers.py中添加对pkg:brew的处理,并在_ecosystems.py中添加 Homebrew 版本比较器。
- 在 ossf/osv-schema 中注册
许可协议
该数据集中的漏洞数据采用 CC0 1.0 协议发布。




