-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat!(detector): detect oracle and alpine with vuls2 #2157
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
Merged
Merged
Conversation
This file contains hidden or 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
1b64a5e
to
b7f3c0f
Compare
9dba0c4
to
3b8c411
Compare
shino
reviewed
Jun 17, 2025
shino
reviewed
Jun 17, 2025
shino
reviewed
Jun 17, 2025
shino
reviewed
Jun 17, 2025
shino
reviewed
Jun 17, 2025
38d8662
to
5de250c
Compare
5de250c
to
9e6344d
Compare
shino
approved these changes
Jun 19, 2025
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.
🍻
9e6344d
to
90dea93
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
If this Pull Request is work in progress, Add a prefix of “[WIP]” in the title.
What did you implement:
detect oracle and alpine with vuls2
In this PR, for kernel-related packages, if the major version of the package in the vulnerability information differs from the major version of the currently running kernel being scanned, the vulnerability information is now ignored.
https://github.com/future-architect/vuls/pull/541/files#diff-c38ba8400657a4caf68a8813319549c02e254e9ccb12099f6d3dba39bbf81ddeR291-R302
Additionally, with this PR, Oracle has also been changed to behave in this way.
https://github.com/future-architect/vuls/pull/1227/files#diff-c38ba8400657a4caf68a8813319549c02e254e9ccb12099f6d3dba39bbf81ddeR325
However, this issue occurs because, in RedHat OVALv1, although RHSA-2017:0372 has been deleted, its definition remains. So, this behavior should not be applied to Oracle and others.
For example, in Oracle Linux 7, kernel-uek has major versions 4 and 5, so if you have version 4 installed, all vulnerabilities fixed in version 5 will be ignored.
Also, for RedHat (including CentOS), while this advisory itself should be rejected, the overall detection should not behave in this way.
Therefore, this change will be removed.
The differences in detection results before and after, described below, are due to this change.
Type of change
How Has This Been Tested?
setup
before
after
Checklist:
You don't have to satisfy all of the following.
make fmt
make test
Is this ready for review?: YES
Reference