Elixir Security importer drops affected packages when an advisory lists no patched or unaffected versions
Maintainer thường phản hồi trong vòng 5 ngày
Đá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
- 82/100
Hướng nghiên cứu
Bắt đầu với luồng process_file của trình nhập Elixir Security và quá trình round-trip của advisory qua AdvisoryDataV2.from_dict. Tái hiện bằng một advisory tối giản có CVE hợp lệ và một gói nhưng không có danh sách phiên bản, rồi so sánh cách xử lý với các bản sửa lỗi #2392 và #2521. Hoàn tất khi advisory vẫn được ghi nhận, mục gói không sử dụng được bị bỏ qua và không có dải không hợp lệ nào được tuần tự hóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
An Elixir Security advisory that lists no unaffected_versions and no patched_versions — a normal data shape, a disclosed vulnerability with no patched version yet — produces an AffectedPackageV2 whose version range serializes as 'vers:hex/'.
VersionRange.from_string('vers:hex/') raises ValueError: 'vers:hex/' specifies no version range constraints., so the importer logs Cannot create AffectedPackage with invalid or unknown range and the package is dropped when the advisory round-trips through AdvisoryDataV2.from_dict.
Reproduction: a minimal advisory YAML with a valid CVE and package but no version lists. process_file yields the advisory with affected_version_range == 'vers:hex/', and the package disappears on round-trip.
This is the same defect family as #2387 (Gentoo / apache_httpd), fixed for apache_httpd in #2392 and for Gentoo in #2521.
Fix: build the range only when constraints are non-empty; when there is no usable range, log and skip the package entry. The advisory itself is still recorded (with an empty affected_packages list).
Note: the package is not recorded as affected for that advisory. A deeper fix in AffectedPackageV2.from_dict (tolerate a None range instead of dropping the package) is a behaviour change beyond the importer — flagging for maintainer decision, not bundling it here.
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aboutcode-org/vulnerablecode
-
curl importer keeps only the first fixed version (166 missing across 66 advisories)Có thể đã có người làm @Jean-Regis-M đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aboutcode-org/vulnerablecode#2546 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
ApacheTomcatImporterPipeline truncates milestone fixed versions (e.g. 11.0.0-M6 -> 11.0.0)Có thể đã có người làm @nikolya-ctrl đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
aboutcode-org/vulnerablecode#2533 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
`gitlab_importer_v2` pipeline failing due to malformed YAML fileCó thể đã có người làm @Gowri213 đã nhận 4 ngày trước. Đang mởbug Pipeline: Failure Priority: high
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
aboutcode-org/vulnerablecode#2523 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Affected-by-advisories v2 page returns 500 for a purl with no matching packageCó thể đã có người làm @sanchit955 đã nhận 12 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
aboutcode-org/vulnerablecode#2501 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
OSV v3 parser shares introduced/fixed commit patches across affected packagesCó thể đã có người làm @Celestial-0 đã nhận 25 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
aboutcode-org/vulnerablecode#2489 ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của aboutcode-org/vulnerablecode
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
521xueweihan/HelloGitHub#4599 ·
-
Bug Needs Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
pandas-dev/pandas#72413 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
compiler-explorer/compiler-explorer#9710 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug harness
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mruangutai/harness#2687 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
modal-labs/modal-client#4158 ·