
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-23386 is a Remote Memory Exposure vulnerability affecting the dns-packet package versions before 5.2.2. The vulnerability was discovered and disclosed on May 18, 2021, and published on May 20, 2021. The affected package is an abstract-encoding compliant module used for encoding and decoding DNS packets (Snyk JS, NVD).
The vulnerability occurs because the package creates buffers with allocUnsafe and does not always fill them before forming network packets. The vulnerability has a CVSS v3.1 Base Score of 7.7 (High) according to Snyk's assessment, with Network attack vector, High attack complexity, Low privileges required, and No user interaction needed. The scope is considered Changed, with High impact on Confidentiality and Low impact on both Integrity and Availability (Snyk Java).
When exploited, this vulnerability can expose internal application memory over unencrypted network when querying crafted invalid domain names. This can lead to a total loss of confidentiality, potentially resulting in all resources within the impacted component being divulged to the attacker (Snyk JS).
The recommended mitigation is to upgrade dns-packet to version 5.2.2 or higher. For Java users specifically, upgrade org.webjars.npm:dns-packet to version 5.4.0 or higher. A fix has been implemented in the package that addresses the buffer handling issue (GitHub Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."