Skip to content

Commit 7ce4c03

Browse files
committed
fixup! Fix handling of triage data
1 parent cadfc20 commit 7ce4c03

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

cve_bin_tool/cve_scanner.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,22 @@ def get_cves(self, product_info: ProductInfo, triage_data: TriageData):
302302
# or it is trivial (newly found cve)
303303
not cve.remarks or cve.remarks == Remarks.NewFound
304304
):
305-
for key in ["remarks", "comments", "response", "justification"]:
305+
for key in [
306+
"remarks",
307+
"comments",
308+
"response",
309+
"justification",
310+
"severity",
311+
]:
306312
data = triage.get(key)
307313
if data:
314+
if (
315+
key == "severity"
316+
and self.check_exploits
317+
and row_dict["cve_number"] in self.exploits_list
318+
):
319+
data += "-EXPLOIT"
320+
308321
self.logger.debug(f"Setting field {key} to: {data}")
309322
cve = cve._replace(**{key: data})
310323

0 commit comments

Comments
 (0)