Vulnerability · Published May 20, 2021 · Assigned by snyk
CVE-2021-23386Remote Memory Exposure
High 7.7
In plain English
A high-severity security flaw in dns-packet. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.7High
Exploit odds (30 days)1.4%top 26.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | dns-packet | 5.2.2 | GHSA-3wcq-x3mq-6r9p |
| npm | dns-packet | 1.3.2 | GHSA-3wcq-x3mq-6r9p |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | dns-packet | unspecified – before 5.2.2 |
References
- https://snyk.io/vuln/SNYK-JS-DNSPACKET-1293563 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1295719 x_refsource_MISC
- https://hackerone.com/bugs?subject=user&%3Breport_id=968858 x_refsource_MISC
- https://github.com/mafintosh/dns-packet/commit/25f15dd0fedc53688b25fd053ebbdffe3d5c1c56 x_refsource_MISC