{ "info": { "author": "Stanislav Kontar, Red Hat Product Security", "author_email": "skontar@redhat.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Security" ], "description": "CVSS\n====\n\n.. image:: https://img.shields.io/travis/skontar/cvss/master.svg\n :target: https://travis-ci.org/skontar/cvss/\n :alt: Travis CI test status\n\nThis Python package contains CVSS v2 and v3 computation utilities and\ninteractive calculator compatible with both Python 2 and Python 3.\n\nIt is tested on Python versions supported by Travis, but it is simple\nenough to run on even older versions.\n\nInstallation\n------------\n\n::\n\n # pip install cvss\n\nUsage\n-----\n\nLibrary\n~~~~~~~\n\n.. code-block:: python\n\n from cvss import CVSS2, CVSS3\n\n\n vector = 'AV:L/AC:L/Au:M/C:N/I:P/A:C/E:U/RL:W/RC:ND/CDP:L/TD:H/CR:ND/IR:ND/AR:M'\n c = CVSS2(vector)\n print(vector)\n print(c.clean_vector())\n print(c.scores())\n\n print()\n\n vector = 'CVSS:3.0/S:C/C:H/I:H/A:N/AV:P/AC:H/PR:H/UI:R/E:H/RL:O/RC:R/CR:H/IR:X/AR:X/MAC:H/MPR:X/MUI:X/MC:L/MA:X'\n c = CVSS3(vector)\n print(vector)\n print(c.clean_vector())\n print(c.scores())\n print(c.severities())\n\nSample output:\n\n::\n\n AV:L/AC:L/Au:M/C:N/I:P/A:C/E:U/RL:W/RC:ND/CDP:L/TD:H/CR:ND/IR:ND/AR:M\n AV:L/AC:L/Au:M/C:N/I:P/A:C/E:U/RL:W/CDP:L/TD:H/AR:M\n (5.0, 4.0, 4.6)\n\n CVSS:3.0/S:C/C:H/I:H/A:N/AV:P/AC:H/PR:H/UI:R/E:H/RL:O/RC:R/CR:H/IR:X/AR:X/MAC:H/MPR:X/MUI:X/MC:L/MA:X\n CVSS:3.0/AV:P/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N/E:H/RL:O/RC:R/CR:H/MAC:H/MC:L\n (6.5, 6.0, 5.3)\n ('Medium', 'Medium', 'Medium')\n\nInteractive calculator\n~~~~~~~~~~~~~~~~~~~~~~\n\nFor interactive calculator run the following:\n\n::\n\n $ cvss_calculator\n\nFor help on the calculator options run:\n\n::\n\n $ cvss_calculator --help\n\nTesting\n-------\n\nFor extensive testing, the test vectors were generated using official\nJavaScript generators and `cvsslib `_.\n\nTo run all tests use the following script on a system with both Python 2 and Python 3 installed:\n\n::\n\n $ cd tests\n $ bash run_tests.sh\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/skontar/cvss", "keywords": "security cvss score calculator", "license": "LGPLv3+", "maintainer": "", "maintainer_email": "", "name": "cvss", "package_url": "https://pypi.org/project/cvss/", "platform": "", "project_url": "https://pypi.org/project/cvss/", "project_urls": { "Homepage": "https://github.com/skontar/cvss" }, "release_url": "https://pypi.org/project/cvss/2.0/", "requires_dist": null, "requires_python": "", "summary": "CVSS2/3 library with interactive calculator for Python 2 and Python 3", "version": "2.0" }, "last_serial": 5751638, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "1123c21f096ed26eca059df148d9e5cf", "sha256": "5893608e101c023046ab7287ec608944eecdab9ae1beadd063771b56839fe469" }, "downloads": -1, "filename": "cvss-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1123c21f096ed26eca059df148d9e5cf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14138, "upload_time": "2016-02-15T10:37:31", "url": "https://files.pythonhosted.org/packages/2c/8f/693c9e6587878ee82e992efd645c07e1912677fcfda5070c3eef9cabb72a/cvss-1.0-py2.py3-none-any.whl" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "1cc6ef3dead8d9cebde655c994324102", "sha256": "9c4547f7e112c931b6abd5b67902f2cfc823063154ad5f2d8a9ca5fafd22fcd3" }, "downloads": -1, "filename": "cvss-1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1cc6ef3dead8d9cebde655c994324102", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15245, "upload_time": "2016-02-15T13:03:20", "url": "https://files.pythonhosted.org/packages/26/8e/0171846bb68762701d2828f569576cab8870a537d956be02ddcd1612e76d/cvss-1.1-py2.py3-none-any.whl" } ], "1.10": [ { "comment_text": "", "digests": { "md5": "58e3395d06148c48d3eed893e1eb19a9", "sha256": "cf9e8ea78af21679125ee7e4e28f98483314ec1094110e039bcb726eae8d741e" }, "downloads": -1, "filename": "cvss-1.10-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "58e3395d06148c48d3eed893e1eb19a9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18384, "upload_time": "2019-06-03T12:29:22", "url": "https://files.pythonhosted.org/packages/e3/1b/12d3ba768a123e272b2c5402a1f615015b2afe7ca799091cd9283350de2f/cvss-1.10-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b0c1b12fd327d647f8d7ab6f90bff007", "sha256": "bf49c1727800770e429d40989dd298ab8332e4e06dbc5723947a4f128fb03bb5" }, "downloads": -1, "filename": "cvss-1.10.tar.gz", "has_sig": false, "md5_digest": "b0c1b12fd327d647f8d7ab6f90bff007", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11639, "upload_time": "2019-06-03T12:29:24", "url": "https://files.pythonhosted.org/packages/59/3b/2da4249c0a83d04f7cf7cef9359d00a26ff12278a09b675a7ce867845bbb/cvss-1.10.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "26f07917fea724dff05901bef44dd0c8", "sha256": "20fd8bcac47cfd0918a510ce3cbfb58b8a7def3505e66aef0079ff80da219109" }, "downloads": -1, "filename": "cvss-1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "26f07917fea724dff05901bef44dd0c8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16368, "upload_time": "2016-04-28T09:59:21", "url": "https://files.pythonhosted.org/packages/ee/35/9076a59d3f015ca38e7098ecaa27058bba3db8bf1f10a934896c98db18bd/cvss-1.2-py2.py3-none-any.whl" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "b3fd6304ce447b8a601c7a6f71c3caf9", "sha256": "48e2d7e04f870bc6e86a7dbe2c15c9ca3eb15b63792270e6d861cfda7a23a63c" }, "downloads": -1, "filename": "cvss-1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b3fd6304ce447b8a601c7a6f71c3caf9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16354, "upload_time": "2016-08-22T08:38:02", "url": "https://files.pythonhosted.org/packages/3e/67/11c98f737f111e8dcd29b9bd3f103e02339ba1bb9d023ad5ebc17f906a5e/cvss-1.3-py2.py3-none-any.whl" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "20a484555d94facaf986965a4ce4b6b3", "sha256": "9b9efa7b885c571bfe03e9292a022acc324a684874e642926f100a1423abb0b3" }, "downloads": -1, "filename": "cvss-1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "20a484555d94facaf986965a4ce4b6b3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16378, "upload_time": "2016-08-29T14:41:43", "url": "https://files.pythonhosted.org/packages/92/2f/f6cd592285aaaa48cea2955c741cab7c842a4611dfdac213a193bf2b2f3f/cvss-1.4-py2.py3-none-any.whl" } ], "1.5": [ { "comment_text": "", "digests": { "md5": "4245920ab3f338c6047007fbf9d94971", "sha256": "e96d045f0b59878e24fd29e5a638e2044d350089064ef868b31222d93b604ce3" }, "downloads": -1, "filename": "cvss-1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4245920ab3f338c6047007fbf9d94971", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16393, "upload_time": "2016-10-25T13:17:59", "url": "https://files.pythonhosted.org/packages/cb/04/08de5aa46885b7071aaeff025b49782b84dc79500414310a1ced4c39ab93/cvss-1.5-py2.py3-none-any.whl" } ], "1.6": [ { "comment_text": "", "digests": { "md5": "6d30442c8392840e1611a596598d8742", "sha256": "e6b83c0c771151404d6a33db2f6fd0e5bbc1ac2993fbde6c76727ce442dcce03" }, "downloads": -1, "filename": "cvss-1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6d30442c8392840e1611a596598d8742", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16406, "upload_time": "2016-12-06T09:58:11", "url": "https://files.pythonhosted.org/packages/a9/67/eecd4905a9704aeb40a1437019cc213ff42cc1eab70bf42828e63f1f75e1/cvss-1.6-py2.py3-none-any.whl" } ], "1.7": [ { "comment_text": "", "digests": { "md5": "54365f1f9c0a6b000b93256918a80012", "sha256": "b066589882860a85c73ec9944cb0f9f45e1137f335e4d9f4dda95ef9c032c3d6" }, "downloads": -1, "filename": "cvss-1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "54365f1f9c0a6b000b93256918a80012", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16423, "upload_time": "2017-01-11T10:35:46", "url": "https://files.pythonhosted.org/packages/35/37/25736dd2a032864fe45bec9fdcb673b09c589be3ed85a7ee20de5555b711/cvss-1.7-py2.py3-none-any.whl" } ], "1.8": [ { "comment_text": "", "digests": { "md5": "1855f9620e48e79410142061acd60ae3", "sha256": "a62ad720a4a7042e98fd392bdd6d87ad0f06fc6ec592ca3f91f0fc95d5d9a986" }, "downloads": -1, "filename": "cvss-1.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1855f9620e48e79410142061acd60ae3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16517, "upload_time": "2018-06-26T12:12:06", "url": "https://files.pythonhosted.org/packages/27/93/b2eb4e62c50419c27cb4b95def32502fda2c59de07290dd46ab6cef0a3f8/cvss-1.8-py2.py3-none-any.whl" } ], "1.9": [ { "comment_text": "", "digests": { "md5": "525d29ec70c2ab2c8051de8b09e60a4c", "sha256": "d35bb56ad742a617561757cda77d0fa7d6dbe85a8b6eedf46c0a37fbfb7fc335" }, "downloads": -1, "filename": "cvss-1.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "525d29ec70c2ab2c8051de8b09e60a4c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17253, "upload_time": "2018-08-02T07:50:35", "url": "https://files.pythonhosted.org/packages/63/df/d54d1d5055e1b83332a7c2793fe9a4133e0192c0fb93a94c21619fe744ea/cvss-1.9-py2.py3-none-any.whl" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "c4c8120dbd93b752ad87cd2e3df32670", "sha256": "71c5c950d21739711ab04734656a536cc45ab9603e885653d7744fdc8bada312" }, "downloads": -1, "filename": "cvss-2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c4c8120dbd93b752ad87cd2e3df32670", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18635, "upload_time": "2019-08-29T11:40:56", "url": "https://files.pythonhosted.org/packages/ac/20/2d0a245c99ee8a50fbea6bf2244ef24430fcc096ef399660814e0089915e/cvss-2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d01ad7e38c2b653f08d7d701acc4daa", "sha256": "0676c561dcac283a78c97a06ac25aeaaac85286fd6ab2ab47788af569ceb6892" }, "downloads": -1, "filename": "cvss-2.0.tar.gz", "has_sig": false, "md5_digest": "7d01ad7e38c2b653f08d7d701acc4daa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11944, "upload_time": "2019-08-29T11:40:58", "url": "https://files.pythonhosted.org/packages/3a/a0/50658059585699a3f321ba01c3ac754ea23b48d777ad0ac59fec0835b923/cvss-2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c4c8120dbd93b752ad87cd2e3df32670", "sha256": "71c5c950d21739711ab04734656a536cc45ab9603e885653d7744fdc8bada312" }, "downloads": -1, "filename": "cvss-2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c4c8120dbd93b752ad87cd2e3df32670", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18635, "upload_time": "2019-08-29T11:40:56", "url": "https://files.pythonhosted.org/packages/ac/20/2d0a245c99ee8a50fbea6bf2244ef24430fcc096ef399660814e0089915e/cvss-2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d01ad7e38c2b653f08d7d701acc4daa", "sha256": "0676c561dcac283a78c97a06ac25aeaaac85286fd6ab2ab47788af569ceb6892" }, "downloads": -1, "filename": "cvss-2.0.tar.gz", "has_sig": false, "md5_digest": "7d01ad7e38c2b653f08d7d701acc4daa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11944, "upload_time": "2019-08-29T11:40:58", "url": "https://files.pythonhosted.org/packages/3a/a0/50658059585699a3f321ba01c3ac754ea23b48d777ad0ac59fec0835b923/cvss-2.0.tar.gz" } ] }