Skip to content

Potential memory exposure in dns-packet

High severity GitHub Reviewed Published May 24, 2021 to the GitHub Advisory Database • Updated Nov 29, 2023

Package

npm dns-packet (npm)

Affected versions

< 1.3.2
>= 2.0.0, < 5.2.2

Patched versions

1.3.2
5.2.2

Description

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.

References

Published by the National Vulnerability Database May 20, 2021
Reviewed May 21, 2021
Published to the GitHub Advisory Database May 24, 2021
Last updated Nov 29, 2023

Severity

High
7.7
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L

CVE ID

CVE-2021-23386

GHSA ID

GHSA-3wcq-x3mq-6r9p

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.