ADVISORIES

GitHub Advisory Database

GHSA-4cxw-hq44-r344

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

Details

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

EcosystemPackageAffected versions
Gogithub.com/v2fly/v2ray-core/v4
All versions before 4.44.0 (fixed in 4.44.0)
Gogithub.com/v2fly/v2ray-core
All versions, no fix listed

References