CVE-2021-4070 Off-by-one Error in v2fly/v2ray-core

Medium 5.9 Published Updated

An off-by-one error in the v2ray-core library allows attackers to cause denial of service or potentially execute code.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-4070?

CVE-2021-4070 is a medium-severity vulnerability in v2fly/v2ray-core, published on 23 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Off-by-one Error in GitHub repository v2fly/v2ray-core prior to 4.44.0.

Weakness: CWE-193

Which versions are affected by CVE-2021-4070?

6 open source packages ship an affected version, including github.com/v2fly/v2ray-core and github.com/v2fly/v2ray-core/v4. It affects 1 product.

PackageAffectedFixed in
github.com/v2fly/v2ray-core GoAll versionsNone
github.com/v2fly/v2ray-core GoAll versionsNone
github.com/v2fly/v2ray-core GoAll versionsNone
github.com/v2fly/v2ray-core/v4 GoAll versions4.44.0
github.com/v2fly/v2ray-core/v4 GoAll versions4.44.0
github.com/v2fly/v2ray-core/v4 GoAll versions4.44.0

Products include V2fly V2ray-Core.

How do I fix CVE-2021-4070?

Upgrade to a fixed version.

Is CVE-2021-4070 being exploited?

There is no known exploitation of CVE-2021-4070 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2021-4070, GHSA-4cxw-hq44-r344, GO-2022-0550, UBUNTU-CVE-2021-4070.

Is CVE-2021-4070 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free