Skip to content

Commit a255140

Browse files
authored
fix: improve openssl checker (#3569)
Update openssl pattern to catch version on 'exotic' library Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent f93eccd commit a255140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cve_bin_tool/checkers/openssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class OpensslChecker(Checker):
1818
CONTAINS_PATTERNS = [r"part of OpenSSL", r"openssl.cnf", r"-DOPENSSL_"]
1919
FILENAME_PATTERNS = [r"libssl.so.", r"libcrypto.so"]
2020
VERSION_PATTERNS = [
21-
r"OpenSSL ([0-9]+\.[0-9]+\.[0-9]+[a-z]*) [a-zA-Z0-9 ]+\r?\n(?:%s \(Library: %s\)|[a-zA-Z0-9: \-\r\n]*OPENSSLDIR|ssl)",
21+
r"OpenSSL ([0-9]+\.[0-9]+\.[0-9]+[a-z]*) [a-zA-Z0-9 ]+\r?\n(?:%s \(Library: %s\)|[a-zA-Z0-9:, \-\r\n]*OPENSSLDIR|ssl)",
2222
r"%s \(Library: %s\)\r?\nOpenSSL ([0-9]+\.[0-9]+\.[0-9]+[a-z]*) [a-zA-Z0-9 ]+",
2323
]
2424
VENDOR_PRODUCT = [("openssl", "openssl")]

0 commit comments

Comments
 (0)