-
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
False Positives being reported from Trivy 0.24.2 - oraclelinux:8 image #1967
Comments
(Disclaimer: I'm in the Oracle Linux support/development group.) Basically this is similar to issue #736. Oracle Linux ships with up to three flavors of system packages for different purposes:
The user determines which flavor is installed based on their system requirements, but Oracle issues advisories (ELSAs) and related OpenSCAP (OVAL) data for all three flavors. So scanning all available ELSAs will result in false positives if the ELSA is for a different flavor than the one installed. Basically, scans should do a heuristic to determine whether to apply an ELSA to the system, with the following logic:
Note that these apply to the version string component of the package and not the package name, but inclusion of the leading This logic should be applied to both OL7 and OL8. Whether this should be a rule added to each ELSA scan or at some higher level I don't know, that depends on how Trivy is structured. If this needs to be at a per-DB-entry level, you can limit the special-case logic to only the packages covered by that special case: |
FWIW please feel free to email me at my work email address ([email protected]) if any clarification is needed on the above, we're happy to help Trivy developers on any Oracle Linux related issue. |
This issue is stale because it has been labeled with inactivity. |
Unstale |
istaveren, my temporary workaround for this issue is:
|
This issue is stale because it has been labeled with inactivity. |
Unstale |
This issue is stale because it has been labeled with inactivity. |
Thanks , this was helpful. It was easy to apply patch than convincing security guys that it is false positive . |
In my Open-Source project Drifty, two docker images are published namely
|
@knqyf263 May I know the progress of this issue? This terrible bug is causing problem to manually mark them false positive. |
Description
When you scan an oraclelinux:8 image
What did you expect to happen?
There should not be any issue
It thinks I need 10:1.8.5-6.el8_fips -> https://linux.oracle.com/errata/ELSA-2022-9263.html
Where https://github.com/aquasecurity/vuln-list/blob/main/oval/oracle/2021/ELSA-2021-4409.json looks ok.
Related to #issue 736
What happened instead?
I got vulnerabilities
Output of run with
-debug
:Output of
trivy -v
:Additional details (base image name, container registry info...):
The text was updated successfully, but these errors were encountered: