curl importer keeps only the first fixed version (166 missing across 66 advisories)

オープン 初心者向け
#2,546 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

@Jean-Regis-M がすでに取り組んでいます。

2026年11月28日 から。

  • #2547 @Jean-Regis-M による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
security

調査の方向性

curl_importer_v2 インポーターの parse_curl_advisory から始めてください。ここでは events が events[1] として読み取られ、他のすべての fixed イベントが破棄されています。SEMVER 範囲のすべての fixed イベントを fixed_version_range に収集するように変更し、次に CURL-CVE-2026-107929 のような複数の修正を含むアドバイザリでテストを追加してください。4つの修正バージョンがすべて保存され、インポーターが #2214 の UnboundLocalError パスを対象外のままにしていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

curl_importer_v2 only records the first fixed version of each curl advisory.

curl's vuln.json has one introduced/fixed pair for every release line that got a fix. parse_curl_advisory reads events[1] and ignores the rest:

events = get_item(ranges, "events")[1] if len(get_item(ranges, "events")) > 1 else {}

I ran the parser from main (9a9c9b3) over today's feed:

count
advisories 239
fixed versions listed in the SEMVER ranges 405
fixed versions missing from fixed_version_range 166
advisories affected 66

Example, CURL-CVE-2026-107929:

  • feed: fixed in 8.14.3, 8.16.2, 8.20.2 and 8.23.0
  • imported: vers:generic/8.14.3

So for that CVE, 8.23.0 is never stored as a fix. Someone on a newer release line is only pointed at the oldest branch.

I have a small fix with a test that collects every fixed event. With it, the same comparison shows 0 missing. I'd like to open the PR for this.

This is separate from #2214, which handles the UnboundLocalError for advisories without a SEMVER range.

主要言語
Python
スター
722
フォーク
364
平均マージ
2日 22時間
マージ済み PR(30日)
2

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aboutcode-org/vulnerablecode のほかの issue

aboutcode-org/vulnerablecode の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。