fix(vex): a CVE a scan no longer finds is not stated fixed (#994)
A complete scan that no longer finds a CVE used to state VEX `fixed` (Weg A), and the exports read `resolved_at` without a statement as `fixed` (Weg B). A CVE can disappear without a fix, so neither holds. - resolve_gone only sets resolved_at; it states nothing. - CveAlert::statement() ignores the `fixed` scans inferred that way (by_scan, fixed, no reason given); a Yocto recipe's statement gives its reason and still counts. status_of, is_resolved_by_vex, the exports, the CVE groups and the ENISA drafts all read through it. - status_of: no statement means under_investigation, gone or not. - ENISA: the final report is dated only by a person's `fixed`; an exploited CVE that is merely gone reads "no longer found", not fixed. - The CVE list (API and MCP) leaves the inferred statements out, so the dashboard no longer shows them. - scripts/vex-994-cleanup.js counts the stored ones and removes them only with apply=true; dry run by default, counts only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
This commit is contained in:
1 parent
f5848f7bad
commit
63eebef021
16 files changed
+380
-130
No files matched your search
+6
-5
@@ -684,11 +684,12 @@ Justifications for `not_affected` (OpenVEX): `component_not_present`,
|
||||
`inline_mitigations_already_exist`. A statement without what its status
|
||||
requires is refused.
|
||||
|
||||
A scan keeps the status current: when a complete CVE check no longer finds an
|
||||
alert (the component was removed or updated past the fix), it is marked
|
||||
resolved, and one nobody assessed, or assessed as affected, becomes `fixed`.
|
||||
A `not_affected` or `fixed` someone stated is never changed by a scan. If the
|
||||
vulnerability comes back, the scan's `fixed` is withdrawn. A Yocto recipe's
|
||||
When a complete CVE check no longer finds an alert, it is marked resolved and
|
||||
keeps its status: a scan never states `fixed` for it, since a vulnerability
|
||||
can disappear without a fix. An alert nobody assessed stays
|
||||
`under_investigation` in the exports until someone states its status. A
|
||||
`fixed` scans stated that way before is not read as a statement. A statement
|
||||
someone made is never changed by a scan. A Yocto recipe's
|
||||
`CVE_STATUS` and `CVE:` patches are stated by the scan too (see
|
||||
[Embedded Linux / Yocto](/guide/yocto#recipe-inventory)), likewise never over a
|
||||
person's statement.
|
||||
|
||||
+11
-8
@@ -55,10 +55,12 @@ Read-only roles see the statements but cannot assess.
|
||||
|
||||
## What a scan changes
|
||||
|
||||
When a complete scan no longer finds a vulnerability (the component was
|
||||
removed or updated), it is marked fixed and "Stated by" shows **Scan**. A
|
||||
"Not affected" or "Fixed" stated by a person is never changed by a scan. If
|
||||
the vulnerability comes back, the scan withdraws its "Fixed".
|
||||
When a complete scan no longer finds a vulnerability, it is no longer open,
|
||||
and its assessment stays as it is. A scan never states "Fixed" for it: a
|
||||
vulnerability can disappear without a fix, for example through other scan
|
||||
data, an incomplete inventory or a changed identification. Only a person
|
||||
states "Fixed". A "Fixed" a scan stated that way before is not read as a
|
||||
statement. A statement made by a person is never changed by a scan.
|
||||
|
||||
A vulnerability that is "Not affected" or "Fixed" (stated by a person, by the
|
||||
scan or in an imported VEX document) raises no notification and gets no issue
|
||||
@@ -142,10 +144,11 @@ CVE) or it affects several components. The draft
|
||||
yourself, through the CSIRT of your main establishment.
|
||||
|
||||
Through the API you can give the time the deadlines run from (`aware_at`);
|
||||
without it, the first scan that found the exploitation counts. For a fixed
|
||||
vulnerability the draft carries the date of the fix (field v22) and the final
|
||||
report's deadline. A vulnerability assessed "Not affected", or fixed before
|
||||
any scan found it exploited, gets no draft. Actively
|
||||
without it, the first scan that found the exploitation counts. For a vulnerability
|
||||
assessed "Fixed" the draft carries the date of that statement (field v22) and
|
||||
the final report's deadline. One a scan only no longer finds leaves both open
|
||||
until someone states "Fixed". A vulnerability assessed "Not affected", or
|
||||
fixed or no longer found before any scan found it exploited, gets no draft. Actively
|
||||
exploited vulnerabilities are also in the evidence pack as
|
||||
`enisa-drafts.json`. When ENISA changes the glossary we update the fields;
|
||||
the version in a draft shows which one it follows.
|
||||
+12
-9
@@ -58,11 +58,13 @@ Rollen mit Lesezugriff sehen die Aussagen, können aber nicht bewerten.
|
||||
|
||||
## Was die Prüfung ändert
|
||||
|
||||
Findet eine vollständige Prüfung eine Schwachstelle nicht mehr (Komponente
|
||||
entfernt oder aktualisiert), wird sie als behoben markiert; „Aussage von“
|
||||
zeigt dann **Prüfung**. Eine Aussage „Nicht betroffen“ oder „Behoben“, die
|
||||
eine Person gemacht hat, ändert die Prüfung nie. Taucht die Schwachstelle
|
||||
wieder auf, nimmt die Prüfung ihr „Behoben“ zurück.
|
||||
Findet eine vollständige Prüfung eine Schwachstelle nicht mehr, gilt sie
|
||||
nicht mehr als offen; ihre Bewertung bleibt, wie sie ist. Die Prüfung setzt
|
||||
dafür nie „Behoben“: Eine Schwachstelle kann auch ohne Behebung
|
||||
verschwinden, etwa durch andere Scandaten, eine unvollständige Erfassung oder
|
||||
eine geänderte Zuordnung. „Behoben“ sagt nur eine Person. Ein „Behoben“, das
|
||||
die Prüfung früher so gesetzt hat, gilt nicht als Aussage. Eine Aussage, die
|
||||
eine Person gemacht hat, ändert die Prüfung nie.
|
||||
|
||||
Eine Schwachstelle mit „Nicht betroffen“ oder „Behoben“ (von einer Person,
|
||||
der Prüfung oder aus einem importierten VEX-Dokument) löst keine
|
||||
@@ -151,10 +153,11 @@ die CVE dazu) oder sie mehrere Komponenten betrifft. Der Entwurf
|
||||
|
||||
Den Zeitpunkt, ab dem die Fristen laufen, können Sie über die API angeben
|
||||
(`aware_at`); ohne ihn gilt die erste Prüfung, die die Ausnutzung fand. Ist
|
||||
eine behobene Schwachstelle bekannt, trägt der Entwurf das Datum der Behebung
|
||||
(Feld v22) und die Frist des Abschlussberichts. Ist sie als „Nicht
|
||||
betroffen“ bewertet, oder wurde sie behoben, bevor eine Prüfung ihre
|
||||
Ausnutzung fand, gibt es keinen Entwurf. Aktiv ausgenutzte Schwachstellen stehen als
|
||||
eine Schwachstelle als „Behoben“ bewertet, trägt der Entwurf das Datum dieser
|
||||
Aussage (Feld v22) und die Frist des Abschlussberichts. Findet die Prüfung sie
|
||||
nur nicht mehr, bleibt beides offen, bis jemand „Behoben“ sagt. Ist sie als
|
||||
„Nicht betroffen“ bewertet, oder wurde sie behoben oder nicht mehr gefunden,
|
||||
bevor eine Prüfung ihre Ausnutzung fand, gibt es keinen Entwurf. Aktiv ausgenutzte Schwachstellen stehen als
|
||||
`enisa-drafts.json` auch im Nachweispaket. Ändert ENISA das Glossar,
|
||||
passen wir die Felder an; die Version im Entwurf zeigt, nach welchem er
|
||||
erstellt wurde.
|
||||
Reference in new issue
Block a user