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

/api/v1/sbom/{id}/advisory includes packages that do not belong to the SBOM #1047

Open
carlosthe19916 opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
UI-V1 parity Tasks needed to get done for V1 UI parity

Comments

@carlosthe19916
Copy link
Member

How to reproduce it:

        "status": [
            {
                "normative": true,
                "identifier": "CVE-2023-0482",
                "title": null,
                "description": null,
                "reserved": null,
                "published": null,
                "modified": null,
                "withdrawn": null,
                "discovered": null,
                "released": null,
                "cwes": [],
                "average_severity": "medium",
                "status": "affected",
                "context": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:9:*:*:*"
                },
                "packages": [
                    {
                        "id": "",
                        "name": "resteasy",
                        "version": null,
                        "purl": [],
                        "cpe": []
                    }
                ]
            },

The response is mentioning "cpe": "cpe:/o:redhat:enterprise_linux:9:*:*:*" and that is the issue I think.

If you download the original SBOM file here ubi8-container.json and do grep you will see that only enterprise_linux v8 is mentioned but not v9 as the response given in the backend:

cferiavi@cferiavi$ grep "enterprise_linux" ubi8-container.json 
"referenceLocator": "cpe:/a:redhat:enterprise_linux:8::appstream",
@carlosthe19916 carlosthe19916 added the UI-V1 parity Tasks needed to get done for V1 UI parity label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI-V1 parity Tasks needed to get done for V1 UI parity
Projects
None yet
Development

No branches or pull requests

2 participants