-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(vex): CSAF filtering should consider relationships #5923
Merged
knqyf263
merged 11 commits into
aquasecurity:main
from
juan131:fix/csaf-vex-relationships
Feb 22, 2024
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7d6c8b0
fix(vex): CSAF filtering should consider relationships
juan131 8fdc1d7
Merge branch 'main' into fix/csaf-vex-relationships
juan131 8821df1
fix: merge main changes
juan131 2f24ac3
Merge branch 'main' into fix/csaf-vex-relationships
juan131 8db530e
Merge branch 'main' into fix/csaf-vex-relationships
juan131 e86aaa7
fix: warn message when filtering duet to relationships
juan131 5128734
Merge branch 'main' into fix/csaf-vex-relationships
juan131 cc30025
Apply suggestions from code review
juan131 9518437
fix: simplify condition
juan131 9cbfc6b
fix: avoid repeating same logic twice
juan131 7028bd0
Merge branch 'main' into fix/csaf-vex-relationships
juan131 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
{ | ||
"document": { | ||
"category": "csaf_vex", | ||
"csaf_version": "2.0", | ||
"publisher": { | ||
"category": "vendor", | ||
"name": "VMWare, Inc.", | ||
"namespace": "https://tanzu.vmware.com/application-catalog" | ||
}, | ||
"title": "ArgoCD 2.9.3-2 Amd64 Debian12 Advisory", | ||
"tracking": { | ||
"current_release_date": "2024-01-04T17:17:25+01:00", | ||
"generator": { | ||
"engine": { | ||
"name": "Bitnami VEX CLI", | ||
"version": "1.0.0" | ||
} | ||
}, | ||
"id": "fcf5bd33-41c3-45f9-885a-c2ee812f49c9", | ||
"initial_release_date": "2024-01-04T17:17:25+01:00", | ||
"revision_history": [ | ||
{ | ||
"date": "2024-01-04T17:17:25+01:00", | ||
"number": "1", | ||
"summary": "Initial version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "1" | ||
} | ||
}, | ||
"product_tree": { | ||
"branches": [ | ||
{ | ||
"branches": [ | ||
{ | ||
"branches": [ | ||
{ | ||
"category": "product_version", | ||
"name": "2.9.3-2", | ||
"product": { | ||
"name": "Argo CD 2.9.3-2", | ||
"product_id": "argo-cd-2.9.3-2-amd64-debian-12", | ||
"product_identification_helper": { | ||
"purl": "pkg:bitnami/argo-cd@2.9.3-2?arch=amd64\u0026distro=debian-12" | ||
} | ||
} | ||
} | ||
], | ||
"category": "product_name", | ||
"name": "Argo CD" | ||
} | ||
], | ||
"category": "vendor", | ||
"name": "VMWare, Inc." | ||
}, | ||
{ | ||
"branches": [ | ||
{ | ||
"branches": [ | ||
{ | ||
"category": "product_version", | ||
"name": "v1.24.2", | ||
"product": { | ||
"name": "Kubernetes v1.24.2", | ||
"product_id": "kubernetes-v1.24.2", | ||
"product_identification_helper": { | ||
"purl": "pkg:golang/k8s.io/kubernetes@v1.24.2" | ||
} | ||
} | ||
} | ||
], | ||
"category": "product_name", | ||
"name": "kubernetes" | ||
} | ||
], | ||
"category": "vendor", | ||
"name": "k8s.io" | ||
} | ||
], | ||
"relationships": [ | ||
{ | ||
"product_reference": "kubernetes-v1.24.2", | ||
"category": "default_component_of", | ||
"relates_to_product_reference": "argo-cd-2.9.3-2-amd64-debian-12", | ||
"full_product_name": { | ||
"product_id": "argo-cd-2.9.3-2-amd64-debian-12-kubernetes", | ||
"name": "Argo CD uses kubernetes golang library" | ||
} | ||
} | ||
] | ||
}, | ||
"vulnerabilities": [ | ||
{ | ||
"cve": "CVE-2023-2727", | ||
"flags": [ | ||
{ | ||
"date": "2024-01-04T17:17:25+01:00", | ||
"label": "vulnerable_code_cannot_be_controlled_by_adversary", | ||
"product_ids": [ | ||
"argo-cd-2.9.3-2-amd64-debian-12-kubernetes" | ||
] | ||
} | ||
], | ||
"notes": [ | ||
{ | ||
"category": "description", | ||
"text": "Users may be able to launch containers using images that are restricted by ImagePolicyWebhook when using ephemeral containers. Kubernetes clusters are only affected if the ImagePolicyWebhook admission plugin is used together with ephemeral containers.", | ||
"title": "CVE description" | ||
} | ||
], | ||
"product_status": { | ||
"known_not_affected": [ | ||
"argo-cd-2.9.3-2-amd64-debian-12-kubernetes" | ||
] | ||
}, | ||
"threats": [ | ||
{ | ||
"category": "impact", | ||
"date": "2024-01-04T17:17:25+01:00", | ||
"details": "The asset uses the component as a dependency in the code, but the vulnerability only affects Kubernetes clusters https://github.com/kubernetes/kubernetes/issues/118640" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: In what cases can a single product id have multiple PURLs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest, I can't think of any situation like that but the official library is returning a slice: