Pilot · CVE lookups that fail (NVD rate limit) are silent: retry, cache, and record the gap #387

Closed
opened 2026-09-25 08:58:08 +00:00 by sharang · 0 comments
Owner

Part of #338. Found on 2026-09-25 by running the nightly by hand twice after the scheduled run.

Problem

CVE matching queries NVD live. When NVD lookups fail (most likely rate limiting), the scan still completes and silently reports fewer CVEs:

  • Run 7779: 4 CVEs missing on plc-codesys-proemion and fw-embedded-libs.
  • Run 7782: 220 CVEs missing on plc-codesys-synthetic, plc-codesys-proemion and fw-embedded-libs.

The missing sets differ between runs; the findings did not change, and the scheduled 03:00 runs pass. A customer scan during an NVD outage or rate limit would look complete, with CVEs missing.

Done when

  • A failed or rate-limited CVE lookup is retried with backoff (NVD: about 50 requests per 30 s with a key).
  • What still fails is recorded on the scan run as a skipped stage ("CVE-Abgleich unvollständig: N Komponenten nicht geprüft"). It then shows in the dashboard, and the CRA status for cra-ai-22/33 cannot read as "no violation found" for those components.
  • NVD answers are cached across scans (per CPE, with a TTL), so repeated scans do not spend the budget again.
  • Nightly: a lookup failure is visible in the report rather than a flaky "missing CVE".
Part of #338. Found on 2026-09-25 by running the nightly by hand twice after the scheduled run. ## Problem CVE matching queries NVD live. When NVD lookups fail (most likely rate limiting), the scan still completes and silently reports fewer CVEs: - **Run 7779:** 4 CVEs missing on `plc-codesys-proemion` and `fw-embedded-libs`. - **Run 7782:** 220 CVEs missing on `plc-codesys-synthetic`, `plc-codesys-proemion` and `fw-embedded-libs`. The missing sets differ between runs; the findings did not change, and the scheduled 03:00 runs pass. A customer scan during an NVD outage or rate limit would look complete, with CVEs missing. ## Done when - A failed or rate-limited CVE lookup is retried with backoff (NVD: about 50 requests per 30 s with a key). - What still fails is recorded on the scan run as a skipped stage ("CVE-Abgleich unvollständig: N Komponenten nicht geprüft"). It then shows in the dashboard, and the CRA status for cra-ai-22/33 cannot read as "no violation found" for those components. - NVD answers are cached across scans (per CPE, with a TTL), so repeated scans do not spend the budget again. - Nightly: a lookup failure is visible in the report rather than a flaky "missing CVE".
sharang added this to the Production MVP milestone 2026-09-25 08:58:08 +00:00
sharang added the bughigh labels 2026-09-25 08:58:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#387