-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable os vulns to have version range
The Mariner distro feed will start including version ranges in the OVAL XML. Update models and grype-db transformer to be able to handle this in version 5. Signed-off-by: Will Murphy <will.murphy@anchore.com>
- Loading branch information
1 parent
dcc9d3f
commit 20c715a
Showing
4 changed files
with
78 additions
and
8 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
pkg/process/v5/transformers/os/test-fixtures/mariner-range.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[ | ||
{ | ||
"Vulnerability": { | ||
"Name": "CVE-2023-29404", | ||
"NamespaceName": "mariner:2.0", | ||
"Description": "CVE-2023-29404 affecting package golang for versions less than 1.20.7-1. A patched version of the package is available.", | ||
"Severity": "Critical", | ||
"Link": "https://nvd.nist.gov/vuln/detail/CVE-2023-29404", | ||
"CVSS": [], | ||
"FixedIn": [ | ||
{ | ||
"Name": "golang", | ||
"NamespaceName": "mariner:2.0", | ||
"VersionFormat": "rpm", | ||
"Version": "0:1.20.7-1.cm2", | ||
"Module": "", | ||
"VendorAdvisory": { | ||
"NoAdvisory": false, | ||
"AdvisorySummary": [] | ||
}, | ||
"VulnerableRange": "> 0:1.19.0.cm2, < 0:1.20.7-1.cm2" | ||
} | ||
], | ||
"Metadata": {} | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters