CVE Tracking¶
The CVE Tracking portion of the app provides two additional objects - CVE objects and Vulnerability objects.
CVE objects¶
A CVE object can be used to record Common Vulnerabilities and Exposures as well as any detailed information that is useful to track about them such as publish date, severity, CVSS scores and more. CVE objects can be used individually, but they can then be associated to one or many Software objects via Affected Softwares field.
When creating a CVE object, the following fields are available. Fields in bold are mandatory.
| Field | Description |
|---|---|
| Name | The name of the CVE |
| Published Date | Date when the CVE was published |
| Link | The URL that the CVE details were obtained from |
| Status | The current status of the CVE (requires a Status object to be created and associated to the CVE model) |
| Description | The description of the CVE |
| Severity | The severity (Low, Medium, High, Critical) of the CVE |
| CVSS Base Score | The Common Vulnerability Scoring System base score of the CVE. The NIST CVE Search Job populates this from NIST's own score for the highest CVSS version that NIST has scored, or, if NIST has not scored the CVE, from the first score listed for the highest CVSS version, whatever its source |
| CVSS Vector | The CVSS vector string for the CVSS version used for the CVSS Base Score and Severity. The version is shown by the vector's prefix (for example CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H); CVSS v2 vectors have no prefix (for example AV:N/AC:L/Au:N/C:P/I:P/A:P), and the CVE form removes a CVSS:2.0/ prefix. On the CVE detail page, click the vector to open a pop-up that explains each metric and links to the official CVSS calculator. The NIST CVE Search Job populates this automatically |
| CVSSv2 Score | Deprecated. Legacy field retained for backward compatibility. The NIST CVE Search Job populates this with the CVSS v2 exploitability score, or leaves it empty if NIST does not provide one |
| CVSSv3 Score | Deprecated. Legacy field retained for backward compatibility. The NIST CVE Search Job populates this with the CVSS v3.1 (or v3.0) exploitability score, or leaves it empty if NIST does not provide one |
| Affected Softwares | Software versions affected by this CVE |
| Fix | The software fix (if available) for the CVE |
| Comments | Any additional comments or details about the CVE |
| Tags | Arbitrary tag objects that can be applied to this CVE |
| Last Modified Date | The date that the CVE record was last modified |
Deprecated fields
The CVSSv2 Score (cvss_v2) and CVSSv3 Score (cvss_v3) fields are deprecated and will be removed in version 5.0 of this app. If you rely on these fields (for example in the REST API, GraphQL, filters, or export templates), plan to migrate to a custom field before upgrading to version 5.0.
Note
In addition to these standard fields, you can also add one or more Custom Fields to the model.
CVE Detail View¶
The CVE detail view shows the CVE's Severity and CVSS Base Score alongside the CVSS Vector they were taken from. The deprecated CVSSv2 Score and CVSSv3 Score fields are still shown for backward compatibility.
Editing a CVE¶
When editing a CVE, the CVSS Vector can be entered or updated alongside the CVSS Base Score. The form rejects a CVSS Vector that uses an unsupported CVSS version, or that has a malformed segment or a metric the CVSS version does not define. The deprecated CVSSv2 Score and CVSSv3 Score fields show a deprecation notice below each field.
CVSS Vector Details¶
On the CVE detail view, click the CVSS Vector to open a pop-up that explains the vector. Each metric in the vector is listed with its full name, its value, and a description of what the metric measures. CVSS v2.0, v3.0, v3.1, and v4.0 vectors are supported, including the optional CVSS v3.x temporal and environmental metrics and the CVSS v4.0 threat, environmental, and supplemental metrics. The pop-up leaves out blank and malformed segments. A segment that names a metric the CVSS version does not define is listed with its raw text and no description.
The Open in CVSS vX.Y calculator button, for example Open in CVSS v3.1 calculator, opens the vector in the official calculator for its CVSS version in a new tab: the FIRST CVSS calculator for CVSS v3.0, v3.1, and v4.0, or the NVD CVSS v2 calculator for CVSS v2.0. The calculator shows how the vector's metrics produce the CVSS Base Score.
Software Association¶
As stated previously, you can associate a CVE to one or many software versions. These relationships will present themselves as breadcrumb links on the CVE item's detail view, and as the "Related CVEs" tab on the Software item's detail view.
Example of a breadcrumb link on a CVE item's view:
Example of the "Related CVEs" tab on a Software item's view:
Vulnerability objects¶
A Vulnerability object is the representation of a discovered relationship between a CVE object, a Software object and a Device (or Inventory Item) object. Vulnerability objects cannot be created manually, but rather they must be generated via a Job. They require the combination of a CVE object that is associated to a Software object and that Software object to be associated to a Device or Inventory Item object in order to be discovered and generated. You can think of Vulnerability objects like an attack surface that was found in your infrastructure that must be mitigated (such as upgrading the affected device to a patched software version).
To generate Vulnerability objects you must run the Generate Vulnerabilities Job that is packaged as part of this app. One Vulnerability object will be created for each unique combination of CVE/Software/Device and CVE/Software/Inventory Item.
Note
When running the Generate Vulnerabilities Job, if any unique combinations are found that match an existing Vulnerability object, the Job will not create a duplicate object nor modify the existing object.
Modifying or Removing Vulnerability objects¶
After a Vulnerability object has been generated, the CVE, Software, Device and Inventory Item fields on that object cannot be modified, however the following fields may be modified (individually or in bulk).
| Field | Description |
|---|---|
| Status | The current status of the Vulnerability (requires a Status object to be created and associated to the Vulnerability model) |
| Tags | Arbitrary tag objects that can be applied to this CVE |
Note
In addition to these standard fields, you can also add one or more Custom Fields to the model.
As was stated previously, running the Generate Vulnerabilities Job will not modify (or delete) any existing Vulnerability objects - even if the associations that existed previously no longer exist. You do have the ability to delete one or more Vulnerability objects via the GUI or API. In addition to manually removing a Vulnerability, if any CVE, Software, Device or Inventory Item objects are removed, any Vulnerability objects that reference the deleted items will also be removed automatically.
Automated CVE Discovery via NIST API 2.0¶
The NTC Nautobot Device Lifecycle Management app now supports automated CVE discovery via the NIST NVD API 2.0. This feature is optional and can be enabled by obtaining an API key, updating the necessary Secret, and running the NIST - Software CVE Search Job. Continue reading for more information.
Note
If a manual CVE entry exists with a Name that differs from the NIST CVE Name, a new CVE record will be created and associated. If the manual Name matches, any updates pulled from NIST will be made to the existing record and the association will be ensured.
Note
If a record is updated due to a mismatched Modified Date against NIST, a comment will be added to the TOP of the comments section notifying of an update and the timestamp that the record was locally modified. The record's Last Modifed Date will be updated to show when the record itself was modifed in NIST.
Note
The Job sets the CVE's CVSS Base Score and Severity from one score in the CVE's NIST record, and stores that score's vector string in the CVSS Vector field. A NIST record can hold several scores for each CVSS version: NIST's own score (Primary) and scores from other sources such as the vendor (Secondary).
Run the Job with Force CVE Updates after upgrading
After upgrading to v4.3.0, run the Job once with Force CVE Updates checked. The Job only updates an existing CVE when its Modified Date in NIST differs from the CVE's Last Modified Date, so without a forced run existing CVEs keep their previous CVSS Base Score, Severity, CVSSv2 Score and CVSSv3 Score, and their CVSS Vector stays empty, until NIST modifies the CVE record. A forced run updates every CVE that NIST returns for your Software Versions, regardless of its Last Modified Date. See the upgrade guide.
CVSS Score Priorities and Logic¶
The CVSS_SCORE_SOURCE setting selects the score. Set it in the Admin UI under Configuration > Config, in the Nautobot Device Lifecycle Management section, or in PLUGINS_CONFIG, which takes precedence. After changing it, run the Job with Force CVE Updates to update existing CVEs.
| Value | Score used | If that source has no score |
|---|---|---|
nist (default) |
NIST's own score for the highest CVSS version NIST has scored | The first score of the highest CVSS version, usually the vendor's |
vendor |
The first non-NIST score for the highest CVSS version that another source has scored, usually the vendor's | NIST's own score for the highest CVSS version |
highest_version |
The highest score for the highest CVSS version, NIST's own on a tie | Not applicable |
-
When the configured source has no score: the Job logs
CVSS score provided by <source> for <CVE>as an info message under CVE Creation or CVE Updates when it creates or updates the CVE. -
When NVD provides a CVSS metric without a base score: the CVSS Base Score is left empty, and the Job logs the warning
NVD did not provide a CVSS base score for <CVE>; the CVSS Base Score is empty.when it creates or updates the CVE. -
Severity: For v3.0 and later, the chosen score's
baseSeverity. For v2, it is always derived from the base score (Low: 0.0-3.9, Medium: 4.0-6.9, High: 7.0-10.0). -
Deprecated CVSSv2 Score and CVSSv3 Score fields: Set to the CVSS v2 and v3.x exploitability scores, preferring NIST's own score for each version. They do not depend on which version the CVSS Base Score came from.
External Integration¶
An External Integration must be created and configured in order to use the NIST NVD API for automatic software CVE discovery. On this note, the following is installed for you:
- A new External Integration object named
NAUTOBOT DLM NIST EXTERNAL INTEGRATIONthat allows you to control the following behaviors of the integration:api_call_delay: A delay between API calls in seconds (default: 6). NIST Recommends a minimum value of 6 to prevent overloading resources.retries: Controls how the job handles transient failures from the NIST API. There are two retry layers:- HTTP status retries at the session layer (502/503/504).
- Transport-level failures at the job layer — any
requests.exceptions.RequestException(e.g.,ConnectionError,ChunkedEncodingErrorfrom HTTP/2 stream resets such asStream X was reset by remote peer, andTimeout). On such a failure the job closes the existing NIST session, re-initializes a fresh one vianist_session_init, sleepsbackoff * attemptseconds, and retries the same URL up tomax_attemptstimes before re-raising. The following errors are not retried at the job layer. The job logs them and raises them immediately, because retrying would fail the same way:HTTPErrorresponses (4xx/5xx).RetryError, raised when the session layer has used up its retries for a 502/503/504 response. The session layer has already retried these, so the job does not repeat them.- Invalid JSON in the response body.
- Malformed request or configuration errors:
MissingSchema,InvalidSchema,InvalidURL,InvalidHeader,InvalidProxyURL,URLRequired, andTooManyRedirects.
max_attempts: The maximum number of attempts (default: 3). Used by both layers above, but each layer counts it differently. The session layer allows up tomax_attemptsretries after the first request. The job layer makes at mostmax_attemptsrequests in total and treats values below 1 as 1.backoff: The backoff factor for the retry attempts (default: 2). At the session layer this is the urllib3backoff_factor; at the job layer this is the multiplier applied asbackoff * attemptbefore each rebuild-and-retry.
- A new Secrets Group object named
NAUTOBOT DLM NIST SECRETS GROUPused for access to the NIST API Key from the External Integration. - A new Secret object named
NAUTOBOT DLM NIST API KEY. This object is created for you during setup with minimum defaults. The Secret name must be exactly as above, but you will need to configure the Secret to properly access the NIST API Key.- To obtain your NIST API Key go here.
- This key will be made invalid if not used for a seven day period and a request for a new key will be necessary to use this function.
NOTE: You may change the name of the External Integration or create your own using other configuration settings, but the SecretsGroup and Secret objects must be named as above. The External Integration is selected when starting the Job run.
Version formats for NIST CVE search¶
The NIST - Software CVE Search Job uses netutils.nist and netutils.os_version to build NIST NVD query URLs from each Software Version's platform (network driver) and version string. Each NIST-mapped platform uses either the default parser or a vendor-specific parser. The version value on your Software Version objects should match the format expected by that parser so that CVE discovery works correctly.
Platforms using the default parser¶
These platforms use the default parser from netutils.os_version (Generic - Loosely based on, and compatible with SymVer formatting.):
| Network driver | NIST vendor:platform |
|---|---|
arista_eos |
arista:eos |
aruba_os |
arubanetworks:arubaos |
cisco_asa |
cisco:adaptive_security_appliance_software |
cisco_ios |
cisco:ios |
cisco_nxos |
cisco:nx-os |
cisco_xe |
cisco:ios_xe |
cisco_xr |
cisco:ios_xr |
paloalto_panos |
paloaltonetworks:pan-os |
Default parser version format:
- Full (preferred):
major.minor.patchwith optional-prereleaseand+buildmetadata.major,minor,patch: numeric, no leading zeros (e.g.0,1,10).prerelease: alphanumeric, hyphens, dots (e.g.alpha,alpha.beta.1).buildmetadata: alphanumeric, hyphens, dots (e.g.build.1).
- Fallback:
major.minorfollowed by any suffix (e.g.15.5(2)S1c,10.20,1.0.0-alpha).
Examples: 15.5, 10.20.30, 1.0.0-alpha.beta.1, 15.5(2)S1c, 9.1.6, 9.1.15-h1.
Platforms using a custom parser¶
| Network driver | NIST vendor:platform |
|---|---|
juniper_junos |
juniper:junos |
Juniper JunOS version format:
- Core:
main.minor(digits), then optionally a type (x,X,r,R,s,S) and build (digits). - Optional suffix after
-or:: service letter (s/Sord/D) + optionalservice_build(digits) + optional.+service_respin(digits).
Pattern:
12.1R3-S4.1 │ ││ ││ │ │ ││ ││ └─── service_respin │ ││ |└───── service_build (4) │ ││ └────── service_letter (S) │ │└──────── build (3) │ └───────── build_type (R) └───────────── main.minor (12.1)
Examples: 12.3R4, 12.1R3-S4.1, 12.1x47, 12.2x50:d41.1, 10.2R2.11, 10.4s.
If the version does not match this pattern, the JunOS parser will not populate the fields needed for the custom NIST URL builder and CVE discovery may fail or be incorrect for that software.
If your platform is not in the above listings the entry will be skipped leaving a log message. You may submit an issue request to have a mapping added to the netutils library to support your platform. Issue requests for netutils can be submitted here: https://github.com/networktocode/netutils/issues
Run Job¶
Automated discovery is used by running the NIST - Software CVE Search Job.
To run this job, use the "Jobs" menu dropdown and navigate to the CVE Tracking section. The jobs will appear here and all you will need to do is click the play button in order to use the default External Integration[^1]. If you have configured additional Integrations, you may select the External Integration that you want to use. As stated previously, the name of the External Integration does not matter, but the External Integration must contain a SecretsGroup and Secret named as above.
You may also optionally select one or more Software Versions to limit the search to just those versions. Leaving this field empty searches all Software Versions (the previous default behavior).
The job output should indicate the softwares checked and the amount of CVEs received for that software, as well as the amount of CVEs created. These will not always be the same. New CVE will be created for software with existing CVE, also software will share CVEs.
[^1] Warning: If play button is grayed out. You will need to enable the job by clicking on edit button in the row and navigate to "Job" portion and click on "Enable"
Additional Notes:¶
Due to the way vendor platform entries vary in NIST, some platforms may work without issue, others may not work so well (false positives/negatives). Juniper JunOS is a great example and has a custom parser in netutils to handle this.
If the platform you are attempting to gather information from does not work, a custom parser will likely be needed to build a proper NIST search URL.
External Documentation References¶
Relevent Netutils Module Documentation¶
OS Version Module - Responsible for parsing version strings into version parameters: https://netutils.readthedocs.io/en/latest/user/lib_use_cases_os_version/
NIST Module - Responsible for all NIST related functions: https://netutils.readthedocs.io/en/latest/user/lib_use_cases_nist/
















