-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes: #1128 Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
- Loading branch information
1 parent
39ce741
commit 2d0e6e0
Showing
5 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
"freeradius", | ||
"gcc", | ||
"gimp", | ||
"gnupg", | ||
"gnutls", | ||
"glibc", | ||
"gstreamer", | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright (C) 2021 Intel Corporation | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
""" | ||
CVE checker for GNUPG | ||
https://www.cvedetails.com/vulnerability-list/vendor_id-4711/product_id-8075/Gnupg-Gnupg.html | ||
""" | ||
from cve_bin_tool.checkers import Checker | ||
|
||
|
||
class GnupgChecker(Checker): | ||
CONTAINS_PATTERNS = [] | ||
FILENAME_PATTERNS = [ | ||
"gpg", | ||
"g13", | ||
] | ||
VERSION_PATTERNS = [ | ||
r"GNU Privacy Guard's OpenPGP server ([0-9]+\.[0-9]+\.[0-9]+) ready", | ||
r"GNU Privacy Guard's G13 server ([0-9]+\.[0-9]+\.[0-9]+) ready", | ||
] | ||
VENDOR_PRODUCT = [("gnupg", "gnupg")] |
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
"gcc", | ||
"gimp", | ||
"glibc", | ||
"gnupg", | ||
"gnutls", | ||
"gstreamer", | ||
"haproxy", | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
mapping_test_data = [ | ||
{ | ||
"product": "gnupg", | ||
"version": "2.2.27", | ||
"version_strings": ["GNU Privacy Guard's OpenPGP server 2.2.27 ready"], | ||
}, | ||
{ | ||
"product": "gnupg", | ||
"version": "2.2.23", | ||
"version_strings": ["GNU Privacy Guard's G13 server 2.2.23 ready"], | ||
}, | ||
] | ||
|
||
package_test_data = [ | ||
{ | ||
"url": "http://mirror.centos.org/centos/7/os/x86_64/Packages/", | ||
"package_name": "gnupg2-2.0.22-5.el7_5.x86_64.rpm", | ||
"product": "gnupg", | ||
"version": "2.0.22", | ||
}, | ||
] |