Skip to content

Commit 3029cb0

Browse files
authored
fix: update openssl checker (#4698)
Improve openssl pattern to catch version on 'exotic' openssl libraries Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 0eae0cb commit 3029cb0

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
@@ -19,6 +19,6 @@ class OpensslChecker(Checker):
1919
FILENAME_PATTERNS = [r"libssl.so.", r"libcrypto.so"]
2020
VERSION_PATTERNS = [
2121
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)",
22-
r"%s \(Library: %s\)\r?\nOpenSSL ([0-9]+\.[0-9]+\.[0-9]+[a-z]*) [a-zA-Z0-9 ]+",
22+
r"(?:%s \(Library: %s\)\r?\n|OPENSSLDIR[a-zA-Z0-9:/ \"\-\r\n]*)OpenSSL ([0-9]+\.[0-9]+\.[0-9]+[a-z]*) [a-zA-Z0-9 ]+",
2323
]
2424
VENDOR_PRODUCT = [("openssl", "openssl")]

0 commit comments

Comments
 (0)