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

Đang mở Phù hợp với người mới
#2,546 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 5 ngày

@Jean-Regis-M đang làm issue này rồi.

Từ ngày 28/11/2026.

  • #2547 của @Jean-Regis-M — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
security

Hướng nghiên cứu

Bắt đầu từ parse_curl_advisory trong trình nhập curl_importer_v2, nơi events được đọc như events[1] và mọi sự kiện fixed khác đều bị loại bỏ. Sửa để thu thập tất cả sự kiện fixed từ các khoảng SEMVER vào fixed_version_range, sau đó thêm một kiểm thử với advisory có nhiều bản vá, chẳng hạn CURL-CVE-2026-107929. Hoàn thành khi cả bốn phiên bản đã sửa được lưu và trình nhập giữ đường dẫn UnboundLocalError từ #2214 ngoài phạm vi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
722
Fork
364
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aboutcode-org/vulnerablecode

Tất cả issue của aboutcode-org/vulnerablecode

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.