Skip to content

CVE-2021-23386 Remote Memory Exposure

MediumCVSS 6.5 EPSS 1.4%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
dns-packet project dns-packet < 1.3.4; >= 2.0.0, < 5.2.2 1.3.4, 5.2.2 Fixed
npm dns-packet(npm) < 1.3.2; >= 2.0.0, < 5.2.2 1.3.2, 5.2.2 Fixed

Affected products

ProductAffected versionsFixed in
npm dns-packet(npm) < 1.3.2 1.3.2
npm dns-packet(npm) >= 2.0.0, < 5.2.2 5.2.2
dns-packet project dns-packet < 1.3.4 1.3.4
dns-packet project dns-packet >= 2.0.0, < 5.2.2 5.2.2

References