CVE-2021-23386 json
Remote Memory Exposure
published 2021-05-20 5 y ago modified 2026-06-17 4 mo ago also GHSA-3wcq-x3mq-6r9p , EUVD-2021-0923
- cvss
- 7.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm dns-packet 1.3.2, 5.2.2
- n/a dns-packet 5.2.2
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-23386 updated cvss 6.3
dns-packet: does not always fill buffers before forming network packets which couls result in Remote Memory Exposure
-
Red Hat OpenShift Service Mesh 2.0 servicemesh-prometheusaffected: no fix available
-
Red Hat OpenShift Container Platform 4 openshift4/ose-prometheus, openshift4/ose-thanos-rhel8affected: no fix planned “Will not fix”
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/console-rhel8, rhacm2/search-ui-rhel8, rhacm2/kui-web-terminal-rhel8 Red Hat Fuse 7 apicurito apicuritonot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.43% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 4.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
| GitHub | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | dns-packet | >=2.0.0, <5.2.2 <1.3.2 |
5.2.2 1.3.2 |
Affected products
- n/a dns-packet
Classification
References
-
github.com
/mafintosh/dns-packet/commit/25f15dd0fedc53688b25fd053ebbdffe3d5c1c56
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-DNSPACKET-1293563
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-1295719
web, patch, third-party-advisory
-
github.com
/mafintosh/dns-packet/commit/0d0d593f8df4e2712c43957a6c62e95047f12b2d
web
-
hackerone.com
/bugs?subject=user&%3Breport_id=968858
web, permissions-required, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-23386
advisory
Sources
- CVE List CVE-2021-23386
- GitHub Advisory GHSA-3wcq-x3mq-6r9p
- NVD CVE-2021-23386
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.