Class CvssUtil
java.lang.Object
org.owasp.dependencycheck.utils.CvssUtil
Utility class to create CVSS Objects.
- Author:
- Jeremy Long
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcvssV2ScoreToSeverity(Double score) Determines the severity from the score.static io.github.jeremylong.openvulnerability.client.nvd.CvssV3Data.SeverityTypecvssV3ScoreToSeverity(Double score) Determines the severity from the score.static io.github.jeremylong.openvulnerability.client.nvd.CvssV4Data.SeverityTypecvssV4ScoreToSeverity(double baseScore) static io.github.jeremylong.openvulnerability.client.nvd.CvssV2vectorToCvssV2(String vectorString, Double baseScore) Convert a CVSSv2 vector String into a CvssV3 Object.static io.github.jeremylong.openvulnerability.client.nvd.CvssV3vectorToCvssV3(String vectorString, Double baseScore) Convert a CVSSv3 vector String into a CvssV3 Object.static io.github.jeremylong.openvulnerability.client.nvd.CvssV4vectorToCvssV4(String source, io.github.jeremylong.openvulnerability.client.nvd.CvssV4.Type type, Double baseScore, String vectorString) Convert a CVSSv4 vector String into a CvssV4 Object.
-
Method Details
-
vectorToCvssV2
-
cvssV2ScoreToSeverity
-
cvssV3ScoreToSeverity
public static io.github.jeremylong.openvulnerability.client.nvd.CvssV3Data.SeverityType cvssV3ScoreToSeverity(Double score) Determines the severity from the score.- Parameters:
score- the score- Returns:
- the severity
-
vectorToCvssV3
-
cvssV4ScoreToSeverity
public static io.github.jeremylong.openvulnerability.client.nvd.CvssV4Data.SeverityType cvssV4ScoreToSeverity(double baseScore) -
vectorToCvssV4
public static io.github.jeremylong.openvulnerability.client.nvd.CvssV4 vectorToCvssV4(String source, io.github.jeremylong.openvulnerability.client.nvd.CvssV4.Type type, Double baseScore, String vectorString) Convert a CVSSv4 vector String into a CvssV4 Object.- Parameters:
source- the source of the CVSS datatype- the type of CVSS data (primary or secondary)baseScore- the base scorevectorString- the vector string- Returns:
- the CVSSv4 object
-