CVSS::v4(3pm)
π CVSS::v4 β the Perl module π
okay so bestie, welcome to CVSS::v4(3pm), straight out of the User Contributed Perl Documentation section. she parses and calculates CVSS v4.0 scores and honestly? she ate. β¨
πΈ NAME πΈ
CVSS::v4 β Parse and calculate CVSS v4.0 scores. that's it, that's the whole vibe. π
π SYNOPSIS π
the moment you've been waiting for, no cap:
use CVSS::v4;
my $cvss = CVSS::v4->from_vector_string('CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N');
say $cvss->AV; # L
say $cvss->attackVector; # LOCAL
like, look at her go. short name, long name, both iconic, both valid. π«Ά
π¦ DESCRIPTION π¦
so the Common Vulnerability Scoring System (CVSS) is an open framework for communicating the characteristics and severity of software vulnerabilities. it's giving responsible disclosure but make it math. β¨
CVSS consists of four metric groups: Base, Threat, Environmental, and Supplemental. let's break it down:
- Base β represents the intrinsic qualities of a vulnerability that are constant over time and across user environments. she doesn't change, she's stable, she's the main character. π
- Threat β reflects the characteristics of a vulnerability that change over time. she's evolving, she's dynamic, she's on her own timeline.
- Environmental β represents the characteristics of a vulnerability that are unique to a user's environment. every setup hits different, iykyk.
- Supplemental β these ones do not modify the final score. they're just extra context, additional insight into the characteristics of a vulnerability. supporting cast energy but we love them.
Base metric values are combined with default values that assume the highest severity for Threat and Environmental metrics, to produce a score ranging from 0 to 10. and to further refine a resulting severity score, Threat and Environmental metrics can then be amended based on applicable threat intelligence and environmental considerations. fr fr, that's the whole pipeline.
and the CVSS vector string? it consists of a compressed textual representation of the values used to derive the score. tiny string, big power. πβ¨
official spec drop, bestie:
<https://www.first.org/cvss/v4.0/specification-document>
π§ METHODS π§
CVSS::v4 inherits all methods from CVSS::Base and implements the following new ones. family business, but she's got her own tricks. π
$cvss->macro_vectorβ Calculate the macro vector.$cvss->exploitabilityβ Return the Exploitability severity.$cvss->complexityβ Return the Complexity severity.$cvss->vulnerable_systemβ Return the Vulnerable System severity.$cvss->subsequent_systemβ Return the Subsequent System severity.$cvss->exploitationβ Return the Exploitation severity.$cvss->security_requirementsβ Return the Security Requirements severity.
π₯ BASE METRICS π₯
$cvss->AV|$cvss->attackVector$cvss->AC|$cvss->attackComplexity$cvss->AT|$cvss->attackRequirements$cvss->PR|$cvss->privilegesRequired$cvss->UI|$cvss->userInteraction$cvss->VC|$cvss->vulnConfidentialityImpact$cvss->VI|$cvss->vulnIntegrityImpact$cvss->VA|$cvss->vulnAvailabilityImpact$cvss->SC|$cvss->subConfidentialityImpact$cvss->SI|$cvss->subIntegrityImpact$cvss->SA|$cvss->subAvailabilityImpact
π THREAT METRICS π
$cvss->E|$cvss->exploitMaturity
π ENVIRONMENTAL METRICS π
$cvss->CR|$cvss->confidentialityRequirement$cvss->IR|$cvss->integrityRequirement$cvss->AR|$cvss->availabilityRequirement$cvss->MAV|$cvss->modifiedAttackVector$cvss->MAC|$cvss->modifiedAttackComplexity$cvss->MAT|$cvss->modifiedAttackRequirements$cvss->MPR|$cvss->modifiedPrivilegesRequired$cvss->MUI|$cvss->modifiedUserInteraction$cvss->MVC|$cvss->modifiedVulnConfidentialityImpact$cvss->MVI|$cvss->modifiedVulnIntegrityImpact$cvss->MVA|$cvss->modifiedVulnAvailabilityImpact$cvss->MSC|$cvss->modifiedSubConfidentialityImpact$cvss->MSI|$cvss->modifiedSubIntegrityImpact$cvss->MSA|$cvss->modifiedSubAvailabilityImpact
π SUPPLEMENTAL METRICS π
$cvss->S|$cvss->Safety$cvss->AU|$cvss->Automatable$cvss->R|$cvss->Recovery$cvss->V|$cvss->valueDensity$cvss->RE|$cvss->vulnerabilityResponseEffort$cvss->U|$cvss->providerUrgency
π SEE ALSO π
CVSSCVSS::v2CVSS::v3- [FIRST] CVSS Data Representations (<https://www.first.org/cvss/data-representations>)
- [FIRST] CVSS v4.0 Specification (<https://www.first.org/cvss/v4.0/specification-document>)
go read the sources, bestie, they're right there. π
π«Ά SUPPORT π«Ά
π Bugs / Feature Requests π
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. yes, automatically. no ghosting. π
π» Source Code π»
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>
and if you wanna clone her, here's the exact command, run it verbatim:
git clone https://github.com/giterlizzi/perl-CVSS.git
π AUTHOR π
- Giuseppe Di Terlizzi
<gdt@cpan.org>
π LICENSE AND COPYRIGHT π
This software is copyright (c) 2023-2026 by Giuseppe Di Terlizzi.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
π that's the whole page, bestie. every flag, every method, every link. nothing skipped, nothing invented. periodt. β¨
perl v5.40.1 Β· 2026-07-05 β mwah, ily, go score some vulnerabilities responsibly πππ¦
π¦ where this page comes from
- ubuntu stonking: libcvss-perl 1.15-1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms