timesys.vigiles.cves module

timesys.vigiles.cves.get_cve_info(cve_id, fields=None)

Get CVE info by CVE ID

Parameters
  • cve_id (str) -- A valid CVE ID

  • fields (list of str, optional) --

    Limit cve data returned to given the fields. If none are specified, all are returned. Valid fields:

    "affected_configurations", "assigned_by", "description", "identifier", "impact", "modified", "problem_types", "published", "references"

Returns

CVE data, optionally filtered to the requested fields

Return type

dict

timesys.vigiles.cves.search_cves_by_product(cpe_product, version='', ids_only=False)

Get CVEs which affect given CPE Product and optionally filter by version

Parameters
  • product (str) -- CPE Product (package_name) to search CVEs for

  • version (str, optional) -- Version of the product to filter results by, else all affected versions

  • ids_only (bool) -- Return list of CVE identifiers only, no descriptions. Default: False

Returns

A list of CVE ids is returned if "ids_only" is true, otherwise a dictionary with CVE identifier keys and description values

Return type

list or dict