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

Add CLI option to filter CWE IDs #48

Closed
Sim4n6 opened this issue Jan 24, 2024 · 2 comments · Fixed by #53
Closed

Add CLI option to filter CWE IDs #48

Sim4n6 opened this issue Jan 24, 2024 · 2 comments · Fixed by #53
Assignees
Labels
Type: Enhancement Most issues will probably ask for additions or changes.

Comments

@Sim4n6
Copy link

Sim4n6 commented Jan 24, 2024

CLI option to filter CVEs for given CWE ID.

   -cwe, -cwe-id string[]       cve to list for given cwe id

Example:

cvemap -l 30 -cwe 416
@Sim4n6 Sim4n6 added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Jan 24, 2024
@parthmalhotra
Copy link
Member

@Sim4n6 : Here is the command for it cvemap -l 30 -s "critical" -f "cwe" -q 'weaknesses.$.cwe_id:CWE-416'

image

@Sim4n6
Copy link
Author

Sim4n6 commented Jan 24, 2024

perfect !

@Sim4n6 Sim4n6 closed this as completed Jan 24, 2024
@ehsandeep ehsandeep reopened this Jan 24, 2024
@ehsandeep ehsandeep changed the title Search by field "CWE" Add CLI option to filter CWE IDs Jan 24, 2024
@ehsandeep ehsandeep added Type: Enhancement Most issues will probably ask for additions or changes. and removed Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. labels Jan 24, 2024
@RamanaReddy0M RamanaReddy0M self-assigned this Jan 25, 2024
@RamanaReddy0M RamanaReddy0M linked a pull request Jan 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants