Skip to content

add cve-check script

Thomas Perale via buildroot buildroot 1 version Applied

Status from this message: Applied series to 2025.02.x and 2025.08.x, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 5 repliesApplied

Changes in v2 from the cover letter

- Add support for only enriching the current content of the SBOM without analysis.
- Improve the CVE to CycloneDX matching of metadata.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4support/scripts/cve.py: don't call download_nvdsupport/scripts/cve.py support/scripts/pkg-stats+6 -21 reply
2/4support/scripts/cve-check: add cve-check scriptsupport/scripts/cve-check support/scripts/cve.py+346 -01 reply
3/4DEVELOPERS: add Thomas Perale to cve-check & cve.pyDEVELOPERS+2 -01 reply
4/4docs/manual: add information on CycloneDXdocs/manual/common-usage.adoc+27 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Buildroot] [PATCH v2 0/4] add cve-check script

Enriches the input CycloneDX SBOM with vulnerability information and analysis from the NVD database.

The NVD database is cloned using a mirror of it and the content is compared locally. By default the path 'dl/buildroot-nvd' is used.

Example usage to analyse vulnerabilities of an input CycloneDX SBOM:

$ make show-info | utils/generate-cyclonedx | support/script/cve-check

The 'cve-check' can also be used to only enrich the vulnerabilities present on the input SBOM with a set metadata (description, cvss, references, ...) without applying an analysis.

With the following command the vulnerabilities ignored by Buildroot present in the CycloneDX SBOM are enriched with description, cvss, etc
...

$ make show-info | utils/generate-cyclonedx | support/script/cve-check --enrich-only

v1 --> v2:
- Add support for only enriching the current content of the SBOM without analysis.
- Improve the CVE to CycloneDX matching of metadata.

Thomas Perale (4):
support/scripts/cve.py: don't call download_nvd support/scripts/cve-check: add cve-check script
DEVELOPERS: add Thomas Perale to cve-check & cve.py docs/manual: add information on CycloneDX

 DEVELOPERS                    |   2 +
 docs/manual/common-usage.adoc |  27 +++
 support/scripts/cve-check     | 323 ++++++++++++++++++++++++++++++++++
 support/scripts/cve.py        |  29 ++-
 support/scripts/pkg-stats     |   2 +
 5 files changed, 381 insertions(+), 2 deletions(-)
 create mode 100755 support/scripts/cve-check
Signature · 6 lines
2.51.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot