Skip to content
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

Fixed issues in CVEfixes CVE collection pipeline #19

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

saadullah01
Copy link

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:

  1. Before ordering df_cve in cve_importer.py - preprocess_jsons(df_in) the code does not check if all columns exist, which leads to keyerrors
  2. In case you are reusing CWE XML file the code prepends DATA_PATH again to the cwe_doc in extract_cwe_record.py - extract_cwe(), which creates a wrong path leading to a path error

One 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.

Saad Ullah added 2 commits April 4, 2024 10:24
…ng df_cve the code does not check if all columns exist, which leads to keyerrors
…CWE XML file the code prepends DATA_PATH again to the cwe_doc
@leonmoonen
Copy link
Contributor

leonmoonen commented Apr 19, 2024 via email

@leonmoonen leonmoonen merged commit 1aa41ce into secureIT-project:main Jul 19, 2024
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.

2 participants