{
  "schema_version": "1.4.0",
  "id": "GHSA-3wcq-x3mq-6r9p",
  "modified": "2021-05-26T20:11:00Z",
  "published": "2021-05-24T19:51:04Z",
  "aliases": [
    "CVE-2021-23386"
  ],
  "summary": "Potential memory exposure in dns-packet",
  "details": "This affects the package dns-packet before versions 1.3.2 and 5.2.2. It creates buffers with allocUnsafe and does not always fill them before forming network packets. This can expose internal application memory over unencrypted network when querying crafted invalid domain names.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "dns-packet"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "2.0.0"
            },
            {
              "fixed": "5.2.2"
            }
          ]
        }
      ]
    },
    {
      "package": {
        "ecosystem": "npm",
        "name": "dns-packet"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.3.2"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-23386"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mafintosh/dns-packet/commit/0d0d593f8df4e2712c43957a6c62e95047f12b2d"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mafintosh/dns-packet/commit/25f15dd0fedc53688b25fd053ebbdffe3d5c1c56"
    },
    {
      "type": "WEB",
      "url": "https://hackerone.com/bugs?subject=user&amp%3Breport_id=968858"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1295719"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/SNYK-JS-DNSPACKET-1293563"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-200",
      "CWE-908"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-05-21T18:07:04Z",
    "nvd_published_at": "2021-05-20T17:15:00Z"
  }
}