{"answers":{"affected":"6 open source packages ship an affected version, including github.com/v2fly/v2ray-core and github.com/v2fly/v2ray-core/v4. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-4070 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2021-4070 is a medium-severity vulnerability in v2fly/v2ray-core, published on 23 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-4070 and fix it if it is affected.\n\nWhat it is: CVE-2021-4070 is a medium-severity vulnerability in v2fly/v2ray-core, published on 23 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-4070 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/v2fly/v2ray-core (Go): affected all versions; no fix listed\n- github.com/v2fly/v2ray-core (Go): affected all versions; no fix listed\n- github.com/v2fly/v2ray-core (Go): affected all versions; no fix listed\n- github.com/v2fly/v2ray-core/v4 (Go): affected all versions; fixed in 4.44.0\n- github.com/v2fly/v2ray-core/v4 (Go): affected all versions; fixed in 4.44.0\n- github.com/v2fly/v2ray-core/v4 (Go): affected all versions; fixed in 4.44.0\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-4070/ (Markdown: https://insights.sbomify.com/CVE-2021-4070/index.md)","id":"CVE-2021-4070","markdown":"https://insights.sbomify.com/CVE-2021-4070/index.md","name":"CVE-2021-4070","record":{"aliases":["DEBIAN-CVE-2021-4070","GHSA-4cxw-hq44-r344","GO-2022-0550","UBUNTU-CVE-2021-4070"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go networking library","requires_auth":"none","summary":"An off-by-one error in the v2ray-core library allows attackers to cause denial of service or potentially execute code.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntrdev","cpe":[{"product":"v2ray-core","vendor":"v2fly"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.0"},"cwes":[{"id":"CWE-193","name":"Off-by-one Error"}],"description":"Off-by-one Error in GitHub repository v2fly/v2ray-core prior to 4.44.0.","ecosystems":["Go"],"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":"Off-by-one Error in v2fly/v2ray-core","id":"CVE-2021-4070","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"integer_overflow","year":"2021"},"n_packages":6,"n_references":2,"next":{"headline":"Cross-site Scripting (XSS) - Stored in elgg/elgg","id":"CVE-2021-4072"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/v2fly/v2ray-core","purl":null,"source":"GHSA-4cxw-hq44-r344"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/v2fly/v2ray-core","purl":"pkg:golang/github.com/v2fly/v2ray-core","source":"GHSA-4cxw-hq44-r344"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/v2fly/v2ray-core","purl":"pkg:golang/github.com/v2fly/v2ray-core","source":"GO-2022-0550"},{"ecosystem":"Go","fixed":["4.44.0"],"introduced":["0"],"last_affected":[],"package":"github.com/v2fly/v2ray-core/v4","purl":null,"source":"GHSA-4cxw-hq44-r344"},{"ecosystem":"Go","fixed":["4.44.0"],"introduced":["0"],"last_affected":[],"package":"github.com/v2fly/v2ray-core/v4","purl":"pkg:golang/github.com/v2fly/v2ray-core/v4","source":"GHSA-4cxw-hq44-r344"},{"ecosystem":"Go","fixed":["4.44.0"],"introduced":["0"],"last_affected":[],"package":"github.com/v2fly/v2ray-core/v4","purl":"pkg:golang/github.com/v2fly/v2ray-core/v4","source":"GO-2022-0550"}],"prev":{"headline":"Use After Free in vim/vim","id":"CVE-2021-4069"},"products":["v2fly/v2ray-core"],"published":"2022-02-23","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"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":"2024-08-03","vendors":["v2fly"]},"summary":"An off-by-one error in the v2ray-core library allows attackers to cause denial of service or potentially execute code.","url":"https://insights.sbomify.com/CVE-2021-4070/"}