{"answers":{"affected":"2 open source packages ship an affected version, including node and node-min. It affects 2 products.","exploited":"There is no known exploitation of CVE-2021-22918 in the wild and no public exploit code.","fix":"Upgrade node to a fixed version for your release line: 12.22.2, 14.17.2 or 16.4.1.","what":"CVE-2021-22918 is a medium-severity vulnerability in Nodejs Node.js, published on 12 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-22918 and fix it if it is affected.\n\nWhat it is: CVE-2021-22918 is a medium-severity vulnerability in Nodejs Node.js, published on 12 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-22918 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- node (Bitnami): affected from 12.0.0; fixed in 12.22.2, 14.17.2, 16.4.1\n- node-min (Bitnami): affected from 12.0.0; fixed in 12.22.2, 14.17.2, 16.4.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-22918/ (Markdown: https://insights.sbomify.com/CVE-2021-22918/index.md)","id":"CVE-2021-22918","markdown":"https://insights.sbomify.com/CVE-2021-22918/index.md","name":"CVE-2021-22918","record":{"aliases":["ALPINE-CVE-2021-22918","ALSA-2021:3075","AZL-41581","BIT-node-2021-22918","BIT-node-min-2021-22918","DEBIAN-CVE-2021-22918","DSA-4936-1","GHSA-x3cj-3539-rcpx","MGASA-2021-0360","OESA-2021-1291","OESA-2022-1933","RHSA-2021:3075","RLSA-2021:3075","UBUNTU-CVE-2021-22918","USN-5007-1","openSUSE-SU-2024:11007-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js runtime","requires_auth":"none","summary":"An out-of-bounds read in Node.js allows attackers to disclose sensitive information or cause crashes via DNS resolution functions.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"node.js","vendor":"nodejs"},{"product":"sinec_infrastructure_network_services","vendor":"siemens"}],"cvss":{"score":5.3,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"description":"Node.js before 16.4.1, 14.17.2, 12.22.2 is vulnerable to an out-of-bounds read when uv__idna_toascii() is used to convert strings to ASCII. The pointer p is read and increased without checking whether it is beyond pe, with the latter holding a pointer to the end of the buffer. This can lead to information disclosures or crashes. This function can be triggered via uv_getaddrinfo().","ecosystems":["AlmaLinux:8","Bitnami","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::crb","Rocky Linux:8","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Out-of-Bounds Read in Node.js","id":"CVE-2021-22918","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"nodejs:node.js","products":["nodejs:node.js","siemens:sinec_infrastructure_network_services"],"type":"information_disclosure","year":"2021"},"n_packages":12,"n_references":5,"next":{"headline":"Denial of service in Citrix ADC, Citrix Gateway, Citrix SD-WAN WANOP","id":"CVE-2021-22919"},"packages":[{"ecosystem":"Bitnami","fixed":["12.22.2","14.17.2","16.4.1"],"introduced":["12.0.0","14.0.0","16.0.0"],"last_affected":[],"package":"node","purl":"pkg:bitnami/node","source":"BIT-node-2021-22918"},{"ecosystem":"Bitnami","fixed":["12.22.2","14.17.2","16.4.1"],"introduced":["12.0.0","14.0.0","16.0.0"],"last_affected":[],"package":"node-min","purl":"pkg:bitnami/node-min","source":"BIT-node-min-2021-22918"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.41.1-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/almalinux/libuv","source":"ALSA-2021:3075"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.41.1-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libuv-devel","purl":"pkg:rpm/almalinux/libuv-devel","source":"ALSA-2021:3075"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.41.1-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/redhat/libuv","source":"RHSA-2021:3075"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.41.1-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libuv-debuginfo","purl":"pkg:rpm/redhat/libuv-debuginfo","source":"RHSA-2021:3075"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.41.1-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libuv-debugsource","purl":"pkg:rpm/redhat/libuv-debugsource","source":"RHSA-2021:3075"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["1:1.41.1-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libuv-debuginfo","purl":"pkg:rpm/redhat/libuv-debuginfo","source":"RHSA-2021:3075"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["1:1.41.1-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libuv-debugsource","purl":"pkg:rpm/redhat/libuv-debugsource","source":"RHSA-2021:3075"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["1:1.41.1-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libuv-devel","purl":"pkg:rpm/redhat/libuv-devel","source":"RHSA-2021:3075"},{"ecosystem":"Rocky Linux:8","fixed":["1:1.41.1-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/rocky-linux/libuv?distro=rocky-linux-8-6-legacy\u0026epoch=1","source":"RLSA-2021:3075"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.42.0-1.2"],"introduced":["0"],"last_affected":[],"package":"libuv","purl":"pkg:rpm/opensuse/libuv\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11007-1"}],"prev":{"headline":"Information disclosure in https://github.com/brave/brave-core","id":"CVE-2021-22917"},"products":["Node"],"published":"2021-07-12","related":[{"cvss_score":9.8,"headline":"Security feature bypass in Node","id":"CVE-2023-32002","kev_date_added":null,"published":"2023-08-21"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2016-6303","kev_date_added":null,"published":"2016-09-16"},{"cvss_score":9.1,"headline":"Security feature bypass in Node.js","id":"CVE-2017-15896","kev_date_added":null,"published":"2017-12-11"},{"cvss_score":8.8,"headline":"Server-side request forgery in Node.js","id":"CVE-2018-7160","kev_date_added":null,"published":"2018-05-17"},{"cvss_score":8.1,"headline":"Misconfiguration in Node.js","id":"CVE-2018-12120","kev_date_added":null,"published":"2018-11-28"},{"cvss_score":7.9,"headline":"Path traversal in Node","id":"CVE-2024-21891","kev_date_added":null,"published":"2024-02-20"},{"cvss_score":7.9,"headline":"Path traversal in Node","id":"CVE-2024-21896","kev_date_added":null,"published":"2024-02-20"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-04-30","vendors":["NodeJS"]},"summary":"An out-of-bounds read in Node.js allows attackers to disclose sensitive information or cause crashes via DNS resolution functions.","url":"https://insights.sbomify.com/CVE-2021-22918/"}