Skip to content

Commit

Permalink
fix: update openssl checker
Browse files Browse the repository at this point in the history
Improve openssl pattern to catch version on 'exotic' openssl libraries

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine committed Jan 15, 2025
1 parent a8800da commit 738e06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cve_bin_tool/checkers/openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class OpensslChecker(Checker):
FILENAME_PATTERNS = [r"libssl.so.", r"libcrypto.so"]
VERSION_PATTERNS = [
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)",
r"%s \(Library: %s\)\r?\nOpenSSL ([0-9]+\.[0-9]+\.[0-9]+[a-z]*) [a-zA-Z0-9 ]+",
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 ]+",
]
VENDOR_PRODUCT = [("openssl", "openssl")]

0 comments on commit 738e06c

Please sign in to comment.