APIs / NVD / Get a CVE from the NVD

NVD: Get a CVE from the NVD

One CVE from the National Vulnerability Database: description, CVSS v4.0, v3.1 and v2 scores, CWEs, CISA KEV fields, CPEs, references and dates.

GET /v1/nvd/cve

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
idstringRequiredUp to 20 characters
CVE id, such as CVE-2021-44228.

Example request

NVD
GET/v1/nvd/cve?id=CVE-2021-44228
{
  "success": true,
  "data": {
    "id": "CVE-2021-44228",
    "status": "Analyzed",
    "published": "2021-12-10T10:15:09.143",
    "last_modified": "2026-08-11T19:33:44.513",
    "description": "Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoint…",
    "cvss_v31": {
      "score": 10,
      "severity": "CRITICAL",
      "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
      "exploitability_score": 3.9,
      "impact_score": 6,
      "source": "nvd@nist.gov",
      "type": "Primary"
    },
    "cvss_v2": {
      "score": 9.3,
      "severity": "HIGH",
      "vector": "AV:N/AC:M/Au:N/C:C/I:C/A:C",
      "exploitability_score": 8.6,
      "impact_score": 10,
      "source": "nvd@nist.gov",
      "type": "Primary"
    },
    "weaknesses": [
      "CWE-20",
      "CWE-400",
      "CWE-502"
    ],
    "kev": {
      "added": "2021-12-10",
      "action_due": "2021-12-24",
      "required_action": "For all affected software assets for which updates exist, the only acceptable remediation actions are: 1) Apply updates; OR 2) remove affected assets from agency networks. Temporary mitigations using one of the measures provided at https://…",
      "vulnerability_name": "Apache Log4j2 Remote Code Execution Vulnerability"
    },
    "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-44228",
    "source_identifier": "security@apache.org",
    "affected_cpes": [
      {
        "criteria": "cpe:2.3:o:siemens:6bk1602-0aa12-0tp0_firmware:*:*:*:*:*:*:*:*",
        "version_end_excluding": "2.7.0"
      },
      {
        "criteria": "cpe:2.3:o:siemens:6bk1602-0aa22-0tp0_firmware:*:*:*:*:*:*:*:*",
        "version_end_excluding": "2.7.0"
      },
      {
        "criteria": "cpe:2.3:o:siemens:6bk1602-0aa32-0tp0_firmware:*:*:*:*:*:*:*:*",
        "version_end_excluding": "2.7.0"
      }
    ],
    "references": [
      {
        "url": "http://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.html",
        "source": "security@apache.org",
        "tags": [
          "Third Party Advisory",
          "VDB Entry"
        ]
      },
      {
        "url": "http://packetstormsecurity.com/files/165260/VMware-Security-Advisory-2021-0028.html",
        "source": "security@apache.org",
        "tags": [
          "Third Party Advisory",
          "VDB Entry"
        ]
      },
      {
        "url": "http://packetstormsecurity.com/files/165261/Apache-Log4j2-2.14.1-Information-Disclosure.html",
        "source": "security@apache.org",
        "tags": [
          "Exploit",
          "Third Party Advisory",
          "VDB Entry"
        ]
      }
    ],
    "references_total": 103,
    "notice": "This product uses the NVD API but is not endorsed or certified by the NVD."
  },
  "meta": {
    "request_id": "req_c256390699144f949112c6a378946306",
    "credits_charged": 1,
    "credits_remaining": 168
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

data has these 14 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
idstring
publishedstring
last_modifiedstring
descriptionstring
cvss_v31object
cvss_v2object
weaknessesstring[]
kevobject
urlurl
source_identifierstring
affected_cpesobject[]
referencesobject[]
references_totalinteger
noticestring