cve-scan
Match a source's installed packages against known vendor advisories for its detected release, narrow to the CVEs that are genuinely still unpatched (installed_version < fixed_version, using the same family-aware comparator the translation engine uses), and report them. With --sign the verdict is Ed25519-signed via the same /v1/attest/sign path verify uses, so the result is an audit-grade proof rather than a printout.
On EL 8 and later an advisory can fix a package in one AppStream module stream only (Red Hat fixes redis CVEs once in stock redis 6.2 and again in the redis:7 module). cve-scan reads each rpm package's stream from the rpm database, and a fix that Red Hat's or Oracle's OVAL scopes to a stream is matched only to a package installed from that stream, so a stock redis 6.2 host is not reported against, or patched toward, a redis:7 build. AlmaLinux and Rocky Linux advisories are matched to every build of the package: their feeds do not state the stream reliably.
Versions are ordered as the distribution's own tool orders them: rpm's epoch, then version, then release; apk-tools 3; dpkg. Releases before 2.7.0 ordered some pairs differently and could read a vulnerable package as fixed, so a host scanned by one of them is worth scanning again; the 2.7.0 release notes list the shapes.
A finding whose fix comes from a Freexian ELA reads (fixed: <version>, Freexian ELTS (paid)): that version is in Freexian's paid Extended LTS archive, and cannot be installed without a Freexian subscription.
Every installed kernel is reported, since an older one can still be booted. patch judges only the newest one on an rpm host.
Never billable — a cve_scan records no metered charge. It is license-gated: a scan runs against a VM the account has licensed. On a VM that is not yet licensed, cve-scan now auto-claims a seat when the account has capacity, so the scan just works and the host becomes licensed; the seat is a lightweight license, never a metered charge. A 402 is returned only when the account is genuinely out of capacity (free quota, credits and the per-account cap all exhausted) — not as a licensing step. When a scan claims a seat the command says so on stderr.
A claimed seat stays claimed: there is no command that releases it, so scanning a host you never intend to migrate uses capacity you might have wanted for one you do. Seats go to hosts in the order they are scanned, so on a 10-seat account a scan of a larger fleet seats the first ten unlicensed hosts and refuses the rest. To choose which hosts hold seats, license them first. The capacity check happens before the scan and the seat is claimed after it, so hosts scanned at the same time by separate cve-scan processes can all pass the check; the ones past capacity are still scanned, are not seated, and get a usage not recorded note carrying the quota refusal.
Needs credentials — the advisory lookup and any --sign go to the API.
A host with no billable identity is refused before the scan, with no API call (a host with neither systemd nor dbus, such as Debian 7, has no machine-id file), and the refusal names the vrtmv identity command that gives it a stamp; for a host read with --ssh, by cve-scan or cve-scan-fleet, the command for that host. Run it, then scan the host again.
vrtmv cve-scan --root /mnt/snap/web01 --sign -o report/
vrtmv cve-scan --image host.qcow2 --arch x86_64 --json
vrtmv cve-scan --ssh deploy@web01.corp --sudo -o report/
| Flag | Purpose |
|---|---|
--root / --image / --ssh | Exactly one source (see Sources). |
--ssh-port, --ssh-key, --jump, --sudo | SSH collection options. |
--arch <arch> | Scope arch-specific advisories (e.g. x86_64). Advisories with no arch recorded always apply. |
--sign | Ask the API to Ed25519-sign the report. Needs credentials. A report that cannot be signed is written unsigned, with unsigned_because in the JSON, and the run exits 6. |
--allow-unsigned | With --sign: a report that cannot be signed is a warning, and the run exits 0. |
-o, --out <path> | Write the scan report JSON here. |
--json | Emit the report as JSON instead of a text summary. |
Over SSH
With --ssh, cve-scan and cve-scan-fleet fetch only what the scan reads: /etc, the os-release files, the package database (for dpkg, var/lib/dpkg/status alone) and /var/lib/dbus/machine-id, plus the host-hint listing. The other commands' --ssh collection also fetches the rest of the package database, the systemd unit trees and the container directories, and takes six more listings, /boot among them (see Sources). The report is the same either way.
A fleet: hosts that report one identity
cve-scan-fleet scans the sources of a manifest, or of repeated --root/--image/--ssh, and writes one report for the fleet. Its usage post is what seats an unlicensed host, so it waits until every host is scanned. Hosts that report one identity (see identity) are clones of one image, or one host listed under several names. Each of them is refused: no usage post, so no seat, and its findings are left out of the report. Its row has the state error and a reason that names the hosts and the file the identity came from, and the JSON report lists them under refused_shared_identity. The other hosts are reported and seated as before, and the run exits non-zero. Run vrtmv identity on each clone, or remove the second name from the manifest, and scan again.
A quiet scan is not always a clean one
Zero findings has three meanings, and only one of them is "clean":
- No advisory data for the release. The lookup joins the advisory tables for the detected release; with no rows there it matches nothing before any version comparison. The report carries
advisories_for_release(how many advisory rows the Index holds) and printsadvisory data NONE for this release— this scan proves nothing. EOL releases are the likeliest to have no feed and the likeliest to need scanning. - End of life. Even with a feed, a release the vendor has stopped patching has a frozen feed. The report carries
support_status(supported,eol-no-extension,eol-extension-active,eol-extension-lapsed, or absent) and prints an END OF LIFE banner where a quiet result is unmeasured rather than safe. - Genuinely patched. A supported, covered release with an empty
findingsarray.
If you build on --json, treat empty findings as clean only when advisories_for_release > 0 and support_status == "supported". Fail closed — otherwise the least-covered hosts in an estate read as its safest.
Counting CVEs: the summary
The findings array has one entry per CVE, package and advisory. One CVE often lands on several packages of a host (a kernel CVE on kernel, kernel-core and kernel-modules), so the number of findings runs several times the number of CVEs and is not a vulnerability count. The report's summary object is the count to quote:
"summary": {
"scale": "vrtmv-severity-1",
"findings": 924,
"distinct_cves": 219,
"distinct_by_severity": { "critical": 6, "high": 180, "medium": 28, "low": 5, "unknown": 0 },
"crit_high_distinct": 186,
"graded_by": { "vendor": 219, "cvss_v3": 0 }
}
findingsis the length of thefindingsarray.distinct_cvescounts each CVE once, however many packages it lands on.distinct_by_severityputs each of those CVEs in one grade of a single scale:critical,high,medium,loworunknown. The five numbers add up todistinct_cves.crit_high_distinctiscriticalplushigh.graded_bysays where the grades came from: the vendor's own grade, or the CVSS v3 base score where the vendor gave none.unknownis the rest.scalenames the mapping below. If the mapping ever changes, the name changes with it.
The text output prints the same counts as two rows of its box, distinct CVEs (with the five grades) and critical + high, when the scan has findings.
One scale
A vendor's own grade comes first. Each vendor names its grades differently, so the summary maps the words, ignoring case:
| Vendor's grade | Used by | Grade in the summary |
|---|---|---|
| Critical | Red Hat, Rocky Linux, AlmaLinux, Oracle Linux, Ubuntu | critical |
| Important | Red Hat, Rocky Linux, AlmaLinux, Oracle Linux | high |
| High | Debian (urgency), Ubuntu (priority) | high |
| Moderate | Red Hat, Rocky Linux, AlmaLinux, Oracle Linux | medium |
| Medium | Debian, Ubuntu | medium |
| Low | all of them | low |
| Negligible | Ubuntu | low |
| Unimportant | Debian | low |
Another vendor's grade maps by the same words: critical; important or high; moderate, medium or normal; low or minimal.
A CVE with no vendor grade takes the band of its CVSS v3 base score, from NVD:
| CVSS v3 base score | Grade in the summary |
|---|---|
| 9.0 to 10.0 | critical |
| 7.0 to 8.9 | high |
| 4.0 to 6.9 | medium |
| 0.0 to 3.9, including 0.0 ("None" in CVSS v3.1) | low |
"No vendor grade" covers Debian's not yet assigned and end-of-life, a CVE Ubuntu has not triaged, an advisory that carries no grade, and any word not in the table.
unknown means neither: no vendor grade and no CVSS v3 score. It is not low. Read it as ungraded.
One CVE often has several findings on a host, one per package and advisory, and they can carry different grades (two advisories graded apart, or one graded and one not). The CVE's vendor grade on that host is the highest vendor grade among its findings, and CVSS is used only when none of them has one. So on one host a CVSS score never overrides a vendor's grade, higher or lower. Any grade outranks unknown. In the host's graded_by, the CVE counts as vendor when any of its findings has a vendor grade, and as cvss_v3 when none has one and the CVE has a CVSS v3 score. An unknown CVE is in neither.
In a fleet report
cve-scan-fleet keeps a summary on each host's row in vms, built as above from that host's findings, and adds one for the fleet at the top of the report:
"summary": {
"scale": "vrtmv-severity-1",
"hosts_counted": 37,
"findings": 18240,
"distinct_cves": 1402,
"distinct_by_severity": { "critical": 21, "high": 388, "medium": 790, "low": 190, "unknown": 13 },
"crit_high_distinct": 409,
"graded_by": { "vendor": 1371, "cvss_v3": 18 },
"exposures": 6115,
"crit_high_exposures": 1830
}
distinct_cvescounts each CVE once across the whole fleet, however many hosts have it.- A CVE that hosts grade differently (Ubuntu and Red Hat often do) counts in the highest grade any host gives it, so the five grades still add up to
distinct_cves. Each host grades the CVE as above, and the vendor-first rule holds within one host, not across hosts: Debian leaves many CVEsnot yet assigned, so a Debian host can grade a CVEcriticalfrom its CVSS score, and that outranks a Red Hat host'smediumfrom its vendor. - The fleet
graded_bycounts each CVE once, by the source of its winning grade:vendorwhen any host reached that grade from a vendor grade, otherwisecvss_v3. A CVE gradedunknowneverywhere is in neither. exposurescounts host and CVE pairs: a CVE on 40 hosts is 40 exposures. It measures how far the CVEs reach, and it is not a count of vulnerabilities.crit_high_exposurescounts the pairs whose grade on that host iscriticalorhigh.hosts_countedis the number of hosts the summary covers: every host that was scanned. A host that was not scanned (stateerror, or left unscanned by--stop-on-error) has nosummaryon its row and adds nothing to the fleet's. Anot_measuredhost is inhosts_countedbut has no findings, so it adds no CVEs: the scan measured nothing on it (no advisory data for its release, or the release is past its end of life or in extended support), not that it is clean. Thetotalssay how many hosts of each kind there were, and a fleet summary with anyerror, unscanned ornot_measuredhost is a floor, not the fleet's whole count.
Each host's row keeps its summary and its findings, so a finished fleet report answers "how many critical and high CVEs, on which hosts" without scanning again. The top_cves rows carry their fleet grade as severity. fleet-cve-scan.md shows the fleet summary above the per-host table, which gains a distinct CVE and a critical + high column, and fleet-cve-scan.csv adds distinct_cves and crit_high_distinct as its last two columns.
The summary is computed from the findings and is not itself signed. A signed report's findings are signed, and with the mapping named by scale anyone can compute the same summary from them.
To act on the findings, see patch, which bumps exactly the still-vulnerable packages to their vendor-fixed version.
New to vrtmv? Sign up free for 10 migrations, or get a free assessment: run it on one hard host and we review the parity report with you.