You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vet verify --check-cves is a no-op: CVE gating silently passes vulnerable artifacts #13
vet verify --check-cves critical (and high) appears to enforce a CVE policy but does nothing — it passes every artifact, including ones with critical CVEs. A policy author who writes --check-cves critical gets a false sense of enforcement.
Evidence
internal/verify/verify.go — checkCVEs is stubbed to always return clean:
So CVECritical/CVEHigh are never true → no failure is ever raised. The real query path, QueryOSV (HTTP POST to api.osv.dev), exists but is never called — it's orphaned.
Fix
Wire checkCVEs to: parse the stored SBOM (SPDX/CycloneDX) into a package list, batch-query OSV (/v1/querybatch), and set CVECritical/CVEHigh from real severities via the existing QueryOSV shape. Until it's real, fail closed or loudly: if --check-cves is requested but the check can't run (no SBOM, or unimplemented), the gate should error/deny rather than silently pass. Relates to the SBOM-content-parsing gap (separate issue).
Refs: internal/verify/verify.go checkCVEs + QueryOSV; the gate semantics it feeds.
Depends on #15 — real CVE checking needs the SBOM parsed into a package list first. Sequence: #15 (parse SBOM) → #13 (query OSV from the package list, fail-closed until then).
Fixed in #17 (merged). checkCVEs now parses the SBOM (#15) and queries OSV per package, setting CVECritical/CVEHigh from real severities; queryOSV is wired in (no longer orphaned). The false-pass is closed: --check-cves that cannot run (no SBOM / parse error / OSV unreachable) now fails closed with an explicit policy reason rather than silently passing. Covered by an end-to-end regression test (--check-cves + no SBOM → DENY).
Activity
scttfrdmn commentedon Jun 9, 2026
Depends on #15 — real CVE checking needs the SBOM parsed into a package list first. Sequence: #15 (parse SBOM) → #13 (query OSV from the package list, fail-closed until then).
Merge pull request #17 from provabl/feat/sbom-parse-and-cve-osv
scttfrdmn commentedon Jun 9, 2026
Fixed in #17 (merged).
checkCVEsnow parses the SBOM (#15) and queries OSV per package, setting CVECritical/CVEHigh from real severities;queryOSVis wired in (no longer orphaned). The false-pass is closed:--check-cvesthat cannot run (no SBOM / parse error / OSV unreachable) now fails closed with an explicit policy reason rather than silently passing. Covered by an end-to-end regression test (--check-cves+ no SBOM → DENY).feat(release): SLSA L3 provenance pilot; backfill CHANGELOG; copyrigh…
feat: AMI vetting — write attest:vetted on a passing gate (#13) (#22)
feat: vet ami-reference records golden boot-PCR tags (#13) (#24)
docs: runbook step 4 uses --expected-from-ami auto-load (#13) (#25)