Security readout for executives and security teams
Plain-English summary
CVE-2021-23386 is a memory disclosure issue in dns-packet before 5.2.2. Under crafted invalid domain-name input, the library may send DNS packets containing leftover application memory. The main business risk is unintended leakage of sensitive process data over unencrypted network traffic.
Executive priority
Treat this as a high-priority dependency remediation when dns-packet is present in production services. It is not currently described as actively exploited in the provided sources, but memory exposure can create serious confidentiality risk.
Technical view
dns-packet used allocUnsafe buffers and did not always fully initialize them before network packet construction. The CVSS 3.1 score is 7.7, with high confidentiality impact, high attack complexity, low privileges required, no user interaction, and changed scope. Affected versions are before 5.2.2.
Likely exposure
Exposure is most likely in Node.js or packaged WebJars/npm applications that depend on dns-packet versions before 5.2.2 and generate DNS packets from untrusted or externally influenced domain names.
Exploitation context
The source bundle does not show CISA KEV listing or cited active exploitation. The vulnerability requires crafted invalid domain names and has high attack complexity, but successful exploitation could disclose internal application memory.
Researcher notes
Focus validation on dependency reachability and data sensitivity. The provided description ties exposure to packet construction from crafted invalid domain names and unencrypted network paths. Avoid assuming exploitability in every consumer without confirming the vulnerable code path is reachable.
Mitigation direction
- Upgrade dns-packet to version 5.2.2 or later.
- Refresh lockfiles and redeploy services that bundle the vulnerable dependency.
- Check vendor guidance for transitive or WebJars/npm packaged uses.
- Prefer encrypted network paths where DNS-related application traffic may expose sensitive data.
Validation and detection
- Inventory direct and transitive dns-packet dependencies across Node.js projects.
- Confirm deployed artifacts do not include dns-packet versions before 5.2.2.
- Review SBOM and lockfile output for WebJars/npm variants.
- Verify tests cover invalid domain-name handling without leaking uninitialized buffer data.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CVE-2021-23386 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- High
- CVSS
- 7.7 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L1.85.3Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
7.7HighVector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
Source materials
- CVE List V5 sourceCVE List V5
- https://snyk.io/vuln/SNYK-JS-DNSPACKET-1293563CVE reference · x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1295719CVE reference · x_refsource_MISC
- https://hackerone.com/bugs?subject=user&%3Breport_id=968858CVE reference · x_refsource_MISC
- https://github.com/mafintosh/dns-packet/commit/25f15dd0fedc53688b25fd053ebbdffe3d5c1c56CVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
