{"id":"CVE-2021-23386","published":"2021-05-20T16:15:18Z","modified":"2024-09-16T20:52:54Z","title":"Remote Memory Exposure","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01425,"percentile":0.73595,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-DNSPACKET-1293563","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1295719","tags":["x_refsource_MISC"]},{"url":"https://hackerone.com/bugs?subject=user&amp%3Breport_id=968858","tags":["x_refsource_MISC"]},{"url":"https://github.com/mafintosh/dns-packet/commit/25f15dd0fedc53688b25fd053ebbdffe3d5c1c56","tags":["x_refsource_MISC"]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":14.72},{"name":"CVSS severity","points":5.39}]},"affectedVersions":[{"vendor":"n/a","product":"dns-packet","versions":[">= unspecified, < 5.2.2"]}],"affected":[{"ecosystem":"npm","package":"dns-packet","vulnerableRanges":[">=2.0.0, <5.2.2","<1.3.2"],"patched":["5.2.2","1.3.2"],"from":["GHSA-3wcq-x3mq-6r9p"],"provenance":"source"}],"summary":{"text":"The dns-packet npm package (versions before 5.2.2) allocates buffers with allocUnsafe and does not always fill them before building network packets, so internal application memory can leak into outgoing DNS traffic. An attacker on the network path can trigger this by querying crafted invalid domain names, and the data is exposed because the traffic is unencrypted.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:13Z"},"euvd":{"id":"EUVD-2021-0923","exploited":false,"provenance":"source"}}