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

Fix: notus deb package parsing #620

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Fix: notus deb package parsing #620

merged 1 commit into from
Aug 15, 2024

Conversation

Kraemii
Copy link
Member

@Kraemii Kraemii commented Aug 15, 2024

The parsing inside notus scanner was done wrong in some cases, as the following example shows. Here a package with full name including the version of the installed package:

mariadb-server-10.6-1:10.6.18+maria~ubu2204

which should separate name and version into:

name: mariadb-server-10.6
version: 1:10.6.18+maria~ubu2204

but resulted in:

name: mariadb-server
version: 10.6-1:10.6.18+maria~ubu2204

which is not even a valid version at all.
Updating the regular expressions fixes this issue.
This issue came up in https://forum.greenbone.net/t/ubuntu-22-04-lts-mariadb-server-false-positive/18779
SC-1121

@Kraemii Kraemii requested a review from a team as a code owner August 15, 2024 10:32
@Kraemii Kraemii merged commit a22dcee into main Aug 15, 2024
13 checks passed
@Kraemii Kraemii deleted the fix-deb-parsing branch August 15, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants