7.7high
Remote Memory Exposure
- Severity
- 7.7high CVSS:3.1 by snyk
- Exploit likelihood
- 1.43% (higher than 73% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-3wcq-x3mq-6r9p
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
| Product or package | Versions | Reported by |
|---|---|---|
| dns-packet | from unspecified before 5.2.2 | CVE List |
| dns-packet (npm) | from 2.0.0 before 5.2.2, before 1.3.2 | GitHub Advisory Database |
| dns-packet_project dns-packet | before 1.3.4, from 2.0.0 before 5.2.2 | NVD |
All scores
| snyk | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L |
| GitHub | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 4.0medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Esto afecta al paquete dns-packet versión anterior a 5.2.2. Crea búferes con el parámetro allocUnsafe y no siempre los llena antes de formar paquetes de red. Esto puede exponer la memoria interna de la aplicación por medio de una red no cifrada cuando se consultan nombres de dominio no válidos diseñados
References
| https://snyk.io/vuln/SNYK-JS-DNSPACKET-1293563 | patch, third-party-advisory, web | |
| https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1295719 | patch, third-party-advisory, web | |
| https://hackerone.com/bugs?subject=user&%3Breport_id=968858 | permissions-required, third-party-advisory, web | |
| https://github.com/mafintosh/dns-packet/commit/25f15dd0fedc53688b25fd053ebbdffe3d5c1c56 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23386 | advisory | |
| https://github.com/mafintosh/dns-packet/commit/0d0d593f8df4e2712c43957a6c62e95047f12b2d | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23386 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3wcq-x3mq-6r9p changed 2025-01-14 | CC-BY-4.0 |
| NVD | CVE-2021-23386 changed 2026-06-17 | Public domain |