PyCvss
Easily manipulate and compute scores according to the Common Vulnerability Scoring System
Current status
This library was developped following the specifications at http://www.first.org/cvss/cvss-guide and is currently in a stable state.
PyCvss is available in the cheeseshop, you can start using it with
pip install pycvss
Features
Compute base, temporal and environmental scores
Convert from and to short vectors (“AV:N/AC:L/Au:N/C:C/I:C/A:C”)
100% test coverage
Pure python
Usage
c = Cvss()
# Build from enums:
c.set(AV.network)
c.set(E.functional)
c.set(CDP.low)
# Or from a vector:
c = Cvss.from_vector("AV:N/CDP:L/E:F")
# Get scores.
c.to_vector()) # "AV:N/CDP:L/E:F"
c.base_score # 7.8
c.temporal_score # 6.4
c.environmental_score # 9.2
Or from a real CVE(2002_0392)
c = Cvss.from_vector("AV:N/AC:L/Au:N/C:N/I:N/A:C")
# temp
c.set(E.functional)
c.set(RL.official_fix)
c.set(RC.confirmed)
# env
c.set(CDP.high)
c.set(TD.high)
c.set(CR.medium)
c.set(IR.medium)
c.set(AR.high)
print(c)
A:C/AC:L/AR:H/AV:N/Au:N/C:N/CDP:H/CR:M/E:F/I:N/IR:M/RC:C/RL:OF/TD:H
base score 7.8
access vector 1.0
access complexity 0.71
authentication 0.704
confidentiality impact 0.0
integrity impact 0.0
availability impact 0.66
temporal score 6.4
exploitability 0.95
remediation level 0.87
report confidence 1.0
environmental score 9.2
collateral damage potential 0.5
target distribution 1.0
confidentiality requirement 1.0
integrity requirement 1.0
availability requirement 1.51
Metadata
Release files for pycvss 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycvss-1.0.2.zip | 9.1 kB | Without provenance | Details for pycvss-1.0.2.zip | |
| pycvss-1.0.2.tar.gz | 5.4 kB | Without provenance | Details for pycvss-1.0.2.tar.gz |
Release files / pycvss-1.0.2.zip
| Download URL | pycvss-1.0.2.zip |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2970d24e3eb257fa373c633a028f9525d3dffc66e7ac0d17a39f1f2b19c53cc
|
|
BLAKE2b-256 checksum How to use checksums |
b6b2f21b90485762f3d77837b7cfcfad084b9144a48e7c0c20ba964f9055bed4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycvss-1.0.2.tar.gz
| Download URL | pycvss-1.0.2.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f468c19c539510685472f987147eed0be510b1428ea733471c749bc1e3361275
|
|
BLAKE2b-256 checksum How to use checksums |
57f5d5f280ca5f7dc113c9c0df53c25aed49c43433c0f3f706c8f04e4333f01d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pycvss 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.