Skip to content

Commit

Permalink
Correct CVE recognition logic
Browse files Browse the repository at this point in the history
- A CVE is considered known if it's linked to one of the metadata entries from channels or OVAL data.
  • Loading branch information
HoussemNasri committed Jan 23, 2024
1 parent 252f563 commit daa3d0e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ public static List<CVEAuditServer> listSystemsByPatchStatus(User user, String cv
}

private static boolean isCVEIdentifierUnknown(String cveIdentifier) {
return !OVALCachingFactory.canAuditCVE(cveIdentifier);
return !OVALCachingFactory.canAuditCVE(cveIdentifier) ||
!CVEAuditManager.isCVEIdentifierUnknown(cveIdentifier);
}

/**
Expand Down

0 comments on commit daa3d0e

Please sign in to comment.