CVE-2021-4070
Off-by-one Error in v2fly/v2ray-core
Off-by-one Error in GitHub repository v2fly/v2ray-core prior to 4.44.0.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
5.9
Off-by-one Error in v2fly/v2ray-core
Off-by-one Error in GitHub repository v2fly/v2ray-core prior to 4.44.0.
- Record
CVE-2021-4070- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-193
- Updated
- 2026-11-02
EUVDEUVD-2022-0809
5.9
Off-by-one Error in GitHub repository v2fly/v2ray-core prior to 4.44.0.
- Record
EUVD-2022-0809- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-4cxw-hq44-r344
9.1
Off-by-one Error in v2fly/v2ray-core
v2fly/v2ray-core prior to 4.44.0 is vulnerable to an off-by-one error. Indexing operations on arrays, slices, or strings should use an index at most one less than the length. If the index is checked for being less than or equal to the length (<=), instead of less than the length (<), the index could be out of bounds.
- Record
GHSA-4cxw-hq44-r344- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Weakness
- CWE-193
- Updated
- 2026-11-02
NVD
9.1
Off-by-one Error in GitHub repository v2fly/v2ray-core prior to 4.44.0.
- Record
CVE-2021-4070- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - CVSS 2.0
- 6.4 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:P - Weakness
- CWE-193
- Updated
- 2026-11-02
OSV
9.1
Off-by-one Error in GitHub repository v2fly/v2ray-core prior to 4.44.0.
- Record
CVE-2021-4070- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-4070
9.1
Off-by-one Error in GitHub repository v2fly/v2ray-core prior to 4.44.0.
- Record
DEBIAN-CVE-2021-4070- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVGHSA-4cxw-hq44-r344
9.1
Off-by-one Error in v2fly/v2ray-core
v2fly/v2ray-core prior to 4.44.0 is vulnerable to an off-by-one error. Indexing operations on arrays, slices, or strings should use an index at most one less than the length. If the index is checked for being less than or equal to the length (<=), instead of less than the length (<), the index could be out of bounds.
- Record
GHSA-4cxw-hq44-r344- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Weakness
- CWE-193
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-4070
9.1
Off-by-one Error in GitHub repository v2fly/v2ray-core prior to 4.44.0.
- Record
UBUNTU-CVE-2021-4070- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVGO-2022-0550 No score
Off-by-one Error in v2fly/v2ray-core in github.com/v2fly/v2ray-core
Off-by-one Error in v2fly/v2ray-core in github.com/v2fly/v2ray-core
- Record
GO-2022-0550- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/v2fly/v2ray-core/v4Go |
before 4.44.0 | 4.44.0 |
github.com/v2fly/v2ray-coreGo |
before 4.44.0 | 4.44.0 |
golang-v2ray-coreDebian:12 |
before 4.34.0-7 | 4.34.0-7 |
golang-v2ray-coreDebian:13 |
before 4.34.0-7 | 4.34.0-7 |
golang-v2ray-coreDebian:14 |
before 4.34.0-7 | 4.34.0-7 |
github.com/v2fly/v2ray-coreGo |
All versions | None known |
golang-v2ray-coreUbuntu:22.04:LTS |
All versions, plus listed versions 4.34.0-14.34.0-5 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-4070 is a medium vulnerability (CVSS 5.9) in V2fly V2fly/v2ray-core, published February 23, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.86%, the 58th percentile. Fixed in github.com/v2fly/v2ray-core/v4 4.44.0.
References
huntr.dev/bounties/8da19456-4d89-41ef-9781-a41efd6a1877
github.com/v2fly/v2ray-core/commit/c1af2bfd7aa59a4482aa7f6ec4b9208c1d350b5c
nvd.nist.gov/vuln/detail/CVE-2021-4070
github.com/advisories/GHSA-4cxw-hq44-r344
security-tracker.debian.org/tracker/CVE-2021-4070
github.com/v2fly/v2ray-core
ubuntu.com/security/CVE-2021-4070
cve.org/CVERecord?id=CVE-2021-4070