0.0
No commit activity in last 3 years
No release in over 3 years
CVSS Risk Rating Calculation and Vector parsing, implements CVSS 2.0 & 3.0 rating
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Cvss Rating

CircleCI

Implements vulnerability scoring system CVSS versions 2.0 and 3.0.

More information on the standard is available at https://www.first.org/cvss

Installation

Add this line to your application's Gemfile:

gem 'cvss_rating'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cvss_rating

Usage

The following is basic usage to handle a CVSS 2.0 vector:

cvs = Cvss2::Rating.new
cvss.parse("AV:N/AC:M/Au:N/C:P/I:P/A:P")

# Calculate overallscore
cvss.overallscore

The following is basic usage to handle a CVSS 3.0 vector:

cvss = Cvss3::Rating.new
cvss.parse("AV:P/AC:H/PR:H/UI:R/S:C/C:H/I:L/A:N/E:U/RL:O/RC:U/CR:L/IR:L/AR:L")

# Calculate Base Score (returns array of score and risk level)
cvss.cvss_base_score

# Calculate Temporal Score (returns array of score and risk level)
cvss.cvss_temporal_score

# Calculate Environmental Score (returns array of score and risk level)
cvss.cvss_environmental_score

Check out the unit tests for more examples of usage.

TODO

  • Code and API clean up
  • More Unit Tests

License

Copyright (c) Stephen Kapp 2015.

Released under the MIT License