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

Mismatch between source and binary package version numbers #56

Open
mssalvatore opened this issue Oct 9, 2020 · 0 comments
Open

Mismatch between source and binary package version numbers #56

mssalvatore opened this issue Oct 9, 2020 · 0 comments
Labels
bug Something isn't working v3.0.0

Comments

@mssalvatore
Copy link
Contributor

mssalvatore commented Oct 9, 2020

Some binary packages have different version numbers than the associated source package. Since CVEs in Ubuntu are tracked against source packages, some CVEScan results may be incorrect, as dpkg-query -l does not include the source package version.

Instead of using dpkg -l to query the installed packages on the system, the following command could be used to provide more detail, including the source package versions:

dpkg-query -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W

After this change, the UCT JSON data should no longer need to include a list of binaries so that binaries can be mapped to source packages. This should significantly decrease the size of those JSON files, improving download times, JSON deserialization, and overall runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3.0.0
Projects
None yet
Development

No branches or pull requests

1 participant