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

Fix cpe 2.3 name parsing #269

Merged
merged 5 commits into from
Apr 8, 2024

Conversation

maxime-huyghe
Copy link
Contributor

Fixes #268

CveXplore/common/cpe_converters.py Show resolved Hide resolved
CveXplore/core/database_maintenance/api_handlers.py Outdated Show resolved Hide resolved
CveXplore/core/database_maintenance/sources_process.py Outdated Show resolved Hide resolved
@P-T-I
Copy link
Member

P-T-I commented Apr 7, 2024

@maxime-huyghe I've added some changes and committed in e433be9; could you check these?

Co-authored-by: Esa Jokinen <[email protected]>
Copy link
Collaborator

@oh2fih oh2fih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested this patch with CVE-Search 5.0.1.dev12 (CveXplore version: 0.3.24.dev6).

After running ./sbin/db_updater.py -v -f the Vulnerable Configurations for CVE-2024-23525 now shows correct information:

screenshot

cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.01:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.02:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.03:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.04:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.05:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.06:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.07:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.08:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.09:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.10:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.11:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.12:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.13:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.14:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.15:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.16:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.17:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.18:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.19:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.20:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.21:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.22:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.23:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.24:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.25:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.26:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.27:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.28:*:*:*:*:perl:*:*
cpe:2.3:a:tozt:spreadsheet\:\:parsexlsx:0.29:*:*:*:*:perl:*:*

@maxime-huyghe
Copy link
Contributor Author

@maxime-huyghe I've added some changes and committed in e433be9; could you check these?

The changes look fine to me

@P-T-I
Copy link
Member

P-T-I commented Apr 8, 2024

Awesome! Thanks guys!

@P-T-I P-T-I merged commit 89401d0 into cve-search:master Apr 8, 2024
3 checks passed
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.

CPEs with ':' in the product or vendor are parsed incorrectly
3 participants