Advisory

GHSA-3wcq-x3mq-6r9p

Also known as: CVE-2021-23386

Summary

Potential memory exposure in dns-packet

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-05-24 19:51 UTC
Modified
2025-01-14 08:56 UTC

Affected packages and fixes

dns-packet

npm · All systems

Affected

  • introduced 2.0.0, fixed 5.2.2 (semver)

Fixed versions

5.2.2

Fix

dns-packet

npm · All systems

Affected

  • introduced 0, fixed 1.3.2 (semver)

Fixed versions

1.3.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences