Off-by-one Error in v2fly/v2ray-core
Critical severity
GitHub Reviewed
Published
Feb 24, 2022
to the GitHub Advisory Database
•
Updated Feb 3, 2023
Description
Published by the National Vulnerability Database
Feb 23, 2022
Published to the GitHub Advisory Database
Feb 24, 2022
Reviewed
Feb 24, 2022
Last updated
Feb 3, 2023
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.References