{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-23386","id":"CVE-2021-23386","title":"Remote Memory Exposure","description":"This affects the package dns-packet before 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.","descriptionLong":"This affects the package dns-packet before 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.","published":"2021-05-20T16:15:18.500Z","updated":"2026-10-20T10:53:37.691961791Z","reserved":"2021-01-08T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","rating":"high","source":"snyk"},"metrics":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","rating":"high","source":"snyk"},{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","rating":"high","source":"snyk.io"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","rating":"high","source":"GitHub"},{"version":"2.0","score":4,"vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["dns-packet"],"affectedProducts":[{"vendor":"n/a","product":"dns-packet","defaultStatus":null,"versions":[{"lessThan":"5.2.2","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"dns-packet","purl":"pkg:npm/dns-packet","ranges":[">=2.0.0 <5.2.2","<1.3.2"],"fixed":["5.2.2","1.3.2"],"advisory":"GHSA-3wcq-x3mq-6r9p"}],"cwes":["CWE-909","CWE-200","CWE-908"],"aliases":["GHSA-3wcq-x3mq-6r9p"],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-DNSPACKET-1293563","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1295719","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://hackerone.com/bugs?subject=user&amp%3Breport_id=968858","tags":["x_refsource_MISC","x_transferred","Permissions Required","Third Party Advisory","report","web"]},{"url":"https://github.com/mafintosh/dns-packet/commit/25f15dd0fedc53688b25fd053ebbdffe3d5c1c56","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23386","tags":["advisory"]},{"url":"https://github.com/mafintosh/dns-packet/commit/0d0d593f8df4e2712c43957a6c62e95047f12b2d","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01425,"epssPercentile":0.73509,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-23386","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23386","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-23386","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3wcq-x3mq-6r9p","ok":true,"note":"GHSA-3wcq-x3mq-6r9p"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-23386","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}