{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-4070","id":"CVE-2021-4070","title":"Off-by-one Error in v2fly/v2ray-core","description":"Off-by-one Error in GitHub repository v2fly/v2ray-core prior to 4.44.0.","descriptionLong":"Off-by-one Error in GitHub repository v2fly/v2ray-core prior to 4.44.0.","published":"2022-02-23T19:50:10.000Z","updated":"2026-10-20T10:54:57.928501575Z","reserved":"2021-12-05T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"@huntrdev","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"GitHub"},{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"@huntrdev"},{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"huntr.dev"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","rating":"medium","source":"NVD"}],"rating":"critical","products":["v2fly/v2ray-core"],"affectedProducts":[{"vendor":"v2fly","product":"v2fly/v2ray-core","defaultStatus":null,"versions":[{"lessThan":"4.44.0","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/v2fly/v2ray-core/v4","purl":"pkg:golang/github.com/v2fly/v2ray-core/v4","ranges":["<4.44.0"],"fixed":["4.44.0"],"advisory":"GHSA-4cxw-hq44-r344"},{"ecosystem":"Go","name":"github.com/v2fly/v2ray-core","purl":"pkg:golang/github.com/v2fly/v2ray-core","ranges":["all versions"],"fixed":[],"advisory":"GHSA-4cxw-hq44-r344"}],"cwes":["CWE-193"],"aliases":["GHSA-4cxw-hq44-r344","GO-2022-0550"],"references":[{"url":"https://huntr.dev/bounties/8da19456-4d89-41ef-9781-a41efd6a1877","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/v2fly/v2ray-core/commit/c1af2bfd7aa59a4482aa7f6ec4b9208c1d350b5c","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4070","tags":["advisory"]},{"url":"https://github.com/v2fly/v2ray-core","tags":["package"]},{"url":"https://github.com/advisories/GHSA-4cxw-hq44-r344","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00858,"epssPercentile":0.59197,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-4070","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4070","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-4070","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4cxw-hq44-r344","ok":true,"note":"GHSA-4cxw-hq44-r344"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-4070","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}