NetSight
critical9.1

CVE-2021-4070

Off-by-one Error in v2fly/v2ray-core

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
gogithub.com/v2fly/v2ray-core/v4< 4.44.04.44.0
gogithub.com/v2fly/v2ray-core< 4.44.0none recorded

Affected products

VendorProductAffected versions
V2flyV2ray-Core
before 4.44.0

Weakness classification

References