Adding underscore(_) to the regex, as when any version contains underscore in the database we're skipping this CVE for the resource.
In aqua-db we've versions like 1.8.0_371 so for these CVE's even when there are other vulnerable versions while comparing whether it is vulnerable or we're failing and skipping the CVE.
Which versioning convention supports underscores? We need to define how to handle underscores.
Which versioning convention supports underscores? We need to define how to handle underscores.
If any CVE has something like cpe:2.3:a:oracle:jdk:1.8.0:update371:* we treat it as 1.8.0_371 in aqua, so we're getting _ in the affected versions and this is failing so we're unable to detect these CVE's for other vulnerable versions as well.
Eg: https://nvd.nist.gov/vuln/detail/CVE-2023-22049 , https://nvd.nist.gov/vuln/detail/CVE-2023-22045
Why don't you use - instead of _?