# com.nahdig.cve.nvdV2

> An NVD CVE API v2.0 CVE object, stored under the CVE identifier as the record key.

- Kind: record
- Record key: any
- Authority: cve.nahdig.com
- Lexicon: 1
- Published by [nahdig.com](https://lexicon.garden/identity/did:plc:zmuf6p7ahfh4ly4wp4bx57hx), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:zmuf6p7ahfh4ly4wp4bx57hx/com.nahdig.cve.nvdV2)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:zmuf6p7ahfh4ly4wp4bx57hx/com.nahdig.cve.nvdV2/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:zmuf6p7ahfh4ly4wp4bx57hx/com.nahdig.cve.nvdV2/analytics)

## Record (`com.nahdig.cve.nvdV2`)

Type: record · key any

### Properties

- `configurations` (array): CPE applicability configurations.
  - `items` (ref)
    - Reference: `#configuration`
- `createdAt` (string · datetime, required): Timestamp when this record was created.
- `cveTags` (array): NVD CVE tags.
  - `items` (ref)
    - Reference: `#cveTag`
- `dataBlob` (blob): Gzipped full CVE JSON for oversized records. The record is an index card; all CVE fields live in this blob.
  - Constraints: maxSize: 5242880, accept: application/gzip
- `dataBytes` (integer): Uncompressed size of the canonical JSON in dataBlob.
- `dataEncoding` (string): Encoding of dataBlob; currently gzip.
- `dataSha256` (string): SHA-256 of the uncompressed canonical JSON in dataBlob.
- `descriptions` (array): Localized CVE descriptions.
  - `items` (ref)
    - Reference: `#langString`
- `evaluatorComment` (string): NVD evaluator comment, when present.
- `evaluatorImpact` (string): NVD evaluator impact statement, when present.
- `evaluatorSolution` (string): NVD evaluator solution, when present.
- `id` (string): CVE identifier, for example CVE-2024-3094.
- `lastModified` (string · datetime): NVD last-modified timestamp. NVD may omit the timezone, so normalize to UTC before writing.
- `metrics` (ref): CVSS and other NVD metrics.
  - Reference: `#metrics`
- `published` (string · datetime): NVD publication timestamp. NVD may omit the timezone, so normalize to UTC before writing.
- `references` (array): External references for the CVE.
  - `items` (ref)
    - Reference: `#reference`
- `sourceIdentifier` (string): NVD source identifier for the CVE.
- `vulnStatus` (string): NVD vulnerability status.
- `weaknesses` (array): CWE weakness entries.
  - `items` (ref)
    - Reference: `#weakness`

## #configuration (`com.nahdig.cve.nvdV2#configuration`)

Type: object

A CPE configuration. NVD alternates between nodes and children, both of which pass through.

### Properties

- `negate` (boolean)
- `nodes` (array)
  - `items` (ref)
    - Reference: `#node`
- `operator` (string)

## #cpeMatch (`com.nahdig.cve.nvdV2#cpeMatch`)

Type: object

A CPE match entry.

### Properties

- `criteria` (string, required)
- `matchCriteriaId` (string)
- `versionEndExcluding` (string)
- `versionEndIncluding` (string)
- `versionStartExcluding` (string)
- `versionStartIncluding` (string)
- `vulnerable` (boolean, required)

## #cveTag (`com.nahdig.cve.nvdV2#cveTag`)

Type: object

A CVE tag group from a source.

### Properties

- `sourceIdentifier` (string)
- `tags` (array)
  - `items` (string)

## #cvssData (`com.nahdig.cve.nvdV2#cvssData`)

Type: object

CVSS scoring data. Score fields are decimal strings because atproto has no float type.

### Properties

- `accessComplexity` (string)
- `accessVector` (string)
- `attackComplexity` (string)
- `attackVector` (string)
- `authentication` (string)
- `availabilityImpact` (string)
- `baseScore` (string): CVSS base score. NVD emits a JSON float; atproto has no float type, so ingestion must encode the decimal as a string.
- `baseSeverity` (string)
- `confidentialityImpact` (string)
- `integrityImpact` (string)
- `privilegesRequired` (string)
- `scope` (string)
- `userInteraction` (string)
- `vectorString` (string)
- `version` (string)

## #cvssMetric (`com.nahdig.cve.nvdV2#cvssMetric`)

Type: object

A single CVSS metric entry.

### Properties

- `acInsufInfo` (boolean)
- `baseSeverity` (string)
- `cvssData` (ref)
  - Reference: `#cvssData`
- `exploitabilityScore` (string): CVSS exploitability score. NVD emits a JSON float; atproto has no float type, so ingestion must encode the decimal as a string.
- `impactScore` (string): CVSS impact score. NVD emits a JSON float; atproto has no float type, so ingestion must encode the decimal as a string.
- `obtainAllPrivilege` (boolean)
- `obtainOtherPrivilege` (boolean)
- `obtainUserPrivilege` (boolean)
- `source` (string)
- `type` (string)
- `userInteractionRequired` (boolean)

## #langString (`com.nahdig.cve.nvdV2#langString`)

Type: object

A localized string value.

### Properties

- `lang` (string, required): Language code for the value.
- `value` (string, required): Text value.

## #metrics (`com.nahdig.cve.nvdV2#metrics`)

Type: object

NVD metrics grouped by CVSS version. Other metric groups pass through unmodified.

### Properties

- `cvssMetricV2` (array)
  - `items` (ref)
    - Reference: `#cvssMetric`
- `cvssMetricV30` (array)
  - `items` (ref)
    - Reference: `#cvssMetric`
- `cvssMetricV31` (array)
  - `items` (ref)
    - Reference: `#cvssMetric`
- `cvssMetricV40` (array)
  - `items` (ref)
    - Reference: `#cvssMetric`

## #node (`com.nahdig.cve.nvdV2#node`)

Type: object

A configuration node. Nodes may contain cpeMatch entries or children nodes.

### Properties

- `cpeMatch` (array)
  - `items` (ref)
    - Reference: `#cpeMatch`
- `negate` (boolean)
- `operator` (string)

## #reference (`com.nahdig.cve.nvdV2#reference`)

Type: object

An external CVE reference.

### Properties

- `source` (string)
- `tags` (array)
  - `items` (string)
- `url` (string, required)

## #weakness (`com.nahdig.cve.nvdV2#weakness`)

Type: object

A weakness entry from a source.

### Properties

- `description` (array)
  - `items` (ref)
    - Reference: `#langString`
- `source` (string)
- `type` (string)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "configuration": {
      "description": "A CPE configuration. NVD alternates between nodes and children, both of which pass through.",
      "properties": {
        "negate": {
          "type": "boolean"
        },
        "nodes": {
          "items": {
            "ref": "#node",
            "type": "ref"
          },
          "type": "array"
        },
        "operator": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "cpeMatch": {
      "description": "A CPE match entry.",
      "properties": {
        "criteria": {
          "type": "string"
        },
        "matchCriteriaId": {
          "type": "string"
        },
        "versionEndExcluding": {
          "type": "string"
        },
        "versionEndIncluding": {
          "type": "string"
        },
        "versionStartExcluding": {
          "type": "string"
        },
        "versionStartIncluding": {
          "type": "string"
        },
        "vulnerable": {
          "type": "boolean"
        }
      },
      "required": [
        "vulnerable",
        "criteria"
      ],
      "type": "object"
    },
    "cveTag": {
      "description": "A CVE tag group from a source.",
      "properties": {
        "sourceIdentifier": {
          "type": "string"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "cvssData": {
      "description": "CVSS scoring data. Score fields are decimal strings because atproto has no float type.",
      "properties": {
        "accessComplexity": {
          "type": "string"
        },
        "accessVector": {
          "type": "string"
        },
        "attackComplexity": {
          "type": "string"
        },
        "attackVector": {
          "type": "string"
        },
        "authentication": {
          "type": "string"
        },
        "availabilityImpact": {
          "type": "string"
        },
        "baseScore": {
          "description": "CVSS base score. NVD emits a JSON float; atproto has no float type, so ingestion must encode the decimal as a string.",
          "type": "string"
        },
        "baseSeverity": {
          "type": "string"
        },
        "confidentialityImpact": {
          "type": "string"
        },
        "integrityImpact": {
          "type": "string"
        },
        "privilegesRequired": {
          "type": "string"
        },
        "scope": {
          "type": "string"
        },
        "userInteraction": {
          "type": "string"
        },
        "vectorString": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "cvssMetric": {
      "description": "A single CVSS metric entry.",
      "properties": {
        "acInsufInfo": {
          "type": "boolean"
        },
        "baseSeverity": {
          "type": "string"
        },
        "cvssData": {
          "ref": "#cvssData",
          "type": "ref"
        },
        "exploitabilityScore": {
          "description": "CVSS exploitability score. NVD emits a JSON float; atproto has no float type, so ingestion must encode the decimal as a string.",
          "type": "string"
        },
        "impactScore": {
          "description": "CVSS impact score. NVD emits a JSON float; atproto has no float type, so ingestion must encode the decimal as a string.",
          "type": "string"
        },
        "obtainAllPrivilege": {
          "type": "boolean"
        },
        "obtainOtherPrivilege": {
          "type": "boolean"
        },
        "obtainUserPrivilege": {
          "type": "boolean"
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "userInteractionRequired": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "langString": {
      "description": "A localized string value.",
      "properties": {
        "lang": {
          "description": "Language code for the value.",
          "type": "string"
        },
        "value": {
          "description": "Text value.",
          "type": "string"
        }
      },
      "required": [
        "lang",
        "value"
      ],
      "type": "object"
    },
    "main": {
      "description": "An NVD CVE API v2.0 CVE object, stored under the CVE identifier as the record key.",
      "key": "any",
      "record": {
        "properties": {
          "configurations": {
            "description": "CPE applicability configurations.",
            "items": {
              "ref": "#configuration",
              "type": "ref"
            },
            "type": "array"
          },
          "createdAt": {
            "description": "Timestamp when this record was created.",
            "format": "datetime",
            "type": "string"
          },
          "cveTags": {
            "description": "NVD CVE tags.",
            "items": {
              "ref": "#cveTag",
              "type": "ref"
            },
            "type": "array"
          },
          "dataBlob": {
            "accept": [
              "application/gzip"
            ],
            "description": "Gzipped full CVE JSON for oversized records. The record is an index card; all CVE fields live in this blob.",
            "maxSize": 5242880,
            "type": "blob"
          },
          "dataBytes": {
            "description": "Uncompressed size of the canonical JSON in dataBlob.",
            "type": "integer"
          },
          "dataEncoding": {
            "description": "Encoding of dataBlob; currently gzip.",
            "type": "string"
          },
          "dataSha256": {
            "description": "SHA-256 of the uncompressed canonical JSON in dataBlob.",
            "type": "string"
          },
          "descriptions": {
            "description": "Localized CVE descriptions.",
            "items": {
              "ref": "#langString",
              "type": "ref"
            },
            "type": "array"
          },
          "evaluatorComment": {
            "description": "NVD evaluator comment, when present.",
            "type": "string"
          },
          "evaluatorImpact": {
            "description": "NVD evaluator impact statement, when present.",
            "type": "string"
          },
          "evaluatorSolution": {
            "description": "NVD evaluator solution, when present.",
            "type": "string"
          },
          "id": {
            "description": "CVE identifier, for example CVE-2024-3094.",
            "type": "string"
          },
          "lastModified": {
            "description": "NVD last-modified timestamp. NVD may omit the timezone, so normalize to UTC before writing.",
            "format": "datetime",
            "type": "string"
          },
          "metrics": {
            "description": "CVSS and other NVD metrics.",
            "ref": "#metrics",
            "type": "ref"
          },
          "published": {
            "description": "NVD publication timestamp. NVD may omit the timezone, so normalize to UTC before writing.",
            "format": "datetime",
            "type": "string"
          },
          "references": {
            "description": "External references for the CVE.",
            "items": {
              "ref": "#reference",
              "type": "ref"
            },
            "type": "array"
          },
          "sourceIdentifier": {
            "description": "NVD source identifier for the CVE.",
            "type": "string"
          },
          "vulnStatus": {
            "description": "NVD vulnerability status.",
            "type": "string"
          },
          "weaknesses": {
            "description": "CWE weakness entries.",
            "items": {
              "ref": "#weakness",
              "type": "ref"
            },
            "type": "array"
          }
        },
        "required": [
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "metrics": {
      "description": "NVD metrics grouped by CVSS version. Other metric groups pass through unmodified.",
      "properties": {
        "cvssMetricV2": {
          "items": {
            "ref": "#cvssMetric",
            "type": "ref"
          },
          "type": "array"
        },
        "cvssMetricV30": {
          "items": {
            "ref": "#cvssMetric",
            "type": "ref"
          },
          "type": "array"
        },
        "cvssMetricV31": {
          "items": {
            "ref": "#cvssMetric",
            "type": "ref"
          },
          "type": "array"
        },
        "cvssMetricV40": {
          "items": {
            "ref": "#cvssMetric",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "node": {
      "description": "A configuration node. Nodes may contain cpeMatch entries or children nodes.",
      "properties": {
        "cpeMatch": {
          "items": {
            "ref": "#cpeMatch",
            "type": "ref"
          },
          "type": "array"
        },
        "negate": {
          "type": "boolean"
        },
        "operator": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "reference": {
      "description": "An external CVE reference.",
      "properties": {
        "source": {
          "type": "string"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "url"
      ],
      "type": "object"
    },
    "weakness": {
      "description": "A weakness entry from a source.",
      "properties": {
        "description": {
          "items": {
            "ref": "#langString",
            "type": "ref"
          },
          "type": "array"
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "description": "An NVD CVE API v2.0 CVE object. Record key is the CVE identifier.",
  "id": "com.nahdig.cve.nvdV2",
  "lexicon": 1
}
```
