logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

CVSS::v2 - Parse and calculate CVSS v2.0 scores

Author

       •   Giuseppe Di Terlizzi <gdt@cpan.org>

Description

METHODS
       CVSS::v2 inherits all methods from CVSS::Base and implements the following new ones.

       $cvss-weight ( $metric )
           Return the weight of provided metric.

       $cvss->W ( $metric )
           Alias of "weight".

       BASEMETRICS

       $cvss->AV | $cvss->accessVector
       $cvss->AC | $cvss->accessComplexity
       $cvss->Au | $cvss->authentication
       $cvss->C | $cvss->confidentialityImpact
       $cvss->I | $cvss->integrityImpact
       $cvss->A | $cvss->availabilityImpact

       TEMPORALMETRICS

       $cvss->E | $cvss->exploitability
       $cvss->RL | $cvss->remediationLevel
       $cvss->RC | $cvss->reportConfidence

       ENVIRONMENTALMETRICS

       $cvss->CDP | $cvss->collateralDamagePotential
       $cvss->TD | $cvss->targetDistribution
       $cvss->CR | $cvss->confidentialityRequirement
       $cvss->IR | $cvss->integrityRequirement
       $cvss->AR | $cvss->availabilityRequirement

Name

       CVSS::v2 - Parse and calculate CVSS v2.0 scores

See Also

       CVSS, CVSS::v3, CVSS::v4

       [FIRST] CVSS Data Representations (<https://www.first.org/cvss/data-representations>)
       [FIRST] CVSS v2.0 Complete Guide (<https://www.first.org/cvss/v2/guide>)

Support

Bugs/FeatureRequests
       Please     report    any    bugs    or    feature    requests    through    the    issue    tracker    at
       <https://github.com/giterlizzi/perl-CVSS/issues>.  You will be notified automatically of any progress  on
       your issue.

   SourceCode
       This  is open source software.  The code repository is available for public review and contribution under
       the terms of the license.

       <https://github.com/giterlizzi/perl-CVSS>

           git clone https://github.com/giterlizzi/perl-CVSS.git

Synopsis

           use CVSS::v2;
           my $cvss = CVSS::v2->from_vector_string('AV:N/AC:L/Au:N/C:N/I:N/A:C');

           say $cvss->AV; # N
           say $cvss->accessVector; # NETWORK

See Also