Skip to content

fix(detector/vuls2): filter VulnerabilityData by Root ID #2247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

MaineK00n
Copy link
Collaborator

If this Pull Request is work in progress, Add a prefix of “[WIP]” in the title.

What did you implement:

Fixes #2246

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

$ curl -s --create-dirs --output results/2025-06-19T05-00-00+0900/rhel_90.json https://raw.githubusercontent.com/vulsio/integration/refs/heads/main/data/results/rhel_90.json

$ cat << EOS > config.toml
version = "v2"

[cveDict]
type = "sqlite3"

[ovalDict]
type = "sqlite3"

[gost]
type = "sqlite3"

[exploit]
type = "sqlite3"

[metasploit]
type = "sqlite3"

[kevuln]
type = "sqlite3"

[cti]
type = "sqlite3"

[vuls2]
repository = "ghcr.io/vulsio/vuls-nightly-db@sha256:788456a519e7f205eb0395410f296535927c8510948937badd190bff3c2156d7"

[default]

[servers]

EOS

$ vuls -v
vuls-v0.32.0-build-20250619_063336_6179618

$ rm vuls.db

$ for i in $(seq 10); do    vuls report --refresh-cve 2025-06-19T05-00-00+0900 &> /dev/null;   jq -r '.scannedCves."CVE-2023-5517".distroAdvisories | length' results/2025-06-19T05-00-00+0900/rhel_90.json; done
1
1
1
1
1
1
1
1
1
1

Checklist:

You don't have to satisfy all of the following.

  • Write tests
  • Write documentation
  • Check that there aren't other open pull requests for the same issue/feature
  • Format your source code by make fmt
  • Pass the test by make test
  • Provide verification config / commands
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES

Reference

@MaineK00n MaineK00n requested a review from shino June 18, 2025 21:41
@MaineK00n MaineK00n self-assigned this Jun 18, 2025
Copy link
Collaborator

@shino shino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥂

@MaineK00n MaineK00n merged commit 5de4334 into master Jun 19, 2025
7 checks passed
@MaineK00n MaineK00n deleted the MaineK00n/vuls2 branch June 19, 2025 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DistroAdvisories Fluctuation with Same CVE References in RedHat OVALv2
2 participants