CVE-2021-23386
JSON

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 packageVersionsReported by
dns-packetfrom unspecified before 5.2.2CVE List
dns-packet (npm)from 2.0.0 before 5.2.2, before 1.3.2GitHub Advisory Database
dns-packet_project dns-packetbefore 1.3.4, from 2.0.0 before 5.2.2NVD

All scores

snyk7.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
GitHub7.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD4.0medium CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2021-23386 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-3wcq-x3mq-6r9p changed 2025-01-14CC-BY-4.0
NVDCVE-2021-23386 changed 2026-06-17Public domain