Description
Description
It seems that sometimes when cve-bin-tool detects the location/filepath of a dependency, it provides the path where that dependency is locally installed in the environment rather than where the dependency exists on the binary it is scanning. To my understanding, the location field is meant to help users understand where to go to patch, but the existing logic does not necessarily provide that. I see that this issue #3815 added this enhancement, so I am also wondering if this was the intended use.
To reproduce
Steps to reproduce the behaviour:
- scan using these flags/this config
--sbom-output sbom_out.json --sbom-type cyclonedx --sbom-format json
- on this file
https://s3.amazonaws.com/ddagent-windows-stable/ddagent-cli-7.55.2.msi
- then view the context of
sbom_out.json
Expected behaviour: the location of openssl
on the binary
Actual behaviour: the SBOM shows that the location of openssl
is /usr/bin/openssl whereas this is not a valid path on the binary, but rather is the path where openssl
is locally installed
Version/platform info
Version of CVE-bin-tool( e.g. output of cve-bin-tool --version
): v3.3.1dev0
Installed from GitHub
Operating system: Linux
Python version (e.g. python3 --version
): 3.18.17
Anything else?
Feel free to add any other context here.