{"id":"CVE-2021-23386","aliases":["CLSA-2026-1780447839","GHSA-3wcq-x3mq-6r9p"],"summary":"Remote Memory Exposure","published_at":"2021-05-20T00:00:00Z","modified_at":"2026-10-15T09:47:50.211413Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"high","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.01425000000745058,"percentile":0.7350900173187256,"date":"2026-11-19T00:00:00Z"},"priority":8.7,"details":"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.","affected_stack":[{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-23386","relation":"self"}],"affected_other":[{"ecosystem":"NVD","package":"dns-packet_project:dns-packet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"5.2.2"}]}],"fixed":["1.3.4","5.2.2"],"provider":"nvd","source":"CVE-2021-23386","relation":"self"},{"ecosystem":"TuxCare:npm","package":"dns-packet","purl":"pkg:npm/dns-packet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.3.1-tuxcare.0"},{"fixed":"1.3.1-tuxcare.1"}]}],"versions":["1.3.1"],"fixed":["1.3.1-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1780447839","relation":"self"},{"ecosystem":"npm","package":"dns-packet","purl":"pkg:npm/dns-packet","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"5.2.2"}]}],"fixed":["5.2.2"],"provider":"osv","source":"GHSA-3wcq-x3mq-6r9p","relation":"self"},{"ecosystem":"npm","package":"dns-packet","purl":"pkg:npm/dns-packet","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.3.2"}]}],"fixed":["1.3.2"],"provider":"osv","source":"GHSA-3wcq-x3mq-6r9p","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.0","cpe":"cpe:/a:redhat:service_mesh:2.0","status":"affected","packages":["servicemesh-prometheus"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2021-23386"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/console-rhel8","rhacm2/kui-web-terminal-rhel8","rhacm2/search-ui-rhel8"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-23386"},{"vendor":"Red Hat","product":"Red Hat Fuse 7","cpe":"cpe:/a:redhat:jboss_fuse:7","status":"not_affected","packages":["apicurito"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-23386"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["openshift4/ose-prometheus","openshift4/ose-thanos-rhel8"],"package_count":2,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2021-23386"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2021-23386","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-23386","license":"CC-BY-4.0","published_at":"2021-05-20T16:15:18.5Z","modified_at":"2024-09-16T20:52:54.669Z","summary":"Remote Memory Exposure","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","source":"CVE-2021-23386"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-DNSPACKET-1293563"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1295719"},{"type":"WEB","url":"https://hackerone.com/bugs?subject=user&amp%3Breport_id=968858"},{"type":"WEB","url":"https://github.com/mafintosh/dns-packet/commit/25f15dd0fedc53688b25fd053ebbdffe3d5c1c56"}]},{"provider":"nvd","source_id":"CVE-2021-23386","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23386","severity":[],"affected":[{"ecosystem":"NVD","package":"dns-packet_project:dns-packet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"5.2.2"}]}],"fixed":["1.3.4","5.2.2"],"provider":"nvd","source":"CVE-2021-23386","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1780447839","relation":"self","url":"https://osv.dev/vulnerability/CLSA-2026-1780447839","published_at":"2026-08-04T14:52:35Z","modified_at":"2026-10-15T09:47:50.211413Z","summary":"TuxCare security update for dns-packet (1 CVE)","details":"TuxCare rebuilt dns-packet to address 1 CVE. Fixed in 1.3.1-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"dns-packet","purl":"pkg:npm/dns-packet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.3.1-tuxcare.0"},{"fixed":"1.3.1-tuxcare.1"}]}],"versions":["1.3.1"],"fixed":["1.3.1-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1780447839","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-3wcq-x3mq-6r9p","relation":"self","url":"https://osv.dev/vulnerability/GHSA-3wcq-x3mq-6r9p","license":"CC-BY-4.0","published_at":"2021-05-24T19:51:04Z","modified_at":"2025-01-14T08:56:52.881745Z","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":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","source":"GHSA-3wcq-x3mq-6r9p"}],"affected":[{"ecosystem":"npm","package":"dns-packet","purl":"pkg:npm/dns-packet","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"5.2.2"}]}],"fixed":["5.2.2"],"provider":"osv","source":"GHSA-3wcq-x3mq-6r9p","relation":"self"},{"ecosystem":"npm","package":"dns-packet","purl":"pkg:npm/dns-packet","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.3.2"}]}],"fixed":["1.3.2"],"provider":"osv","source":"GHSA-3wcq-x3mq-6r9p","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23386"},{"type":"WEB","url":"https://github.com/mafintosh/dns-packet/commit/0d0d593f8df4e2712c43957a6c62e95047f12b2d"},{"type":"WEB","url":"https://github.com/mafintosh/dns-packet/commit/25f15dd0fedc53688b25fd053ebbdffe3d5c1c56"},{"type":"WEB","url":"https://hackerone.com/bugs?subject=user&amp%3Breport_id=968858"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1295719"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-DNSPACKET-1293563"}]},{"provider":"redhat-vex","source_id":"CVE-2021-23386","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-23386","license":"CC-BY-4.0","published_at":"2021-05-20T00:00:00Z","modified_at":"2023-09-01T00:09:50Z","summary":"dns-packet: does not always fill buffers before forming network packets which couls result in  Remote Memory Exposure","details":"Remote memory exposure vulnerability was found in nodejs dns-packet library. The buffers (created with `allocUnsafe`) are not always filled before forming the network packets and an attacker can use this vulnerability to potentially get access to internal application memory over non encrypted networks when querying crafted invalid domain names.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","source":"CVE-2021-23386"},{"type":"Red Hat","score":"Moderate","source":"CVE-2021-23386"}],"affected":[{"ecosystem":"Red Hat:service_mesh:2.0","package":"servicemesh-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2021-23386","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Service Mesh 2.0","cpe":"cpe:/a:redhat:service_mesh:2.0","status":"affected","packages":["servicemesh-prometheus"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2021-23386"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/console-rhel8","rhacm2/kui-web-terminal-rhel8","rhacm2/search-ui-rhel8"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-23386"},{"vendor":"Red Hat","product":"Red Hat Fuse 7","cpe":"cpe:/a:redhat:jboss_fuse:7","status":"not_affected","packages":["apicurito"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-23386"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["openshift4/ose-prometheus","openshift4/ose-thanos-rhel8"],"package_count":2,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2021-23386"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-23386.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-23386"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1964072"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-23386"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23386"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-DNSPACKET-1293563"}]}],"references":[{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-DNSPACKET-1293563"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1295719"},{"type":"WEB","url":"https://hackerone.com/bugs?subject=user&amp%3Breport_id=968858"},{"type":"WEB","url":"https://github.com/mafintosh/dns-packet/commit/25f15dd0fedc53688b25fd053ebbdffe3d5c1c56"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23386"},{"type":"WEB","url":"https://github.com/mafintosh/dns-packet/commit/0d0d593f8df4e2712c43957a6c62e95047f12b2d"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-23386.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-23386"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1964072"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-23386"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2021-23386","url":"https://www.cve.org/CVERecord?id=CVE-2021-23386","license":"CC-BY-4.0","modified_at":"2024-09-16T20:52:54.669Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2021-23386","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23386","relation":"self"},{"provider":"osv","source_id":"CLSA-2026-1780447839","url":"https://osv.dev/vulnerability/CLSA-2026-1780447839","modified_at":"2026-10-15T09:47:50.211413Z","relation":"self"},{"provider":"osv","source_id":"GHSA-3wcq-x3mq-6r9p","url":"https://osv.dev/vulnerability/GHSA-3wcq-x3mq-6r9p","license":"CC-BY-4.0","modified_at":"2025-01-14T08:56:52.881745Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-23386","url":"https://access.redhat.com/security/cve/CVE-2021-23386","license":"CC-BY-4.0","modified_at":"2023-09-01T00:09:50Z","relation":"self"}]}
