Fixed issues in CVEfixes CVE collection pipeline #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
First of all I want to thank you for your developing this amazing tool, I recently used it to collect latest CVEs data for my project.
While using it I ran into the following issues and created a fix for them:
cve_importer.py - preprocess_jsons(df_in)
the code does not check if all columns exist, which leads to keyerrorsextract_cwe_record.py - extract_cwe()
, which creates a wrong path leading to a path errorOne more thing I wanted to mention is that this issue mentions two hacks to deal with CWE-1026 issue,
"hack" to get things running is to manually update your https://github.com/advisories/GHSA-9895-g6x5-xwcp to use CWE-1027, the first subtype in the view, or to add 1026 as a member of itself in cwec_v4.10.xml under View ID="1026".
. For these two hacks the second one, about adding 1026 as a member to itself, does not work and gave the same error, but the first one solved the issue.