-
Notifications
You must be signed in to change notification settings - Fork 55
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
Assertion error when attempting to re-collect data #11
Comments
I have the same problem!!! |
Hi, Thanks for your interest in CVEfixes 🙏 I had a quick look, and this assertion error is caused by the fact that the latest CWE XML file distributed by Mitre (https://cwe.mitre.org/data/xml/cwec_latest.xml.zip, which is v4.10) does not contain CWE-1026 (search for CWE_ID="1026") but it is now defined as a view that groups several CWE-types. On the other hand, in the NVD distributed by Nist, CVE-2022-4147 is classified as CWE-1026 and not as one of its "subtypes"... One "hack" to get things running is to manually update your CVE-2022-4147 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 We may also be able to code around this in the collection but I'm a bit reluctant to do that now, as a lot of things are in flux around the NVD data distribution while they are moving from distributing JSON feeds to only providing API access (and this is after dropping XML for JSON two-three years ago). At some point, we will need to do a rather deep rewrite of CVEfixes to use this new API, but we, unfortunately, do not have the resources available for doing this in a short term. cheers, |
Hi Leon, thanks for the fast response!
I will try this out now 🙏 |
So far so good 👍 |
The data collection took 2 days and did get to the end thankfully. However, right at the end, I get an error stating the ...which is true: The |
My apologies, this one slipped through the cracks. The only guess I have is that the tables were not created as a result of the initial error, and after "hacking" the CWE data, the code path was never exercised again because there was already a database. I'll need to dive into the code to make this more robust, but this may take some time due to other obligations. For now, my only suggestion would be to do a fresh run (i.e. remove the Data/CVEfixes.db) while you have the "hacked" CWE data files already in place. It should also be possible to just add the CWE table to the existing database, but that would need some dedicated code (will save on the overall collection time, though). Note that there is also a chance that the initial hack is no longer needed and the CWE and CVE records have been synced in the NVD... |
Hey. I was also working with CVEFixes and encountered the same error. Any updates on this? |
We have not been able to find the source of this error as it does not always happen (which makes me think it may be caused by a race condition). We are working on a new version of CVEfixes that uses NIST's APIs instead of the JSON files (which will be phased out). This update is turning into such a substantial overhaul of the project that I expect that race conditions in the old code will not survive (famous last words ;-)). |
I've been out of the running due to a traffic accident, but I wanted to share that the new version of CVEfixes is planned to be finished around August/September 2024. A newly collected dataset will be released on Zenodo in the next few days. |
I was trying to re-collect the CVE data locally with a sample limit of zero, such that 2022 and 2023 records were included in the resulting database.
However, I get the following assertion error:
Note that if I re-run the code with a non-zero sample limit of 100, it finishes fine. Any ideas what might be causing this? Is it an external issue related to the data of
CWE-1026
?The text was updated successfully, but these errors were encountered: