pub struct CveParameters {Show 19 fields
pub cpe_name: Option<String>,
pub cve_id: Option<String>,
pub cvss_v2_metrics: Option<String>,
pub cvss_v2_severity: Option<SeverityTypeV2>,
pub cvss_v3_metrics: Option<String>,
pub cvss_v3_severity: Option<SeverityType>,
pub cwe_id: Option<String>,
pub has_cert_alerts: Option<bool>,
pub has_cert_notes: Option<bool>,
pub has_kev: Option<bool>,
pub has_oval: Option<bool>,
pub is_vulnerable: Option<bool>,
pub keyword: Option<Keyword>,
pub last_mod: Option<LastModDate>,
pub no_rejected: Option<bool>,
pub pub_date: Option<PubDate>,
pub limit_offset: Option<LimitOffset>,
pub source_identifier: Option<String>,
pub virtual_match: Option<VirtualMatch>,
}
Expand description
The CVE API is used to easily retrieve information on a single CVE or a collection of CVE from the NVD. The NVD contains 232,639 CVE records. Because of this, its APIs enforce offset-based pagination to answer requests for large collections. Through a series of smaller “chunked” responses controlled by an offset startIndex and a page limit resultsPerPage users may page through all the CVE in the NVD.
The URL stem for retrieving CVE information is shown below.
Fields§
§cpe_name: Option<String>
This parameter returns all CVE associated with a specific CPE. The exact value provided with cpeName is compared against the CPE Match Criteria within a CVE applicability statement. If the value of cpeName is considered to match, the CVE is included in the results.
cve_id: Option<String>
This parameter returns a specific vulnerability identified by its unique Common Vulnerabilities and Exposures identifier (the CVE ID). cveId will not accept {CVE-ID} for vulnerabilities not yet published in the NVD.
cvss_v2_metrics: Option<String>
This parameter returns only the CVEs that match the provided {CVSSv2 vector string}. Either full or partial vector strings may be used. This parameter cannot be used in requests that include cvssV3Metrics.
cvss_v2_severity: Option<SeverityTypeV2>
This parameter returns only the CVEs that match the provided CVSSv2 qualitative severity rating. This parameter cannot be used in requests that include cvssV3Severity.
cvss_v3_metrics: Option<String>
This parameter returns only the CVEs that match the provided {CVSSv3 vector string}. Either full or partial vector strings may be used. This parameter cannot be used in requests that include cvssV2Metrics.
cvss_v3_severity: Option<SeverityType>
This parameter returns only the CVEs that match the provided CVSSv3 qualitative severity rating. This parameter cannot be used in requests that include cvssV2Severity. Note: The NVD will not contain CVSS v3 vector strings with a severity of NONE. This is why that severity is not an included option.
cwe_id: Option<String>
This parameter returns only the CVE that include a weakness identified by Common Weakness Enumeration using the provided {CWE-ID}. Note: The NVD also makes use of two placeholder CWE-ID values NVD-CWE-Other and NVD-CWE-noinfo which can also be used.
has_cert_alerts: Option<bool>
This parameter returns the CVE that contain a Technical Alert from US-CERT. Please note, this parameter is provided without a parameter value.
has_cert_notes: Option<bool>
This parameter returns the CVE that contain a Vulnerability Note from CERT/CC. Please note, this parameter is provided without a parameter value.
has_kev: Option<bool>
This parameter returns the CVE that appear in CISA’s Known Exploited Vulnerabilities (KEV) Catalog. Please note, this parameter is provided without a parameter value.
has_oval: Option<bool>
This parameter returns the CVE that contain information from MITRE’s Open Vulnerability and Assessment Language (OVAL) before this transitioned to the Center for Internet Security (CIS). Please note, this parameter is provided without a parameter value.
is_vulnerable: Option<bool>
This parameter returns only CVE associated with a specific CPE, where the CPE is also considered vulnerable. The exact value provided with cpeName is compared against the CPE Match Criteria within a CVE applicability statement. If the value of cpeName is considered to match, and is also considered vulnerable the CVE is included in the results.
keyword: Option<Keyword>
keyword Keyword
last_mod: Option<LastModDate>
last_mod LastModDate
no_rejected: Option<bool>
By default, the CVE API includes CVE records with the REJECT or Rejected status. This parameter excludes CVE records with the REJECT or Rejected status from API response. Please note, this parameter is provided without a parameter value.
pub_date: Option<PubDate>
pub_date PubDate
limit_offset: Option<LimitOffset>
limit_offset LimitOffset
source_identifier: Option<String>
This parameter returns CVE where the exact value of {sourceIdentifier} appears as a data source in the CVE record. The CVE API returns {sourceIdentifier} values within the descriptions object. The Source API returns detailed information on the organizations that provide the data contained in the NVD dataset, including every valid {sourceIdentifier} value.
virtual_match: Option<VirtualMatch>
virtual_match VirtualMatch
Trait Implementations§
Source§impl Clone for CveParameters
impl Clone for CveParameters
Source§fn clone(&self) -> CveParameters
fn clone(&self) -> CveParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CveParameters
impl Debug for CveParameters
Source§impl Default for CveParameters
impl Default for CveParameters
Source§fn default() -> CveParameters
fn default() -> CveParameters
Source§impl<'de> Deserialize<'de> for CveParameters
impl<'de> Deserialize<'de> for CveParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CveParameters
impl PartialEq for CveParameters
Source§impl Serialize for CveParameters
impl Serialize for CveParameters
impl Eq for CveParameters
impl StructuralPartialEq for CveParameters
Auto Trait Implementations§
impl Freeze for CveParameters
impl RefUnwindSafe for CveParameters
impl Send for CveParameters
impl Sync for CveParameters
impl Unpin for CveParameters
impl UnwindSafe for CveParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.